-
Notifications
You must be signed in to change notification settings - Fork 0
/
Menu.h
44 lines (31 loc) · 835 Bytes
/
Menu.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
#pragma once
#include "GameScene.h"
#include "Button.h"
class Menu :
public GameScene
{
public:
Menu ( ) { }
void initaliseGame ( int lastGameSceneResponse ) override;
int loadNextScene ( std::shared_ptr<GameScene> & newScene, bool & loadAdditively ) override;
protected:
void initaliseLevel ( ) override;
void updateGame ( ) override;
void drawGame ( ) override;
private:
float splashScreenTimer = 2.5f;
bool showSplashScreen = true;
int m_highlightOption = 0;
int m_selectedOption = 0;
// Splash screen objects
Button m_name;
Button m_course;
Button m_university;
// menu objects
Button m_btnSpaceInvader;
Button m_btnParanoid;
Button m_btnPortfolio;
Button m_btnExit;
void processSplashScreen ( );
void processMenu ( );
};