Initial publish

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Revision:
21:0eb394495b8a
Parent:
16:b7d0cac561cc
Child:
27:f05f4e738ba9
--- a/main/main.h	Tue Mar 26 10:52:53 2019 +0000
+++ b/main/main.h	Wed Mar 27 00:00:32 2019 +0000
@@ -4,8 +4,8 @@
 #include "mbed.h"
 #include "N5110.h"
 #include "Gamepad.h"
-
-
+#include "geometry.h"
+#include "models.h"
 
 //Global variables
 extern N5110 lcd;
@@ -16,9 +16,8 @@
 
 static const int fps = 10;
 
-static const int screen_width = 84;
-static const int screen_height = 48;    // it is lower then the maximum because of the score display.
-static const int game_score_height = 7;
-
+static void drawSprite(Point pos, const Sprite& sprite) {
+    lcd.drawSprite(pos.x, pos.y, sprite.height, sprite.width, (int*)sprite.data);
+}
 
 #endif
\ No newline at end of file