calbri / TetrisAVR

CSSE2010 Assignment - Good copy
1 stars 0 forks source link

Game Pause #6

Closed calbri closed 8 years ago

calbri commented 8 years ago

Modify the program so that if the ‘p’ or ‘P’ key on the serial terminal is pressed then the game will pause. When the button is pressed again, the game recommences. (All other button/key presses should be discarded whilst the game is paused except the ‘n’ or ‘N’ keys if “New Game” is implemented as described below.) The block dropping rate must be unaffected – if the pause happens 450ms before a block drop is due, then the drop should not happen until 450ms after the game is resumed, not immediately upon resume.) The check for this key press is implemented in the supplied code, but does nothing.