-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathgame.html
53 lines (52 loc) · 2.55 KB
/
game.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
<!DOCTYPE html>
<html>
<head>
<title>LD 24 Game</title>
<script type="text/javascript" src="js/requestAnimationFrame.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/Controls.js"></script>
<script type="text/javascript" src="js/Drawing.js"></script>
<script type="text/javascript" src="js/Sprites.js"></script>
<script type="text/javascript" src="js/Levels.js"></script>
<script type="text/javascript" src="js/platformer.js"></script>
<link rel="stylesheet" href="css/game.css" type="text/css"></script>
</head>
<body style="margin: 0px;">
<div class="container" style="border: 1px black solid; margin: 0 auto; width: 800px;">
<canvas style="border: 1px black solid;" class="game" id="game"></canvas>
<div style="display: none;" id="images">
<img id="sprites" src="images/sprites.png" />
<img id="win" src="images/win.png" />
<img id="lose" src="images/lose.png" />
<img id="level1" src="images/level1.png" />
<img id="level2" src="images/level2.png" />
</div>
<div style="display: none;" id="sounds">
<!-- <audio src="sounds/" preload="true" id=""></audio> -->
<audio src="sounds/autotracker-ld24.ogg" preload="true" id="music"></audio>
<audio src="sounds/boss.wav" preload="true" id="boss-sound"></audio>
<audio src="sounds/boss_dead.wav" preload="true" id="boss-dead-sound"></audio>
<audio src="sounds/boss_hit.wav" preload="true" id="boss-hit-sound"></audio>
<audio src="sounds/hurt.wav" preload="true" id="hurt-sound"></audio>
<audio src="sounds/jump.wav" preload="true" id="jump-sound"></audio>
<audio src="sounds/kill.wav" preload="true" id="kill-sound"></audio>
<audio src="sounds/missile.wav" preload="true" id="missile-sound"></audio>
<audio src="sounds/pickup.wav" preload="true" id="pickup-sound"></audio>
<audio src="sounds/shoot.wav" preload="true" id="shoot-sound"></audio>
</div>
<button onclick="Music.play();">Play the music</button>
<button onclick="Music.pause();">Oh god make the music stop</button>
<div>
<strong>Controls</strong>
<br />
A/D or left/right arrow keys for movement. W or up to jump. Space to shoot.
</div>
<br />
<div>This "game" is part of the <a href="http://www.ludumdare.com/compo/ludum-dare-24/?action=preview&uid=11132">Ludum Dare #24</a> 48 hour game competition</div>
<ul class="nav nav-list">
<li><a href="index.html">Development Blog</a></li>
<li><a href="https://github.com/wibblymat/ld24">Code (github)</a></li>
</ul>
</div>
</body>
</html>