ELEC2645 (2018/19) / Mbed 2 deprecated el17dg

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Revision:
9:5ad5501c702e
Parent:
6:100b46be4bea
Child:
10:f02413ae09fe
--- a/Models/models.cpp	Mon Mar 11 14:48:49 2019 +0000
+++ b/Models/models.cpp	Mon Mar 11 22:07:26 2019 +0000
@@ -0,0 +1,84 @@
+#include "models.h"
+
+const int spaceship1_width = 15;
+const int spaceship1_height = 14;
+
+const int spaceShip1[210] = {
+    0,0,0,0,0,0,0,0,0,1,0,0,0,0,
+    0,0,0,0,0,0,0,1,1,0,0,0,0,0,
+    0,0,0,0,0,0,0,1,0,1,0,0,0,0,
+    0,0,0,0,1,1,1,1,0,0,0,0,0,0,
+    0,0,0,0,1,0,0,1,0,0,0,0,0,0,
+    0,0,1,1,1,0,0,0,1,1,1,1,0,0,
+    0,0,0,1,1,0,1,0,0,1,0,0,1,0,
+    1,1,1,0,1,1,0,0,0,1,1,0,0,1,
+    0,0,0,1,1,0,1,0,0,1,0,0,1,0,
+    0,0,1,1,1,0,0,0,1,1,1,1,0,0,
+    0,0,0,0,1,0,0,1,0,0,0,0,0,0,
+    0,0,0,0,1,1,1,1,0,0,0,0,0,0,
+    0,0,0,0,0,0,0,1,0,1,0,0,0,0,
+    0,0,0,0,0,0,0,1,1,0,0,0,0,0,
+    0,0,0,0,0,0,0,0,0,1,0,0,0,0
+};
+
+//void starMinor(int x, int y){
+//    lcd.setPixel(x,y,true);
+//}
+
+const int starSmall[9] = {
+    0,1,0,
+    1,1,1,
+    0,1,0
+};
+
+const int starMedium[25] = {
+    1,0,0,0,1,
+    0,1,1,1,0,
+    0,1,1,1,0,
+    0,1,1,1,0,
+    1,0,0,0,1
+};
+
+const int starBig[49] = {
+    1,0,0,1,0,0,1,
+    0,1,0,1,0,1,0,
+    0,0,1,1,1,0,0,
+    1,1,1,1,1,1,1,
+    0,0,1,1,1,0,0,
+    0,1,0,1,0,1,0,
+    1,0,0,1,0,0,1
+};
+
+
+
+const int simpleLaserShotDissapear[3] = {0,0,0};
+
+const int enemyShip1 [187] = { 
+    0,0,0,0,0,0,1,1,1,1,1,
+    0,0,0,0,0,0,1,1,1,1,1,
+    0,0,0,0,0,0,1,1,1,1,1,
+    0,0,0,0,0,0,0,0,1,1,0,
+    0,0,0,0,0,0,0,0,1,0,0,
+    0,0,0,1,1,1,1,1,1,0,0,
+    0,0,0,0,0,0,1,1,1,0,0,
+    0,0,0,1,1,1,0,1,0,1,0,
+    1,1,1,1,1,1,1,0,1,1,1,
+    0,0,0,1,1,1,0,1,0,1,0,
+    0,0,0,0,0,0,1,1,1,0,0,
+    0,0,0,1,1,1,1,1,1,0,0,
+    0,0,0,0,0,0,0,0,1,0,0,
+    0,0,0,0,0,0,0,0,1,1,0,
+    0,0,0,0,0,0,1,1,1,1,1,
+    0,0,0,0,0,0,1,1,1,1,1,
+    0,0,0,0,0,0,1,1,1,1,1
+};
+
+const int enemyShip2 [77] = {
+    0,0,0,1,1,1,1,1,1,0,0,
+    0,0,0,0,0,0,1,1,1,0,0,
+    0,0,0,1,1,1,0,1,0,1,0,
+    1,1,1,1,1,1,1,0,1,1,1,
+    0,0,0,1,1,1,0,1,0,1,0,
+    0,0,0,0,0,0,1,1,1,0,0,
+    0,0,0,1,1,1,1,1,1,0,0    
+};