-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (58 loc) · 1.99 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
<!DOCTYPE html>
<html class="game_page">
<head>
<title>Blackmodule's Space Game</title>
<script src="Game.js"></script>
<script type="text/javascript">
function soundsLoaded() { play.InitSounds(); }
window.onkeydown=function(e){
if(e.keyCode==32){ return false; }
if(e.keyCode==37){ return false; }
if(e.keyCode==38){ return false; }
if(e.keyCode==39){ return false; }
if(e.keyCode==40){ return false; }
};
</script>
</head>
<body style="margin:0 auto;">
<!-- The browser will automatically choose the format it supports. -->
<audio id="bgm_square" onloadeddata="soundsLoaded()" preload="auto" autobuffer>
<source src="Audio/Square.mp3" type="audio/mp3">
<source src="Audio/Square.ogg" type="audio/ogg">
HTML5 audio not supported. Please Upgrade your web browser.
</audio>
<audio id="bgm_fast" preload="auto" autobuffer>
<source src="Audio/Fast.mp3" type="audio/mp3">
<source src="Audio/Fast.ogg" type="audio/ogg">
</audio>
<audio id="bgm_soar" preload="auto" autobuffer>
<source src="Audio/Soar.mp3" type="audio/mp3">
<source src="Audio/Soar.ogg" type="audio/ogg">
</audio>
<audio id="bgm_dorian" preload="auto" autobuffer>
<source src="Audio/Dorian.mp3" type="audio/mp3">
<source src="Audio/Dorian.ogg" type="audio/ogg">
</audio>
<audio id="bgm_euphoria" preload="auto" autobuffer>
<source src="Audio/Euphoria.mp3" type="audio/mp3">
<source src="Audio/Euphoria.ogg" type="audio/ogg">
</audio>
<audio id="bgm_energy" preload="auto" autobuffer>
<source src="Audio/Energy_Rising.mp3" type="audio/mp3">
<source src="Audio/Energy_Rising.ogg" type="audio/ogg">
</audio>
<audio id="bgm_boss" preload="auto" autobuffer>
<source src="Audio/Swim_or_Sink.mp3" type="audio/mp3">
<source src="Audio/Swim_or_Sink.ogg" type="audio/ogg">
</audio>
<!-- End Audio -->
<canvas id="canvas" width="800" height="600">
Your browser does not support the canvas element, sorry.
</canvas>
<script type="text/javascript">
var play = new Game();
play.Init(true);
play.Run();
</script>
</body>
</html>