Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Game/Game.h
- Committer:
- S_Tingle
- Date:
- 2019-05-08
- Revision:
- 16:37d98c281eb3
- Parent:
- 15:a080c64cf301
- Child:
- 17:ce6b54422113
File content as of revision 16:37d98c281eb3:
#ifndef GAME_H
#define GAME_H
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Menu.h"
#include "Smiley.h"
#include "Maze.h"
#include "Enemy1.h"
#include "Enemy2.h"
#include "Coin.h"
class Game{
public:
Game();
~Game();
void init();
void dirmag(Gamepad &pad);
void drawSprite(N5110 &lcd);
void collect(N5110 &lcd, Gamepad &pad);
void movement(Gamepad &pad,N5110 &lcd);
void damage(N5110 &lcd,Gamepad &pad);
void UI(Gamepad &pad,N5110 &lcd);
bool death(int lives);
private:
Smiley smiley;
Maze maze;
Enemy1 enemy1;
Enemy2 enemy2;
Coin coin;
Menu menu;
Direction dir;
float mag;
int x;
int y;
int _lives;
};
#endif