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
Revision:
5:8441b390a15f
Parent:
3:a68d4d515c20
--- a/Game.h	Thu Feb 26 11:55:13 2015 +0000
+++ b/Game.h	Sun Mar 01 13:58:47 2015 +0000
@@ -40,7 +40,7 @@
     DigitalOut led1;
     DigitalOut led2;
     AnalogIn ain;
-    I2C i2c;
+    //I2C i2c;
     LCD_ST7735 disp;
 
     SoundFX snd;
@@ -48,7 +48,7 @@
 //    Timer tWait;    // timer used for tickcounts
 
     Vector vGravity;
-    Ball ball;
+    //Ball ball;
     Paddle paddle;
     Ball aBalls[NUM_BALLS];