-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
172 lines (165 loc) · 8.26 KB
/
index.html
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>8PG</title>
<link rel="stylesheet" type="text/css" href="css/index.css">
<link rel="stylesheet" type="text/css" href="dep/animate.css/animate.min.css">
<script src="dep/jquery/jquery-3.5.1.min.js"></script>
<script src="dep/sweetalert2/sweetalert2@10.js"></script>
<script type="text/javascript" src='js/index.js'></script>
</head>
<body>
<div id='main-menu' class='menu-screen animate__animated animate__fadeIn animate__faster'>
<img id='game-logo' src='res/img/logo.png' alt='game-logo'>
<div>
<button class='main-button' id='new-game-button'>New game</button>
<button class='main-button' id='load-game-button'>Load game</button>
<button class='main-button' id='player-profile-button'>Player profile</button>
<button class='main-button' id='about-button'>About...</button>
</div>
</div>
<div id='new-game-screen' class='menu-screen animate__animated animate__fadeIn animate__faster'>
<p class='main-title'>New game</p>
<div class='content-box'>
<div id='game-players'>
<div class='player-box'>
<div style='display:flex;align-items:center;'>
<div id='color-square-1'></div>
<p class='player-name' style='color:red'>No profile</p>
</div>
<p>Plays first</p>
</div>
<div class='player-box'>
<div style='display:flex;align-items:center;'>
<div id='color-square-0'></div>
<select id='ai-difficulty'>
<option>Easy</option>
<option>Medium</option>
<option>Hard</option>
</select>
<select id='guest-profile'>
</select>
</div>
<div id='opponent-options'>
<div>
<input id='ai-opponent' name='opponent' type='radio'>
<label for='ai-opponent'>AI</label>
</div>
<div>
<input id='human-opponent' name='opponent' type='radio'>
<label for='human-opponent'>Human</label>
</div>
</div>
</div>
</div>
<div id='default-parameters'>
<input id='default-parameters-check' type='checkbox' name='default-parameters' checked='checked'>
<label for='default-parameters-check'> Play with default settings</label>
</div>
<div id='extra-parameters' style='display:none;'>
<div id='victory-modes'>
<div id='victory-main'>
<label>Victory mode:</label>
<select id='victory-list'>
<option>Conquest</option>
<option>Annihilation</option>
<option>Prosperity</option>
<option>Tech race</option>
</select>
</div>
<p id='victory-description'></p>
</div>
<hr class='divisory-line'>
<div id='custom-parameters'>
<img class='info-icon' src='res/img/info.png' alt='info' width='20px'>
<label for='board-size'>Board size</label>
<select id='board-size'>
<option>Minimal</option>
<option>Small</option>
<option>Large</option>
<option>Huge</option>
</select>
<label id='board-size-value'></label>
<img class='info-icon' src='res/img/info.png' alt='info' width='20px'>
<label for='resources'>Resources</label>
<input id='resources-slider' class='parameter-slider' name='resources' type='range' min='-50' max='50' step='10' value='0'>
<label class='parameter-value' for='resources'>0%</label>
<img class='info-icon' src='res/img/info.png' alt='info' width='20px'>
<label for='resources'>Health</label>
<input id='health-slider' class='parameter-slider' name='resources' type='range' min='-50' max='50' step='10' value='0'>
<label class='parameter-value' for='resources'>0%</label>
</div>
<hr class='divisory-line'>
<div class='checked-parameter'>
<img class='info-icon' src='res/img/info.png' alt='info' width='20px'>
<div class='parameter-main'>
<input type='checkbox' id='technologies-developed'>
<label for='technologies-developed'>Technologies developed</label>
</div>
</div>
<div class='checked-parameter'>
<img class='info-icon' src='res/img/info.png' alt='info' width='20px'>
<div class='parameter-main'>
<input type='checkbox' id='initial-units'>
<label for='initial-units'>Army: </label>
<input id='initial-units-amount' type='number' min='1' max='10' value='1' step='1'>
<select id='initial-units-type'></select>
</div>
</div>
<div class='checked-parameter'>
<img class='info-icon' src='res/img/info.png' alt='info' width='20px'>
<div class='parameter-main'>
<input type='checkbox' id='initial-powerups'>
<label for='initial-powerups'>Powerups: </label>
<input id='initial-powerups-amount' type='number' min='1' max='10' value='1' step='1'>
<select id='initial-powerups-type'></select>
</div>
</div>
</div>
</div>
<div class='button-group'>
<button class='back'>Back</button>
<button id='new-file'>New file</button>
</div>
</div>
<div id='load-game-screen' class='menu-screen animate__animated animate__fadeIn animate__faster'>
<p class='main-title'>Load game</p>
<div class='button-group'>
<button class='back'>Back</button>
<button id='load-file'>Load file</button>
</div>
</div>
<div id='player-profile-screen' class='menu-screen animate__animated animate__fadeIn animate__faster'>
<p class='main-title'>Player profile</p>
<div class='content-box'>
<select id='profile-list'></select>
<div id='profile-stats'>
<p id='games-played'></p>
<p id='games-won'></p>
</div>
<div id='profile-box'>
<input id='profile-name-input' type='text' placeholder='Write a name here'>
<button id='add-profile'>New player</button>
<button id='change-name'>Change name</button>
<button id='delete-profile'>Delete player</button>
</div>
</div>
<div class='button-group'>
<button class='back'>Back</button>
<button id='save-profile'>Choose</button>
</div>
</div>
<div id='about-screen' class='menu-screen animate__animated animate__fadeIn animate__faster'>
<p class='main-title'>About 8PG</p>
<div class='content-box'>
<p id='about-text'>8PG was developed by Ramiro Yaben. Alpha version 0.2</p>
</div>
<div class='button-group'>
<button class='back'>Back</button>
</div>
</div>
</body>
</html>