-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (92 loc) · 4.25 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
<!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="UTF-8">
<title>SUPER COLD</title>
<link rel="stylesheet" href="w3.css">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Allerta+Stencil">
</head>
<body style='background-color:black; height: 100%;'>
<div id="wrapper" class="w3-center w3-display-middle w3-border w3-border-white"
style="margin: 0 auto;">
<div style="height: 642px; width: 902px;">
<div id="menu" class="w3-display-middle"
style="width: 40%; height: 50%; margin: 0 auto; vertical-align: middle" >
<div class="w3-center w3-padding w3-xxlarge w3-black w3-allerta">
SUPER COLD
</div>
<div id="main-menu" style="display: block;">
<div>
<button class="w3-allerta w3-black w3-xlarge" style="width:100%;"
onclick="loadAll()">
Launch
</button>
</div>
<div>
<button class="w3-allerta w3-black w3-xlarge" style="width:100%;"
onclick="scoreboard(true)">
Scoreboard
</button>
</div>
</div>
<div id="in-game-menu" style="display: none;">
<div>
<button class="w3-allerta w3-black w3-xlarge" style="width:100%;"
onclick="togglePause();">
Resume
</button>
</div>
<div>
<button class="w3-allerta w3-black w3-xlarge" style="width:100%;"
onclick="toMainMenu();">
Main menu
</button>
</div>
</div>
</div>
<canvas id="canvas" width="900px" height="640px" style="display: none;">
Your browser does not support CANVAS
</canvas>
<div id="scoreboard" class="w3-display-middle w3-allerta" style="display: none;">
<div class="w3-large w3-padding w3-text-white">Hero board:</div>
<div id="scoreboard-text" class="w3-text-white"></div>
<button class="w3-allerta w3-black w3-xlarge" onclick="clearRecords();">
Clear records
</button>
<button class="w3-allerta w3-black w3-xlarge" onclick="backToMain();">
Back to main
</button>
</div>
</div>
</div>
<script>
let canvas = document.getElementById('canvas');
let context = canvas.getContext('2d');
let menu = document.getElementById('menu');
let inGameMenu = document.getElementById('in-game-menu');
let mainMenu = document.getElementById('main-menu');
let scoreboardElement = document.getElementById('scoreboard');
</script>
<script src="engine/MapManager.js"></script>
<script src="engine/SpriteManager.js"></script>
<script src="engine/EventsManager.js"></script>
<script src="engine/GameManager.js"></script>
<script src="engine/PhysicManager.js"></script>
<script src="engine/UIManager.js"></script>
<script src="engine/StatisticsManager.js"></script>
<script src="engine/AudioManager.js"></script>
<script src="resources/scenes.js"></script>
<script src="resources/entities/entity.js"></script>
<script src="resources/entities/player.js"></script>
<script src="resources/entities/trigger.js"></script>
<script src="resources/entities/bullet.js"></script>
<script src="resources/entities/enemyBullet.js"></script>
<script src="resources/entities/testBullet.js"></script>
<script src="resources/entities/enemy.js"></script>
<script src="resources/entities/energy.js"></script>
<script src="app.js"></script>
</body>
</html>