-
Notifications
You must be signed in to change notification settings - Fork 1
/
ModuleSceneStage1.h
89 lines (68 loc) · 1.48 KB
/
ModuleSceneStage1.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#ifndef __MODULESCENESTAGE1_H__
#define __MODULESCENESTAGE1_H__
#include "Module.h"
#include "Animation.h"
#include "Globals.h"
#include "p2Point.h"
struct SDL_Texture;
typedef struct _Mix_Music Mix_Music;
struct Mix_Chunk;
struct position {
int x; int y;
};
class ModuleSceneStage1 : public Module
{
public:
ModuleSceneStage1();
~ModuleSceneStage1();
void resetMap();
void AddEnemies();
bool Start();
bool CleanUp();
update_status Update();
void disableModules();
void enableModules();
public:
uint index1 = 0;
uint index2 = 0;
SDL_Texture* graphics = nullptr;
SDL_Texture* back = nullptr;
SDL_Texture* hud = nullptr;
int font_gameover = -1;
SDL_Texture* injectiontex = nullptr;
SDL_Rect ground;
SDL_Rect entering;
SDL_Rect ship;
struct position injectxy;
Animation injection;
Animation injection_up;
bool resetmap = false;
bool cleaned = false;
bool show = false;
SDL_Rect background;
Animation flag;
Animation people;
Mix_Music* music;
Mix_Chunk* injection_fx;
Mix_Music* clear_stage;
Uint32 start_time;
Uint32 aux_time;
int rgb = 255;
float height;
bool injecting = true;
SDL_Rect screen;
SDL_Rect lifes;
char _stageendblit[12] = "";
char _stageend[12] = "stage clear";
char _stageend2[18] = "stage bonus 10000";
char _stageendblit2[18] = "";
bool down = false;
bool right = false;
bool injected = false;
bool shipdeployed = false;
bool arrived = false;
void injectpos();
private:
bool clearstage_fx;
};
#endif // __MODULESCENESTAGE1_H__