ELEC2645 (2018/19) / Mbed 2 deprecated el17dg

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Revision:
21:0eb394495b8a
Parent:
19:b78fa41d04a9
Child:
23:240bc00ef25b
diff -r 557e84189a57 -r 0eb394495b8a Models/models.h
--- a/Models/models.h	Tue Mar 26 10:52:53 2019 +0000
+++ b/Models/models.h	Wed Mar 27 00:00:32 2019 +0000
@@ -1,6 +1,5 @@
 #ifndef MODELS_H
 #define MODELS_H
-//#include "main.h"
 
 extern const int spaceship1_width;
 extern const int spaceship1_height;
@@ -25,5 +24,15 @@
 extern const int gameOver [406];
 extern const int youDied [336];
 
+struct Sprite {
+    Sprite(int _width, int _height, const int* _data) : width(_width), height(_height), data(_data) {}
+    int width;
+    int height;
+    const int* data;
+};
+
+extern const Sprite enemy_sprite;
+extern const Sprite enemy_half_exploded_sprite;
+extern const Sprite enemy_exploded_sprite;
 
 #endif
\ No newline at end of file