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.
main.cpp
- Committer:
- MatisRequis
- Date:
- 2020-05-19
- Revision:
- 2:d59a92e65bd9
- Parent:
- 1:03d1c29c2f8a
- Child:
- 4:8e3ba8d6d915
File content as of revision 2:d59a92e65bd9:
/* ELEC2645 Embedded Systems Project School of Electronic & Electrical Engineering University of Leeds 2019/20 Name:Matis Requis Username:el18mrjr Student ID Number:201241242 Date:20/04/20 */ // includes #include "mbed.h" #include "Gamepad.h" #include "N5110.h" #include "TempestEngine.h" // objects Gamepad pad; N5110 lcd; TempestEngine tempest; //prototypes void init(); void render(); int main() { int fps = 10; init(); render(); wait(1.0f/fps); } void init() { lcd.init(); pad.init(); tempest.init(12, 1); } void render() { lcd.clear(); tempest.draw(lcd); lcd.refresh(); }