Stick_Runner
Dependencies: FXOS8700CQ Gamepad N5110 SDFileSystem mbed
Diff: Character/Character.h
- Revision:
- 4:2fdafb53eac2
- Parent:
- 3:0c690f1c04d8
- Child:
- 6:bf601a65cb27
diff -r 0c690f1c04d8 -r 2fdafb53eac2 Character/Character.h --- a/Character/Character.h Wed May 03 09:27:04 2017 +0000 +++ b/Character/Character.h Wed May 03 18:00:37 2017 +0000 @@ -8,6 +8,7 @@ @brief Class responsible for all the functionality of the charachter including intialization, drawing, moving and updating it @author Samrudh Sharma @date +@classes */ @@ -36,7 +37,7 @@ */ void updateCharacter(Direction d,float mag); - /** Character Status +/** Character Status * * This fuction helps to check if there are any obstacles/gems around the character on the screen * . It checks if any pixels near the body dimensions of the character are lit up and sets the status of the character to false @@ -61,7 +62,7 @@ private: - + //Variables int charPosX; // X cocordinate of the character int charPosY; // Y cocordinate of the character int _speed; //Variable to help determine the speed of the character from the magnitude of the joystick