Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of fy15raf by
Diff: GameEngine/GameEngine.cpp
- Revision:
- 2:3fd0d3d69556
- Child:
- 3:489437d4ebd7
diff -r 386790f5f9bf -r 3fd0d3d69556 GameEngine/GameEngine.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/GameEngine/GameEngine.cpp Wed Apr 18 17:45:07 2018 +0000
@@ -0,0 +1,30 @@
+#include "GameEngine.h"
+
+GameEngine::GameEngine()
+{
+
+}
+
+GameEngine::~GameEngine()
+{
+
+}
+
+void GameEngine::init()
+{
+ _rocket.init();
+}
+
+void GameEngine::read_input(Gamepad &pad)
+{
+ _d = pad.get_direction();
+ _mag = pad.get_mag();
+}
+
+void GameEngine::draw(N5110 &lcd)
+{
+ // draw the game elements in the LCD
+ _rocket.draw(lcd);
+
+}
+
