Mochu Yao explorer game

Dependencies:   mbed

Revision:
23:7be9701fc1b8
Parent:
19:14c5427b30d1
Child:
26:4d193529b447
--- a/item/item.h	Tue Apr 28 16:58:19 2020 +0000
+++ b/item/item.h	Tue Apr 28 17:19:55 2020 +0000
@@ -2,15 +2,13 @@
 #define ITEM_H
 
 #include "mbed.h"
+/** item Class
+* @1 generate an item in random position after one disappear
+* @2 build the item's structer
+* @3 build a barrier to increase difficulty
+* @date April 13th 2020
+* @author Yaomochu
 
-//* @the item file has three functions
-//  1 generate an item in random position after one disappear
-// 2 build the item's structer
-// 3 build a barrier to increase difficulty
-//* @date April 13th 2020
-//* @author Yaomochu
-
-/** item Class
 
 @code
 
@@ -35,7 +33,7 @@
   _item.init();// use this to generate the item
   srand(time(NULL));// generate random values
   _player_score = 0;// set player score to 0;
-  _player_x = 30;
+  _player_x = 40;
   _player_y = 10;//make sure they are not in the same position at first,but player on the underlevel
   while(1) {
     
@@ -54,7 +52,8 @@
     lcd.drawSprite(_item.get_item_x(),_item.get_item_y(),5,6,(int*)_item.get_item_form());
   }
 }
-@endcode
+
+* @ endcode
 */
 
 class item