-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
127 lines (118 loc) · 5.03 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
<!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>BuzzLatrine</title>
<link rel="stylesheet" href="style.css">
</head>
<!--Acknowledgements and used sources:
I would like to thank freepik "http://www.freepik.com" for providing free pictures.
-->
<body onload="mainMenu()">
<canvas id="canvas" width="1200" height="800"></canvas>
<div id="menu" style="display:none">
<a href="#" onclick="mainMenu()">Main Menu</a>
<a href="#" onclick="shop()">Shop</a>
<a href="#" onclick="restartGame()">Restart</a>
</div>
<div id="main-menu" style="display:none">
<a href="#" onclick="startGame()">PLAY</a>
<a id="shopLink" href="#" onclick="shop()">Shop</a>
</div>
<div id="shop" style="display:none">
<p id="balance"></p>
<h1>SHOP</h1>
<div id="items">
<div id="m-packet">
<a href="#" onclick="buyMPacket()">
<img id="m-packet-normal" style="display:none" src="./images/m-packet.png" alt="m-packet">
<img id="m-packet-gray" src="./images/m-packet-gray.png" alt="m-packet-gray">
</a>
<h2>$50,000</h2>
</div>
<div id="spoiler">
<a href="#" onclick="buySpoiler()">
<img id="spoiler-normal" style="display:none" src="./images/spoiler.png" alt="spoiler">
<img id="spoiler-gray" src="./images/spoiler-gray.png" alt="spoiler-gray">
</a>
<h2>$10,000</h2>
</div>
<div id="wheels">
<a href="#" onclick="buyWheels()">
<img id="wheels-normal" style="display:none" src="./images/wheels.png" alt="wheels">
<img id="wheels-gray" src="./images/wheels-gray.png" alt="wheels-gray">
</a>
<h2>$5,000</h2>
</div>
<div id="sport-wheels">
<a href="#" onclick="buySportWheels()">
<img id="sport-wheels-normal" style="display:none" src="./images/sport-wheels.png" alt="sport-wheels">
<img id="sport-wheels-gray" src="./images/sport-wheels-gray.png" alt="sport-wheels-gray">
</a>
<h2>$20,000</h2>
</div>
<div id="suit">
<a href="#" onclick="buySuit()">
<img id="suit-normal" style="display:none" src="./images/suit-shop.png" alt="suit">
<img id="suit-gray" src="./images/suit-shop-gray.png" alt="suit-gray">
</a>
<h2>$100,000</h2>
</div>
<div id="helmet">
<a href="#" onclick="buyHelmet()">
<img id="helmet-normal" style="display:none" src="./images/helmet.png" alt="helmet">
<img id="helmet-gray" src="./images/helmet-gray.png" alt="helmet-gray">
</a>
<h2>$30,000</h2>
</div>
<div id="kofola">
<a href="#" onclick="buyKofola()">
<img id="kofola-normal" style="display:none" src="./images/kofola.png" alt="kofola">
<img id="kofola-gray" src="./images/kofola-gray.png" alt="kofola-gray">
</a>
<h2>$10,000</h2>
</div>
<div id="nitro">
<a href="#" onclick="buyNitro()">
<img id="nitro-normal" style="display:none" src="./images/nitro.png" alt="nitro">
<img id="nitro-gray" src="./images/nitro-gray.png" alt="nitro-gray">
</a>
<h2>$50,000</h2>
</div>
</div>
<a id="link" href="#" onclick="mainMenu()">Main Menu</a>
<a id="link" href="#" onclick="restartGame()">LAUNCH!</a>
</div>
<div style="position: relative; width: 0; height: 0">
<div id="kofolaBoost" style="display:none">
<a href="#" onclick="kofolaBoost()">
<img src="./images/kofola.png" alt="kofola">
</a>
</div>
</div>
<div style="position: relative; width: 0; height: 0">
<div id="nitroBoost" style="display:none">
<a href="#" onclick="nitroBoost()">
<img src="./images/nitro.png" alt="nitro">
</a>
</div>
</div>
<div style="position: relative; width: 0; height: 0">
<div id="restartButton" style="display:none">
<a href="#" onclick="restartGame()">RESTART</a>
</div>
</div>
<script src="global.js"></script>
<script src="listeners.js"></script>
<script src="player.js"></script>
<script src="score.js"></script>
<script src="cannon.js"></script>
<script src="items.js"></script>
<script src="background.js"></script>
<script src="enemies.js"></script>
<script src="navigation.js"></script>
<script src="main.js"></script>
</body>
</html>