-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStartScreen.h
69 lines (53 loc) · 1.21 KB
/
StartScreen.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
#ifndef _STARTSCREEN_H
#define _STARTSCREEN_H
#include "AnimatedTexture.h"
#include "InputManager.h"
#include "BackgroundStars.h"
#include "ScoreBoard.h"
using namespace QuickSDL;
class StartScreen : public GameEntity
{
private:
Timer* mTimer;
InputManager* mInput;
//TopBar entitys
GameEntity* mTopBar;
Texture* mPlayerOne;
Texture* mHiScore;
Texture* mPlayerTwo;
ScoreBoard* mPlayerOneScore;
ScoreBoard* mTopScore;
ScoreBoard* mPlayerTwoScore;
//Logo entitys
Texture* mLogo;
AnimatedTexture* mAnimatedLogo;
//Game modes
GameEntity* mPlayModes;
Texture* mOnePlayerMode;
Texture* mTwoPlayerMode;
Texture* mCursor;
Vector2 mCursorStartPos;
Vector2 mCursorOffset;
int mSelectedMode;
//Bottom bar entitys
GameEntity* mBotBar;
Texture* mNamco;
Texture* mDates;
Texture* mRights;
//Screen Animation Variables.
Vector2 mAnimationStartPos;
Vector2 mAnimationEndPos;
float mAnimationTotalTime;
float mAnimationTimer;
bool mAnimationDone;
BackgroundStars* mStars;
public:
StartScreen();
~StartScreen();
void ResetAnimation();
int SelectedMode();
void ChangeSelectedMode(int change);
void Update();
void Render();
};
#endif