Dependencies:   4DGL-uLCD-SE SDFileSystem mbed-rtos mbed wave_player

Revision:
0:b1c6f91ae4e2
diff -r 000000000000 -r b1c6f91ae4e2 graphics.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics.cpp	Mon Oct 31 21:58:57 2016 +0000
@@ -0,0 +1,45 @@
+#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;
+}
\ No newline at end of file