-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.h
41 lines (33 loc) · 763 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
#pragma once
#include "main.h"
class Menu : Stage
{
private:
ALLEGRO_BITMAP* titleBkg;
ALLEGRO_BITMAP* buttonUp;
ALLEGRO_BITMAP* buttonDown;
ALLEGRO_FONT* titleFont;
ALLEGRO_FONT* menuFont;
ALLEGRO_AUDIO_STREAM* menuMusic;
//ALLEGRO_EVENT_SOURCE* menuMusicSource;
int titleTint;
int titleTintDelay;
int titleTextY;
int playerTint;
int buttonState;
int buttonStateDelay;
int gameCountDown;
int gameCountDownDelay;
bool gameCountDownActive;
void RenderPlayerBox( int PlayerIdx, int BoxX, int BoxY, int BoxW, int BoxH );
int MinPlayerCount;
public:
// Stage control
void Begin();
void Pause();
void Resume();
void Finish();
void Event(ALLEGRO_EVENT *e);
void Update();
void Render();
};