Git Product home page Git Product logo

pacman1's Introduction

GRAPHICS ASSIGNMENT 1 (Pacman 2-D Game)

EXECUTION

Make sure you have opengl libraries installed.

For installation on "Ubuntu"

  • sudo apt install libglew-dev libglfw3-dev libglm-dev cmake pkg-config

After required installations :

  • Create a folder '/build' (mkdir build)
  • Change the directory to '/build' (cd build)
  • Run 'cmake ..'
  • Run 'make all'
  • Run the executable to start playing

CONTROLS :

  • The player can be navigated using the A and D for left and right.
  • The player can be made to jump using space button.
  • Zooming and panning are implemented. On pressing the 'up' button, the screen zooms in and on pressing the 'down' button, the screen zooms out.
  • For panning, on pressing the 'right' key, the screen pans right, and on pressing the 'left' button the screen pans left.
  • Virtually 'infinite' world is created.

FEATURES IMPLEMENTED :

  • Balls are randomly generated of different colors and sizes.
  • The balls upon being destroyed, dissapear. The score is added depending upon the colour and sixex of ball destroyed.
  • When the ball hits the surface of the pond, its speed decreases.
  • Upon reaching the circular surface, it follows the trajectory of the pond, and reaches the bottom.
  • When the ball encounters a deflector, it gets reflected following the laws of reflection.
  • When the ball encounters a magnet, it gets attracted to it.
  • The deflectors and magnets occur randomly.
  • When the ball hits the trampoline, it bounces back up with a higher speed, and to a higher height.
  • Moving porcupines are implemented.
  • Energy bar is implemented at the right side of the screen, which shows the energy remaining for the player. On striking the moving porcupines or being attracted by the magnet, the energy pointer reduces.
  • When it reaches zero, the screen becomes blank and the game is over.
  • The ball can be dragged using the mouse.
  • When the window is panned left or right, the player can move.

pacman1's People

Contributors

firesans avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.