-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (97 loc) · 4.55 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="apple-touch-icon" sizes="180x180" href="/_media/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/_media/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/_media/favicon/favicon-16x16.png">
<link rel="manifest" href="/_media/favicon/site.webmanifest">
<link rel="mask-icon" href="/_media/favicon/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/_media/favicon/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="/_media/favicon/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="style.css">
<script defer src="script.min.js"></script>
<title>X-1 ALPHA</title>
</head>
<body>
<div class="scene" id="scene">
<canvas class="decor" id="decor"></canvas>
<div class="limite --droite" data-obstacle></div>
<div class="limite --gauche" data-obstacle></div>
<div class="limite --haut" data-obstacle></div>
<div class="limite --bas" data-obstacle data-degat></div>
<div class="obstacle" data-obstacle style="top: 300px;left:200px;"></div>
<div class="obstacle" data-obstacle data-degat style="top: 400px;left:400px; height:100px;"></div>
<div class="obstacle" data-obstacle data-degat style="top: 400px;right:0px;"></div>
<div class="obstacle" data-obstacle data-degat style="top: 180px;left:600px;"></div>
<div class="obstacle" data-obstacle data-degat style="top: 300px;left:600px;"></div>
<div class="obstacle" data-obstacle data-degat style="top: 180px;left:220px;" data-degat></div>
<div class="obstacle" data-obstacle data-degat style="top: 220px;left:310px;width:300px;height:100px"></div>
<div class="hitbox-conteneur" data-obstacle data-conteneur>
<div class="conteneur"></div>
<div class="quai">
<canvas class="cargaison" id="cargaison"></canvas>
</div>
</div>
<div class="hitbox-destination" data-destination="" style="bottom: 50px; right:90px;">
<div class="destination"></div>
<div class="conteneur hide"></div>
</div>
<div class="hitbox-destination" data-destination="" style="top: 260px; right:140px;">
<div class="asteroid"></div>
<div class="destination"></div>
<div class="conteneur hide"></div>
</div>
<div class="hitbox-destination" data-destination="" style="bottom: 50px; left:300px;">
<div class="destination"></div>
<div class="conteneur hide"></div>
</div>
<div class="vaisseau-spatial" id="vaisseau">
<div class="reacteur" data-boost="--boost" id="reacteur"></div>
<div class="pince" id="pince"></div>
<div class="hitbox-cargaison" id="hitbox-cargaison"></div>
<div class="boom" id="boom"></div>
</div>
<div class="interface">
<div class="jauge">
<div class="jauge__degat" id="jauge-degat"></div>
</div>
</div>
</div>
<dialog id="dialogStart" open>
<form class="df fd-c ai-c gap" id="formPartie">
<label for="difficulter">Difficulter</label>
<select name="difficulter" id="difficulter">
<option value="1">Novice</option>
<option value="3" selected>Débutant</option>
<option value="6">Intermédiaire</option>
<option value="9">Avancé</option>
<!--<option value="infini">Expert</option>-->
</select>
<button type="submit" id="btnJouer">
Commencer
</button>
</form>
</dialog>
<dialog id="dialogStatut">
<div class="df fd-c ai-c gap">
<div id="pauseSection">
<div class="df fd-c ai-c">
<p>Jeu en pause</p>
<button type="button" id="btnRelancer">Reprendre</button>
</div>
</div>
<div id="winSection" class="hide">
<p>Gagné</p>
</div>
<div id="looseSection" class="hide">
<p>Perdu</p>
</div>
<button type="button" id="btnRejouer">Commencer une nouvelle partie</button>
</div>
</dialog>
</body>
</html>