-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainMenu.cpp
44 lines (42 loc) · 1.26 KB
/
mainMenu.cpp
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
#include "baseMenu.cpp"
enum gameName{SNAKE, LIFE};
class mainMenu : public baseMenu{
public:
mainMenu(){
cardWidth = 21,
cardHeight = 13,
gridWidth = 2,
title = L"Choose a game:",
cardsContent = {
{
L" Cellular Automata",
L" ",
L" ▄▀▀▀▄ ",
L" █ █ ",
L" ▄ ▀ ▄ ",
L" ▀█▀ ",
L" ███ ",
L" ▀ ▀ ",
L" ▀▀ ▀▀ ",
},{
L" Snake ",
L" ",
L" ▄█▀▀▀▀▀▀▀█▄ ",
L" █ ● █ ",
L" █ ",
L" █▄▄▄▄█▀▀▀▀█ ",
L" █ ",
L" ▀█ █ ",
L" ▀█▄▄▄▄▄▄▄█▀ ",
}
};
init();
}
gameName getGame(){
setFinalState();
switch (state){
case 0: return LIFE;
case 1: return SNAKE;
}
}
};