forked from ArduboyCollection/galaxion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.h
70 lines (52 loc) · 1.21 KB
/
game.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//
//
//
#ifndef _GAME_H
#define _GAME_H
#include "MicroGamer.h"
#include "MicroGamerTones.h"
#include "common.h"
#include "ship.h"
#include "enemy.h"
//=============================================================================
#define CAPTURE_SCREEN
//=============================================================================
typedef enum {
GAME_ST_NONE,
GAME_ST_LOGO,
GAME_ST_TITLE,
GAME_ST_START,
GAME_ST_PLAY,
GAME_ST_GAMEOVER,
GAME_ST_MAX
} eGameState;
//=============================================================================
class Game {
public:
eGameState mState;
int mFrame;
int mNumShips;
int mStageNo;
uint16_t mHighScore;
uint16_t mScore;
Ship mShip;
Convoy mConvoy;
int mNextStage;
int mNextShip;
Game();
~Game();
void check_input();
void do_state();
void draw();
void init_stage();
void next_stage();
void add_score(int score);
void destroy_ship();
eGameMode mMode;
int mCursor;
void draw_logo(int frame);
void draw_title(int frame);
void draw_stage(int frame);
};
#endif // !_GAME_H
//================================ END-OF-FILE ================================