Player character library

Files at this revision

API Documentation at this revision

Comitter:
isabelc
Date:
Wed May 03 23:23:39 2017 +0000
Parent:
12:9bc551a4cab9
Commit message:
Final project. Changes to some comments and structure.

Changed in this revision

PlayerChar.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 9bc551a4cab9 -r dfb5fd4f5983 PlayerChar.cpp
--- a/PlayerChar.cpp	Wed May 03 17:55:52 2017 +0000
+++ b/PlayerChar.cpp	Wed May 03 23:23:39 2017 +0000
@@ -36,6 +36,7 @@
 */
 void PlayerChar::update(N5110 &lcd, Gamepad &pad)
 {
+    //printf("PlayerChars::update");
     float _d = pad.get_direction();
     //printf("Direction from joystick: %I", _d);
 
@@ -46,6 +47,7 @@
     } else if (_d == E) {
         _x = _x + 3;
     }
+    
     //printf("_x value: %I", _x);
 
     // check the x origin to ensure that the character doesn't go off screen
@@ -54,8 +56,9 @@
     } else if (_x > 76) {
         _x = 76; //if attempts to move right place at edge of screen
     }
+    
     //printf(_x value after limits: %I", _x);
-
+    
     detective1.render(lcd, _x, 30);
 }
 
@@ -65,6 +68,7 @@
 */
 int PlayerChar::getdex()
 {
+    //printf("OtherChars::detdex");
     return _x;
     //printf("X value of player character in PlayerChar class: %I");
 }
\ No newline at end of file