-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModuleLevel2.h
44 lines (33 loc) · 1.03 KB
/
ModuleLevel2.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
#pragma once
#ifndef __MODULELEVEL2_H__
#define __MODULELEVEL2_H__
#include "Module.h"
#include "Globals.h"
#include "SDL_rect.h"
#include "p2Point.h"
struct SDL_Texture;
class ModuleLevel2 : public Module
{
public:
ModuleLevel2(bool startEnabled);
~ModuleLevel2();
bool Start();
update_status Update();
update_status PostUpdate();
bool CleanUp();
void InfiniteScrolling(fPoint* top, fPoint* top2, fPoint* bot, fPoint* bot2, SDL_Rect* topLayer, SDL_Rect* botLayer, float speed);
SDL_Texture* backgroundTexture = nullptr;
SDL_Rect centerLayer;
SDL_Rect firstTopLayer;
SDL_Rect secondTopLayer;
SDL_Rect thirdTopLayer;
SDL_Rect firstBottomLayer;
SDL_Rect secondBottomLayer;
SDL_Rect thirdBottomLayer;
fPoint centerPos,firstTopPos,secondTopPos,thirdTopPos,firstBotPos, secondBotPos, thirdBotPos;
fPoint centerPos2,firstTopPos2,secondTopPos2,thirdTopPos2,firstBotPos2, secondBotPos2, thirdBotPos2;
float centerSpeed, firstSpeed, secondSpeed, thirdSpeed;
unsigned int numSpawnedEnemies = 0;
bool bossDead = false;
};
#endif