Dependencies: 4DGL-uLCD-SE SDFileSystem mbed-rtos mbed wave_player
graphics.cpp
- Committer:
- kferri6
- Date:
- 2016-10-31
- Revision:
- 0:b1c6f91ae4e2
File content as of revision 0:b1c6f91ae4e2:
#include "mbed.h" #include "graphics.h" Samus::Samus(){ health=3; isAlive=1; crouch=0; isJumping=0; jump=0; xpos=125; ypos=128; prevxpos=xpos; prevypos=ypos; height=10; currentheight=height; crouchheight=6; } Metroid::Metroid(){ isAlive[0]=0; isAlive[1]=0; isAlive[2]=0; xpos[0]=0; xpos[1]=0; xpos[2]=0; prevxpos[0] = xpos[0]; prevxpos[1] = xpos[1]; prevxpos[2] = xpos[2]; ypos[0] = 128 - rand()%30; ypos[1] = 128 - rand()%30; ypos[2] = 128 - rand()%30; prevypos[0] = ypos[0]; prevypos[1] = ypos[1]; prevypos[2] = ypos[2]; radius=5; } Gunshot::Gunshot(){ isOnScreen=0; radius=3; }