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

graphics.h

Committer:
kferri6
Date:
2016-10-31
Revision:
0:b1c6f91ae4e2

File content as of revision 0:b1c6f91ae4e2:

#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;
};