Balls & Paddle game for RETRO Pong inspired game featuring multi-directional tilt-sensitive paddle, multiple balls, shrinking ceiling and a bit of gravity.
Dependencies: LCD_ST7735 MusicEngine RETRO_BallsAndThings mbed
Balls and Paddle
After doing some work on the Pong mod I decided to put my efforts into making my version object oriented and try to make a generic object-library that could be use for other ball-and-things games. To add some challenges to the gameplay, the following features were added:
- extra-free additional balls to please the juglers
- gravity for pulling the ball down to create some dynamic movement
- directional power-paddle that counters the ball with a bit more speed
- lowering ceiling to make endless gameplay impossible
Diff: Game.cpp
- Revision:
- 2:0caa0607f7bf
- Parent:
- 1:bf46edcd6b4f
- Child:
- 3:a68d4d515c20
--- a/Game.cpp Mon Feb 09 08:34:32 2015 +0000 +++ b/Game.cpp Mon Feb 09 08:40:03 2015 +0000 @@ -122,7 +122,7 @@ this->paddle.move(Vector(Game::PADDLE_SPEED, 0)); else { // move the paddle by tilting the board left or right - int i=this->checkTilt(); + int i=this->checkTiltLeftRight(); if(i>0) this->paddle.move(Vector(Game::PADDLE_SPEED, 0)); else if(i<0)