/Pinball-Game

Pinball game created for Physics II subject at CITM UPC university, coded in C/C++ and using Box2D physics engine.

Primary LanguageCMIT LicenseMIT

PINBALL

Description

Pinball game created for Physics II subject at CITM UPC university.

Key Features

  • {F1} - View logic/colliders + enable mouse joints.
  • {R} - Reset ball's position
  • {G} - Activate/Deactivate God Mode
  • {F} - Give vertical linear impulse to the ball

Debug keys

  • {U} - Adds +1 FPS
  • {J} - Reduces -1 FPS
  • {I} - Adds +0.1 Gravity
  • {K} - Reduces -0.1 Gravity
  • {O} - Adds +0.1 Restitution Coefficient
  • {L} - Reduces -0.1 Restitution Coefficient

Controls

  • {LEFT Arrow} - Move left flipper.
  • {RIGHT Arrow} - Move right flipper.
  • {DOWN Arrow} - Action the ball kicker.

Combos/Multipliers

  • {REACHING 1000pts} - Extra Life/Ball
  • {x2 Multiplier} - 20 seconds of x2 score
  • {x3 Multiplier} - 10 seconds of x3 score

Developers

Github repository

Click here to go to our project's Github repository.

Fixed Bugs

Ball reset after touching collider crashes becuase is inside the death collider. FIX --> Wait an amount of ms before reseting ball position.

Ball stuck in bouncers doing the same path. FIX --> For an amount of bounces changes normal impulse direction for changing the path.

Flippers stuck after using them. FIX --> Change the flippers & joints position so non of their bodies collide with anything else when using them.

License

This project is licensed under an unmodified MIT license, which is an OSI-certified license that allows static linking with closed source software. Check LICENSE for further details.