-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModuleLights.h
65 lines (55 loc) · 1.28 KB
/
ModuleLights.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
#pragma once
#include "Module.h"
#include "Globals.h"
#include "Entity.h"
#include "Animation.h"
class ModuleLights : public Module
{
public:
ModuleLights(Application* app, bool start_enabled);
~ModuleLights();
// Main module steps
bool Start();
update_status Update();
update_status PostUpdate();
bool CleanUp();
void CircleBouncer();
void TriangleBouncer();
void ComboA();
void ComboB();
void Time();
void ArrowLeft();
void ArrowMid_A();
void ArrowMid_B();
void X10Bonus();
void LoadAnimations();
public:
SDL_Texture* arrows_left = nullptr;
SDL_Texture* arrows_mid_A = nullptr;
SDL_Texture* arrows_mid_B = nullptr;
SDL_Texture* combo_A = nullptr;
SDL_Texture* trigger = nullptr;
SDL_Texture* x10 = nullptr;
int delayBlue;
int delayYellow;
int delayRed;
int delayTriLeft;
int delayTriRight;
int delayComboA;
int delayComboB;
int delayTime;
int delayArrowsLeft;
int delayArrowsMid_A;
int delayArrowsMid_B;
int delayx10;
Animation* anim_CurrentTime = nullptr;
Animation* anim_CurrentArrowsLeft = nullptr;
Animation* anim_CurrentArrowsMid_A = nullptr;
Animation* anim_CurrentArrowsMid_B = nullptr;
Animation* anim_Currentx10 = nullptr;
Animation anim_Time;
Animation anim_ArrowsLeft;
Animation anim_ArrowsMid_A;
Animation anim_ArrowsMid_B;
Animation anim_x10;
};