-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathModuleGameOver.h
More file actions
46 lines (37 loc) · 771 Bytes
/
ModuleGameOver.h
File metadata and controls
46 lines (37 loc) · 771 Bytes
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
#ifndef __MODULEGAMEOVER_H__
#define __MODULEGAMEOVER_H__
#include "Module.h"
#include "Animation.h"
#include "Globals.h"
class ModuleGameOver : public Module
{
public:
ModuleGameOver();
~ModuleGameOver();
bool Start();
update_status Update();
bool CleanUp();
public:
SDL_Texture* gameOverTexture = nullptr;
SDL_Texture* blackScreenTexture = nullptr;
SDL_Rect gameOverFirstRect;
SDL_Rect gameOverMidRect;
SDL_Rect gameOverRect;
Uint32 now;
float start_time;
float total_time;
float lastFadeFromWhiteTime;
int timeInWhite;
private:
enum intro_step
{
firstSecuence,
firstletters,
secondletters,
fade_to_white,
time_in_white,
fade_from_white,
lastgameover,
} current_step = intro_step::firstSecuence;
};
#endif //__MODULEGAMEOVER_H__