A retro gaming programme, designed for use on a portable embedded system. Incorporates power saving techniques.
Dependencies: ConfigFile N5110 PowerControl beep mbed
Diff: main.cpp
- Revision:
- 61:64077ba14f3c
- Parent:
- 60:681bc941b94d
- Child:
- 62:827cda7a2663
--- a/main.cpp Sun May 03 22:26:11 2015 +0000 +++ b/main.cpp Sun May 03 22:57:57 2015 +0000 @@ -71,6 +71,7 @@ {'Q','Q','Q',{17,15}}, {'R','R','R',{18,16}}, {'S','S','S',{19,17}}, + {'T','T','T',{20,18}}, {'U','U','U',{21,19}}, {'V','V','V',{22,20}}, @@ -1073,7 +1074,7 @@ actionButtons(); drawNinja();//set character - //drawHazards();//initiates hazards + drawHazards();//initiates hazards hazardFall();//increments hazards towards floor wait(0.1);//slow down objects @@ -1127,6 +1128,7 @@ wait(0.5); lcd.normalMode(); newScore();//enter initial screen if previous scores are beaten + //write(); resetGame();//reset values break; }