-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
227 lines (196 loc) · 8.81 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
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Time to Tank</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/timer.css">
<link rel="stylesheet" href="css/gameBars.css">
<link rel="stylesheet" href="css/levelStat.css">
<script src="./lib/ammo.js"></script>
<script src="./lib/cannon.js"></script>
<script src="./lib/Oimo.js"></script>
<script src="./lib/earcut.min.js"></script>
<script src="./lib/babylon.js"></script>
<script src="./lib/babylonjs.materials.min.js"></script>
<script src="./lib/babylonjs.proceduralTextures.min.js"></script>
<script src="./lib/babylonjs.postProcess.min.js"></script>
<script src="./lib/babylonjs.loaders.js"></script>
<script src="./lib/babylonjs.serializers.min.js"></script>
<script src="./lib/babylon.gui.min.js"></script>
<script src="./lib/babylon.inspector.bundle.js"></script>
<script src="./lib/dat.gui.min.js"></script>
<!-- <script src=""></script> -->
<!-- <script src="babylon_start/tool_babylon.js"></script>
<script src="main/global_vars.js"></script>
<script src="levels/levelObjectives.js"></script>
<script src="levels/level.js"></script>
<script src="levels/levels.js"></script>
<script src="babylon_start/particles.js"></script>
<script src="babylon_start/GUI.js"></script>
<script src="game_objects/objectPos.js"></script>
<script src="game_objects/objectEnum.js"></script>
<script src="game_objects/char.js"></script>
<script src="game_objects/charBoss.js"></script>
<script src="game_objects/bullet.js"></script>
<script src="game_objects/bonus.js"></script>
<script src="game_objects/bonusEnum.js"></script>
<script src="game_objects/barrel.js"></script>
<script src="game_objects/battery.js"></script>
<script src="game_objects/tree.js"></script>
<script src="game_objects/rock.js"></script>
<script src="game_objects/egyptianRelic.js"></script>
<script src="game_objects/house.js"></script>
<script src="game_objects/healthBar.js"></script>
<script src="game_objects/grenadeObj.js"></script>
<script src="tools/utils.js"></script>
<script src="game_objects/wall.js"></script>
<script src="game_objects/delimiterMesh.js"></script>
<script src="main/main.js"></script> -->
<!--
<script src="game_IA/shootAI.js"></script>
<script src="game_IA/moveAI.js"></script>
<script src="game_IA/guaranteedAI.js"></script>
<script src="game_IA/noStrategy.js"></script>
<script src="tools/minimap.js"></script>
<script src="tools/counter.js"></script>
<script src="tools/chrono.js"></script>
<!-- SPECIAL BONUSES -->
<!-- <script src="specialBonus/bonusSpecial.js"></script>
<script src="specialBonus/crossHair.js"></script>
<script src="specialBonus/dome.js"></script>
<script src="specialBonus/machineGun.js"></script>
<script src="specialBonus/speedTurbo.js"></script>
<script src="specialBonus/mindControl.js"></script>
<script src="specialBonus/teleport.js"></script>
<script src="specialBonus/bullCharge.js"></script>
<script src="specialBonus/grenade.js"></script>
<script src="specialBonus/allies.js"></script> -->
<script src="./src/babylon_start/scene.js" type="module"></script>
<link rel="shortcut icon" href="images/tankGreen.png">
<style>
.bruteHide {
opacity: 0;
}
</style>
</head>
<body>
<body>
<canvas id="myCanvas"></canvas>
<div class="box gameBars gameBarsClass">
<div> Level : <span id="level">1/10</span></div>
<div>
<canvas id="healthBar"></canvas>
<img src="images/life.png" alt="NoLifeImg" class="logo">
<span id="healthPlayer"></span>
</div>
<div>
Speed : <span id="speed">0</span> km/h
</div>
</div>
<div class="top-right-panel gameBarsClass">
<div id="tips_container" class="box tips">
<div id="tips">
</div>
</div>
<canvas id="minimap"></canvas>
</div>
<div id="src"></div>
<div id="bonusPanel" class="box divb hide">
</div>
<div id="main" class="box divb">
<div id="adventure" class='button main'
onclick="scene.isAdventure = true; scene.menu.displayIntro(true);pointerLock()"
onmouseenter="scene.menu.soundHover()">
<span>Adventure Mode</span>
</div>
<div id="roguelike" class='button main'
onclick="scene.isAdventure = false; scene.menu.displayIntro(true);pointerLock()"
onmouseenter="scene.menu.soundHover()">
<span>Hardcore Mode</span>
</div>
<div id="continue" class='button hide'
onclick="if (scene.pointerLockChange != null && Date.now() - scene.pointerLockChange < 1400) { console.log('exit pointer lock too fast!')} else {scene.menu.show(false); pointerLock();}"
onmouseenter="scene.menu.soundHover()">
<span>Continue</span>
</div>
<div id="goToLevels" class='button' onmouseenter="scene.menu.soundHover()">
<span>Levels</span>
</div>
<div id="restart" class="button hide" onclick="scene.menu.restart()" onmouseenter="scene.menu.soundHover()">
<span>Main menu</span>
</div>
</div>
<div class="divb hide" id="endLevelStat">
<table id="tableStat"></table>
</div>
<div id="timer" style="display: none;"></div>
<div id="loadingBarMain" class="loadingBarMain">
<div class="loadingBarChild" style="width:0%"></div>
</div>
<br>
<div class="box bonusPanel gameBarsClass">
<div class="hide">Special Bonus</div>
<div id="specialBonus" class="specialBonus ">
<!-- <div class="bg" style="--img: url('../images/gunaims.png')">
<div class="pie animate no-round" style="--p:50"> 80%</div>
<div class="shortcut">9</div>
<div class="powerSpecialBonus">
<div></div>
</div>
</div> -->
</div>
<div>Normal Bonus</div>
<div id="normalBonus" class="normalBonus">
<!-- <div class="bg" style="--img: url('../images/speed_tank.png')">
<div id="speedT" class="shortcut">0</div>
</div>
<div class="bg" style="--img: url('../images/reload_bullet.png')">
<div id="reloadB" class="shortcut">0</div>
</div>
<div class="bg" style="--img: url('../images/speed_bullet.png')">
<div id="speedB" class="shortcut">0</div>
</div> -->
</div>
</div>
<div id="fps" class="box gameBarsClass hide">0</div>
<div class="box currentMission gameBarsClass">
<!-- <div><span>Char a tuer</span><span>1/2</span></div>
<div><span>Plante a brule</span><span>2/3</span></div> -->
</div>
<div id='intro' class="intro full-screen hide">
<div class="story box" style="--img: ''">
<div>
<div>
The firm "<they>X</they>" has discovered how to time travel and wants to
use it to <they> modify</they> past events to gain money. <br>
<we>You</we> have succeeded in stealing one of their
gear and <we> You</we> are the only one able to avoid terrible things to happen.
</div>
<div class="hover" onclick="scene.menu.show(false); scene.menu.displayIntro(false); pointerLock()">
Space</div>
</div>
</div>
</div>
<div id="storyFullScreen" class="full-screen hide">
<div id="storyId" class="story box" style="--img: url(time_travel.jpg)">
<div>
<div id="text-mission">
</div>
<div class="hover" onclick="scene.menu.displayScenario(false)">Space</div>
</div>
</div>
</div>
<div id="levelBox" class="box levelsBox hide">
<div class="levels">
</div>
<div id="backButton" class="backButton">Back</div>
</div>
<script>
Array.from(document.getElementsByTagName('body')[0].children).forEach(element => {
if (element.id != "loadingBarMain" && element.id != "firstFullScreen")
element.classList.add('bruteHide')
});
</script>
</body>
</html>