Mochu Yao explorer game

Dependencies:   mbed

Revision:
9:e11bb7cef050
Parent:
8:201ef0618b7d
Child:
17:1b4ecc01b79f
diff -r 201ef0618b7d -r e11bb7cef050 item/item.cpp
--- a/item/item.cpp	Mon Apr 27 08:41:29 2020 +0000
+++ b/item/item.cpp	Mon Apr 27 14:01:00 2020 +0000
@@ -2,7 +2,7 @@
 
 // Define sprite arrays.
 //this is the forward form of the item
-int item_form[6][5] = {
+int item_form[5][6] = {
   { 0,0,1,1,0,0},
   { 0,1,1,1,1,0},
   { 1,1,1,1,1,1},
@@ -28,7 +28,7 @@
   //1 the item must be generated on the surface but not in the air
   //2 the item must be in the srceen or the explorer can not collect them
   if (_x < 6 || _x > 74) {  // Ensures the item does not generate off-screen.
-    _x = 40;//go back to the intial position
+    _x = 40; }//go back to the intial position
   else if (_y < 5 || _y > 75) 
   {
     _y = 50; };//go back to the intial position
@@ -54,4 +54,4 @@
   return _y;
 } 
 
-} 
\ No newline at end of file
+ 
\ No newline at end of file