Dependencies: 4DGL-uLCD-SE SDFileSystem mbed-rtos mbed wave_player
Diff: graphics.h
- Revision:
- 0:b1c6f91ae4e2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphics.h Mon Oct 31 21:58:57 2016 +0000 @@ -0,0 +1,54 @@ +#include <mbed.h> + + + + +class Samus{ + public: + Samus(); + int health; + bool isAlive; + bool crouch; + bool isJumping; + int jump; + int xpos; + int ypos; + int prevxpos; + int prevypos; + int height; + int crouchheight; + int currentheight; +}; + + +class Metroid{ + public: + Metroid(); + void Move(int a){ + prevxpos[a]=xpos[a]; + xpos[a]=xpos[a]+2; + //wait(.5); + } + bool isAlive[3]; + int xpos[3]; + int prevxpos[3]; + int ypos[3]; + int prevypos[3]; + int radius; +}; + + +class Gunshot{ + public: + Gunshot(); + bool isOnScreen; + void Move(){ + xpos=xpos-3; + //wait(.5); + } + int radius; + int prevxpos; + int prevypos; + int xpos; + int ypos; +}; \ No newline at end of file