-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModuleLevel1.h
60 lines (46 loc) · 941 Bytes
/
ModuleLevel1.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
#pragma once
#ifndef __MODULELEVEL1_H__
#define __MODULELEVEL1_H__
#include "Module.h"
#include "Globals.h"
#include "SDL_rect.h"
#include "p2Point.h"
struct SDL_Texture;
class ModuleLevel1 : public Module
{
public:
ModuleLevel1(bool startEnabled);
~ModuleLevel1();
bool Start();
update_status Update();
update_status PostUpdate();
bool CleanUp();
SDL_Texture* backgroundTexture = nullptr;
SDL_Texture* backgroundTexture2 = nullptr;
SDL_Rect sky;
SDL_Rect mountains;
SDL_Rect floor;
unsigned int numSpawnedEnemies = 0;
enum position {
LEFTUP, LEFTDOWN, RIGHTUP, RIGHTDOWN
};
enum direction
{
LEFTDIR, RIGHTDIR
};
uint currentPosition;
uint currentDirection;
uint cameraSpeed = 7;
uint proportion = 3;
bool spinningRight;
uint spinningRightCounter;
bool spinningLeft;
uint spinningLeftCounter;
// Timer
uint startTime;
uint prevTime;
uint currentTime;
uint seconds;
uint miliseconds;
};
#endif