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
Main.cpp@0:7e989d0083ff, 2015-02-06 (annotated)
- Committer:
- maxint
- Date:
- Fri Feb 06 10:18:41 2015 +0000
- Revision:
- 0:7e989d0083ff
First game ready for competition
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
maxint | 0:7e989d0083ff | 1 | #include "mbed.h" |
maxint | 0:7e989d0083ff | 2 | |
maxint | 0:7e989d0083ff | 3 | #include "Game.h" |
maxint | 0:7e989d0083ff | 4 | |
maxint | 0:7e989d0083ff | 5 | int main() { |
maxint | 0:7e989d0083ff | 6 | Game game; |
maxint | 0:7e989d0083ff | 7 | |
maxint | 0:7e989d0083ff | 8 | game.showSplashScreen(); |
maxint | 0:7e989d0083ff | 9 | |
maxint | 0:7e989d0083ff | 10 | while (true) |
maxint | 0:7e989d0083ff | 11 | game.tick(); |
maxint | 0:7e989d0083ff | 12 | } |