-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.cpp
More file actions
45 lines (39 loc) · 803 Bytes
/
Copy pathmenu.cpp
File metadata and controls
45 lines (39 loc) · 803 Bytes
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
#include "menu.h"
Menu::Menu ()
{
state = 1;
}
Menu::~Menu ()
{
}
void Menu::Draw ()
{
glLoadIdentity ();
glTranslatef (0, 0, -1.0f);
glColor3f (1, 0, 0);
verdana.write (-.43f, .25f, "Adoktris");
glColor3f (1, 1, 1);
if (state == 1)
{
courier.write (-.43f, -.28f, ">> 1 Player");
courier.write (-.43f, -.28f - .125f, " 2 Players");
}
else if (state == 2)
{
courier.write (-.43f, -.28f, " 1 Player");
courier.write (-.43f, -.28f - .125f, ">> 2 Players");
}
glColor3f (1, 1, 0);
if (state == 1)
courier.write (-.78f, -.72f, "Controls: Cursor Keys");
else if (state == 2)
courier.write (-.78f, -.72f, "Controls: WASD, Cursor Keys");
}
void Menu::ChangeState ()
{
state = 3 - state;
}
int Menu::GetState ()
{
return state;
}