-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
242 lines (222 loc) · 11.4 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<!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" />
<link rel="icon" type="image/png" href="./assets/images/invader.png" />
<title>Space Invaders</title>
<link rel="stylesheet" href="./assets/style/main.css" />
</head>
<body>
<div class="game">
<p class="scoreP"><span>Score : </span><span id="score">0</span></p>
<p class="ammunitionDisplay"><span>Munitions : </span><span id="ammunition">0</span></p>
<canvas width="1920" height="1080"></canvas>
</div>
<div class="menu">
<div class="main-menu">
<div class="title">
<h1>MATHS ATTACK</h1>
<span>Jeu créé par Estelle THOUVENIN et Léo DELPLANQUE</span>
</div>
<div class="btn-container">
<button class="btn-menu launch">LANCER LE JEU</button>
<button class="btn-menu params">PARAMETRES</button>
</div>
</div>
<div class="params-menu">
<h1>Changez les paramètres de la partie à jouer</h1>
<div class="params-elements">
<div class="params-el">
<h3>Nombre d'ennemis</h3>
<div class="ranges">
<div>
<label for="minRow">Minimum de lignes</label>
<div>
<input type="range" name="minRow" id="minRow" min="1" max="10" value="2">
<span id="minRowValue">2</span>
</div>
</div>
<div>
<label for="maxRow">Maximum de lignes</label>
<div>
<input type="range" name="maxRow" id="maxRow" min="1" max="10" value="7">
<span id="maxRowValue">7</span>
</div>
</div>
<div>
<label for="minCol">Minimum de colonnes</label>
<div>
<input type="range" name="minCol" id="minCol" min="1" max="10" value="5">
<span id="minColValue">5</span>
</div>
</div>
<div>
<label for="maxCol">Maximum de colonnes</label>
<div>
<input type="range" name="maxCol" id="maxCol" min="1" max="20" value="15">
<span id="maxColValue">15</span>
</div>
</div>
</div>
</div>
<div class="params-el">
<h3>Moment d’apparition des boosts</h3>
<div class="ranges">
<div>
<label for="alpha">Alpha (α)</label>
<div>
<input type="range" name="alpha" id="alpha" min="1" max="10" value="5">
<span id="alphaValue">5</span>
</div>
</div>
<div>
<label for="beta">Beta (β)</label>
<div>
<input type="range" name="beta" id="beta" min="1" max="10" value="2">
<span id="betaValue">2</span>
</div>
</div>
<div>
<label for="centre">Centre</label>
<div>
<input type="range" name="centre" id="centre" min="10" max="800" value="450">
<span id="centreValue">450</span>
</div>
</div>
<div>
<label for="etendu">Etendu</label>
<div>
<input type="range" name="etendu" id="etendu" min="10" max="800" value="300">
<span id="etenduValue">300</span>
</div>
</div>
</div>
</div>
<div class="params-el">
<h3>Type de boost</h3>
<div class="ranges">
<div>
<input type="radio" name="boost" id="boost-facile" value="boost-facile">
<label for="boost-facile">Facile</label>
</div>
<div>
<input type="radio" name="boost" id="boost-mid" value="boost-mid" checked>
<label for="boost-mid">Moyen</label>
</div>
<div>
<input type="radio" name="boost" id="boost-hard" value="boost-hard">
<label for="boost-hard">Difficile</label>
</div>
</div>
</div>
<div class="params-el">
<h3>Durée des boosts</h3>
<div class="ranges">
<div>
<label for="lambda">Lambda (λ)</label>
<div>
<input type="range" name="lambda" id="lambda" min="0.2" max="3" value="0.5" step="0.01">
<span id="lambdaValue">0.5</span>
</div>
</div>
<div>
<label for="expoMin">Durée minimum</label>
<div>
<input type="range" name="expoMin" id="expoMin" min="10" max="800" value="100">
<span id="expoMinValue">100</span>
</div>
</div>
</div>
</div>
<div class="params-el">
<h3>Nombre de PV des bosses</h3>
<div class="ranges">
<div>
<label for="binomialeN">Paramètres N de la binomiale</label>
<div>
<input type="range" name="binomialeN" id="binomialeN" min="1" max="1000" value="400" step="1">
<span id="binomialeNValue">400</span>
</div>
</div>
<div>
<label for="binomProba">Probabilité de l'évènement</label>
<div>
<input type="range" name="binomProba" id="binomProba" min="0" max="1" value="0.5" step="0.01">
<span id="binomProbaValue">0.5</span>
</div>
</div>
</div>
</div>
</div>
<button class="btn-menu goback">Retour au menu</button>
</div>
</div>
<div id="stats">
<h1>Quelques données statistiques</h1>
<div id="statsDetails">
<div>
<h2>Types de boost</h2>
<div class="partie-theorie-ctn">
<div>
<h3>Partie</h3>
<p><span>Munitions : </span><span id="munitions">/</span></p>
<p><span>Tir constant : </span><span id="tirConstant">/</span></p>
<p><span>Bouclier : </span><span id="bouclier">/</span></p>
</div>
<div>
<h3>Théorie</h3>
<p><span>Munitions : </span><span id="munitions">/</span></p>
<p><span>Tir constant : </span><span id="tirConstant">/</span></p>
<p><span>Bouclier : </span><span id="bouclier">/</span></p>
</div>
</div>
</div>
<div>
<h2>Nombre d'ennemis moyen dans une grille</h2>
<p><span>Moyenne : </span><span id="moyenne">/</span></p>
<p><span>Écart moyen : </span><span id="ecartMoyen">/</span></p>
<p><span>Écart-type : </span><span id="ecartType">/</span></p>
</div>
<div>
<h2>Nombre de pv des Boss</h2>
<div class="partie-theorie-ctn">
<div>
<h3>Partie</h3>
<p><span>Moyenne : </span><span id="moyenne">/</span></p>
<p><span>Écart moyen : </span><span id="ecartMoyen">/</span></p>
<p><span>Écart-type : </span><span id="ecartType">/</span></p>
</div>
<div>
<h3>Théorie</h3>
<p><span>Moyenne : </span><span id="moyenne">/</span></p>
<p><span>Écart-type : </span><span id="ecartType">/</span></p>
</div>
</div>
</div>
<div>
<h2>Temps d'apparition du Boss (en frames)</h2>
<div class="partie-theorie-ctn">
<div>
<h3>Partie</h3>
<p><span>Moyenne : </span><span id="moyenne">/</span></p>
<p><span>Écart moyen : </span><span id="ecartMoyen">/</span></p>
<p><span>Écart-type : </span><span id="ecartType">/</span></p>
</div>
<div>
<h3>Théorie</h3>
<p><span>Moyenne : </span><span id="moyenne">/</span></p>
<p><span>Écart-type : </span><span id="ecartType">/</span></p>
</div>
</div>
</div>
</div>
<div class="retry-btn">
<a href="./">Relancer le jeu</a>
</div>
</div>
<script type="module" src="./assets/script/index.js"></script>
<!-- <script type="module" src="./assets/script/testsRandom.js"></script> -->
</body>
</html>