Josh Davy / Mbed 2 deprecated Flip

Dependencies:   mbed el17jd

Committer:
joshdavy
Date:
Tue Apr 02 12:40:31 2019 +0000
Revision:
3:b34685dbdb8d
Child:
4:afbf3dd71403
Moved player to its own inherited class to allow sprite to serve multiple puporses

Who changed what in which revision?

UserRevisionLine numberNew contents of line
joshdavy 3:b34685dbdb8d 1 #ifndef PLAYER_H
joshdavy 3:b34685dbdb8d 2 #define PLAYER_H
joshdavy 3:b34685dbdb8d 3
joshdavy 3:b34685dbdb8d 4 #include "mbed.h"
joshdavy 3:b34685dbdb8d 5 #include "N5110.h"
joshdavy 3:b34685dbdb8d 6 #include "Gamepad.h"
joshdavy 3:b34685dbdb8d 7 #include "Bitmap.h"
joshdavy 3:b34685dbdb8d 8 #include "Sprite.h"
joshdavy 3:b34685dbdb8d 9
joshdavy 3:b34685dbdb8d 10 #define GRAVITY 2
joshdavy 3:b34685dbdb8d 11 /*Sprite Class*/
joshdavy 3:b34685dbdb8d 12
joshdavy 3:b34685dbdb8d 13 //extern N5110 lcd;
joshdavy 3:b34685dbdb8d 14
joshdavy 3:b34685dbdb8d 15 class Player : public Sprite{
joshdavy 3:b34685dbdb8d 16
joshdavy 3:b34685dbdb8d 17 public:
joshdavy 3:b34685dbdb8d 18 Player();
joshdavy 3:b34685dbdb8d 19 ~Player();
joshdavy 3:b34685dbdb8d 20 update(Gamepad &pad);
joshdavy 3:b34685dbdb8d 21 };
joshdavy 3:b34685dbdb8d 22
joshdavy 3:b34685dbdb8d 23 #endif