Josh Davy / Mbed 2 deprecated Flip

Dependencies:   mbed el17jd

Committer:
joshdavy
Date:
Tue Apr 02 10:45:44 2019 +0000
Revision:
2:b62e8be35a5d
Parent:
1:37802772843e
Child:
3:b34685dbdb8d
Basic Sprite Rendering

Who changed what in which revision?

UserRevisionLine numberNew contents of line
joshdavy 1:37802772843e 1 #ifndef GAME_H
joshdavy 1:37802772843e 2 #define GAME_H
joshdavy 1:37802772843e 3
joshdavy 1:37802772843e 4 /*Game Class*/
joshdavy 1:37802772843e 5 #include "mbed.h"
joshdavy 1:37802772843e 6 #include "N5110.h"
joshdavy 1:37802772843e 7 #include "Gamepad.h"
joshdavy 1:37802772843e 8 #include "Sprite.h"
joshdavy 1:37802772843e 9
joshdavy 2:b62e8be35a5d 10
joshdavy 2:b62e8be35a5d 11
joshdavy 1:37802772843e 12 class Game {
joshdavy 1:37802772843e 13
joshdavy 1:37802772843e 14 public:
joshdavy 1:37802772843e 15 Game();
joshdavy 1:37802772843e 16 ~Game();
joshdavy 1:37802772843e 17 void read_input(Gamepad &pad);
joshdavy 1:37802772843e 18 void update(Gamepad &pad);
joshdavy 2:b62e8be35a5d 19 void draw(N5110 &lcd);
joshdavy 1:37802772843e 20
joshdavy 1:37802772843e 21 private:
joshdavy 1:37802772843e 22 Direction _d;
joshdavy 1:37802772843e 23 float _mag;
joshdavy 1:37802772843e 24 Sprite _player;
joshdavy 1:37802772843e 25 };
joshdavy 1:37802772843e 26 #endif