Josh Davy / Mbed OS Flip_OS_5

Dependencies:   el17jd

Committer:
joshdavy
Date:
Wed Apr 10 11:03:07 2019 +0000
Revision:
6:2ca1516ec1e2
Parent:
3:b34685dbdb8d
Child:
7:68e06dda79f7
Began implementing "levels" which store the blocks/enemies of each stage

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 3:b34685dbdb8d 9 #include "Player.h"
joshdavy 6:2ca1516ec1e2 10 #include "Level.h"
joshdavy 1:37802772843e 11
joshdavy 2:b62e8be35a5d 12
joshdavy 2:b62e8be35a5d 13
joshdavy 1:37802772843e 14 class Game {
joshdavy 1:37802772843e 15
joshdavy 1:37802772843e 16 public:
joshdavy 1:37802772843e 17 Game();
joshdavy 1:37802772843e 18 ~Game();
joshdavy 1:37802772843e 19 void read_input(Gamepad &pad);
joshdavy 1:37802772843e 20 void update(Gamepad &pad);
joshdavy 2:b62e8be35a5d 21 void draw(N5110 &lcd);
joshdavy 1:37802772843e 22
joshdavy 1:37802772843e 23 private:
joshdavy 1:37802772843e 24 Direction _d;
joshdavy 1:37802772843e 25 float _mag;
joshdavy 3:b34685dbdb8d 26 Player _player;
joshdavy 6:2ca1516ec1e2 27 Level _level;
joshdavy 1:37802772843e 28 };
joshdavy 1:37802772843e 29 #endif