-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
83 lines (80 loc) · 4.32 KB
/
index.html
File metadata and controls
83 lines (80 loc) · 4.32 KB
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
<!DOCTYPE html>
<html>
<!--
"Geometry Wars: Retro Evolved" is Copyrighted by "Bizarre Creations".
All game materials and gameplay elements are based off of the "Geometry Wars: Retro Evolved" game.
Canvas Wars was developed by Mia Hall as a project to test the limits of javascript and HTML5 in a human perceivable way.
Later optimized to use more efficient code, and also to expand on it as a game so that it could be reasonably used.
-->
<head>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Canvas Wars V2</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body onload="init();"><div class="menu" style='height:480;width:640;'>
<canvas height="480" width="640"></canvas><br>
<span id='highscore'>0</span>
<span id='score'>0</span>
<div class="game"></div>
<div class="pause">
<span>Canvas Wars<br><span>Paused</span></span>
<button onclick="GoTo('game');togglePause();">Resume</button>
<button onclick="GoTo('menu');endGame();">End Game</button>
</div>
<div class="highscores">
<span>Canvas Wars<br><span>High Scores</span></span>
<table>
<tr><th>Latest Score : </th><td id='the_score'>0</td></tr>
<tr><th>High Score : </th><td id='the_highscore'></td></tr>
</table>
<button onclick="setScore.reset();">Reset Scores</button>
<button onclick="GoTo('menu')" class='bottom'>Return</button>
</div>
<div class="settings">
<span>Canvas Wars<br><span>Settings</span></span>
<!--<button onclick='gameAudio.toggle("music");buttonToggle(this);'>Toggle Music</button>
<button onclick='gameAudio.toggle("effects");buttonToggle(this);'>Toggle Sound Effects</button>-->
<button onclick='fireworks = !fireworks;buttonToggle(this);'>Toggle Explosions</button>
<button onclick='crosshair = !crosshair;buttonToggle(this);' class='disabled'>Toggle Extended Crosshair</button>
<button onclick="GoTo('menu')" class='bottom'>Return</button>
</div>
<div class="controls">
<span>Canvas Wars<br><span>Controls</span></span>
<table>
<tr><th>Fire Primary : </th><td>Mouse Left</td></tr>
<tr><th>Fire Secondary : </th><td>Mouse Right</td></tr>
<tr><th>Move Forward : </th><td>W</td></tr>
<tr><th>Turn Left : </th><td>A</td></tr>
<tr><th>Turn Right : </th><td>D</td></tr>
</table>
<button onclick="GoTo('menu')" class='bottom'>Return</button>
</div>
<div class="menu">
<span>Canvas Wars<br><span> </span></span>
<button onclick="GoTo('game');startGame(1);">Play Game</button>
<button onclick="GoTo('highscores')">High Scores</button>
<button onclick="GoTo('settings')">Settings</button>
<button onclick="GoTo('controls')">Controls</button>
</div>
</div>
<br><br><i><b>Canvas Wars</b></i> was based completely off of <i><b>Geometry Wars:Retro Evolved</b></i>, a game by <b>Bizarre Creations</b>.
All credits to the concept and art should be attributed to <b>Bizarre Creations</b>.
Development of the <i><b>Canvas Wars</b></i> game is attributed solely to Mia Hall.
<div id='debug' style='display:none'>
<br>Keys pressed : <span id='keys'></span>
<br>Mouse data : <span id='mouse'></span>
<br>Difficulty Level : <span id='difficulty'></span>
<br>Total Sprites : <span id='sprites'></span>
<br>Total Players : <span id='players'></span>
<br>Total Player Shots : <span id='player_shots'></span>
<br>Total Enemies : <span id='enemies'></span>
<br>Total Enemy Shots : <span id='enemy_shots'></span>
<br>Total Effects : <span id='effects'></span>
<br>Audio Format : <span id='audioused'></span>
</div>
<script src="sprites.js" type="text/javascript"></script>
<script src="sequences.js" type="text/javascript"></script>
<script src="audio.js" type="text/javascript"></script>
<script src="game.js" type="text/javascript"></script>
</body>
</html>