Balint Bogdan SnekGame

Dependencies:   FoodLibrary Gamepad N5110 SnekGame mbed

Revision:
0:789c74742603
Child:
1:a222ad7a05b9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 20 11:18:44 2017 +0000
@@ -0,0 +1,58 @@
+#include "mbed.h"
+#include "N5110.h"
+
+
+void loadMap();
+void getEnemy();
+void bomb();
+
+//set LCD pins
+int heroChar[4]=(1,1,0,1);
+int bomb[4]=(0,1,0,1);
+int boulderLocation[4][8]={}// set the coordinate for boulder, if 00, boulder does not exist
+
+int main()
+{
+    lcd.init();//initializing display
+    
+    while (true) {
+       //draw the map
+       
+       //draw top line (life)
+       
+       //draw boulders
+       
+       //draw characters at certain position
+       
+       //draw bomb
+       
+       //refresh
+        wait(0.2f);
+    }
+}
+
+
+void loadMap(){
+    //get the size of the map and 
+    //use draw line for large lines
+    //set pixel for small bts
+    //look for boulders , if coordinate 00 ignore
+    //draw boulder as bomb
+    }
+
+void drawHero(){
+    //get the position first
+    //draw {1,2} in first line
+    //flip [3,4] for walking
+    
+    }
+    
+
+void bomb(){
+    //get location
+    //draw bomb
+    //flip bomb do show its a bomb
+    //if a boulder is at the range set0
+    
+    }
+    
\ No newline at end of file