Yang Zhenye 201199680

Dependencies:   mbed

Revision:
7:a69ae964412c
Parent:
6:4abef55fee88
--- a/Rooney/Rooney.cpp	Thu May 14 15:55:41 2020 +0000
+++ b/Rooney/Rooney.cpp	Thu May 14 17:19:27 2020 +0000
@@ -84,12 +84,14 @@
  }   
 int * player::get_form(rooneybody body){
     if (body == left){
-        return *left}
+        return *_left;}
         else if (body == right){
-            return *right}
+            return *_right;}
             else if (body == stand){
-                return *stand}}
-lcd.drawSprite(_player_x, _player_y, 5, 10, (int *)get_form(body));
+                return *_stand;}}
+int player::drawrooney(N5110 &lcd){
+lcd.drawSprite(_player_x, _player_y, 5, 10, (int *)get_form(body));}
+
 int player::get_x(){
     return _player_x;
     }