Mochu Yao explorer game

Dependencies:   mbed

Revision:
19:14c5427b30d1
Parent:
17:1b4ecc01b79f
Child:
23:7be9701fc1b8
--- a/item/item.h	Tue Apr 28 12:52:16 2020 +0000
+++ b/item/item.h	Tue Apr 28 13:37:26 2020 +0000
@@ -41,8 +41,8 @@
     
     // becasue the module of the player is big so it has to be make sure that 
     //the item will be collected when the edge of the module collide with the item
-    if ((_player_x == _item.get_item_x()() 
-      && (_player_y == _item.get_item_y() - 8))) {  
+    if ((_player_x == _item.get_item_x()
+      && (_player_y == _item.get_item_y() - 8)) {  
     _collision_flag = true;
     _player_score++;
     _item.set_item(((rand()%80)+ 5) , ((rand()%80)+ 5));  // use the rand()%m function to generate a number from 80 to 1