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:
- 4:9ad3bc45b6ce
- Parent:
- 3:2f09c90a732d
diff -r 2f09c90a732d -r 9ad3bc45b6ce Game.h --- a/Game.h Thu Jan 15 12:48:21 2015 +0000 +++ b/Game.h Thu Jan 15 14:34:59 2015 +0000 @@ -23,10 +23,13 @@ static const char I2C_ADDR = 0x1C << 1; int ballX; + int ballXprev; int ballY; + int ballYprev; int ballSpeedX; int ballSpeedY; int paddleX; + int paddleXprev; int pwmTicksLeft; int lives; int score; @@ -67,12 +70,16 @@ void clearPaddle(); void drawPaddle(); + void redrawPaddle(); void updatePaddle(); void clearBall(); + void clearBallPrev(); void drawBall(); + void redrawBall(); void updateBall(); + int checkTilt(); void checkButtons(); void checkCollision(); void checkPwm();