Matis Requis 201241242
Dependencies: mbed
Tempest Game
Game Screen
The board is made of 12 columns. The Hero stays at the top of the column
Game Controls
To control the hero spaceship point the joystick to the column you want the hero to go to.
Press the A button to shoot a bullet in the column you are currently in.
Diff: Hero/Hero.cpp
- Revision:
- 5:a3c9a5837a7c
- Parent:
- 4:8e3ba8d6d915
- Child:
- 6:037dfa5064a1
--- a/Hero/Hero.cpp Fri May 22 10:29:49 2020 +0000 +++ b/Hero/Hero.cpp Fri May 22 10:37:26 2020 +0000 @@ -13,19 +13,6 @@ } void Hero::draw(N5110 &lcd) { - - - char buffer[3]; - sprintf(buffer,"%2d", _column); - lcd.printString(buffer,0, 0); - - char ruffer[3]; - sprintf(ruffer,"%2d", _d); - lcd.printString(ruffer,70, 0); - - char tuffer[3]; - sprintf(tuffer,"%2d", _mag); - lcd.printString(tuffer,0, 24); Vector2D xypos = getxy(); @@ -92,6 +79,10 @@ } else { _column = 1; } + + if (a == 1) { + shoot = 1; + } }