new mods upon mods by devhammer: - Added paddle control using tilting of the console - Finished mute function - Reduced flickering See game.cpp for full info.
Fork of RETRO_Pong_Mod by
This is a mod of the official Pong game released with the RETRO game console.
Diff: Game.h
- Revision:
- 3:2f09c90a732d
- Parent:
- 2:6ab46f2e851a
- Child:
- 4:9ad3bc45b6ce
--- a/Game.h Fri Nov 21 20:13:10 2014 +0000 +++ b/Game.h Thu Jan 15 12:48:21 2015 +0000 @@ -9,11 +9,14 @@ static const char* LOSE_2; static const char* SPLASH_1; static const char* SPLASH_2; + static const char* LIVES; + static const char* SCORE; static const int BALL_RADIUS = 3; + static const int BALL_STARTING_SPEED = 3; static const int PADDLE_WIDTH = 38; static const int PADDLE_HEIGHT = 4; - static const int PADDLE_SPEED = 4; + static const int PADDLE_SPEED = 5; static const int BOUNCE_SOUND_TICKS = 2; static const int GRAPH_HEIGHT = 40; static const int GRAPH_SPACING = 2; @@ -26,10 +29,12 @@ int paddleX; int pwmTicksLeft; int lives; + int score; int graphX; bool mode; bool lastUp; bool lastDown; + bool muted; unsigned short colors[3]; DigitalIn left;