![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
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-22
- Revision:
- 4:8e3ba8d6d915
- Parent:
- 2:d59a92e65bd9
- Child:
- 10:2ae9d4145410
File content as of revision 4:8e3ba8d6d915:
/* 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 = 5; init(); render(); wait(1.0f/fps); while (1) { tempest.read_input(pad); tempest.update(); render(); wait(1.0f/fps); } } void init() { lcd.init(); pad.init(); tempest.init(); } void render() { lcd.clear(); tempest.draw(lcd); lcd.refresh(); }