-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
131 lines (119 loc) · 3.54 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
128
129
130
131
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="user-scalable=no, width=device-width, height=device-height" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>Cirplosion - A canvas based game</title>
<style>
body, canvas {
margin: 0px;
padding : 0px;
}
.button{
color : white;
padding : 10px;
border : 3px solid white;
border-radius : 10px;
overflow : auto;
position : absolute;
}
.button:hover{
background-color : white;
color : black;
border : 3px solid white;
cursor : pointer;
}
.transitions {
-webkit-transition-property : all;
-webkit-transition-duration : 0.5s;
-moz-transition-property : all;
-moz-transition-duration : 0.5s;
-o-transition-property : all;
-o-transition-duration : 0.5s;
}
td, tr{
padding : 10px;
}
#replay, #next{
cursor : pointer;
}
a{
color : white;
font-weight : bold;
}
</style>
</head>
<body>
<div id='top'>
Time left: <span id='time'>--</span> seconds
<span class='center'>
Level <span id='level'>0</span>
</span>
<span class='right'>
Cirplosions: <span id='cirplosions'>0</span>
</span>
</div>
<div id='failMenu' style='position:absolute; padding: 10px; border: 1px solid white; display: none; border-radius: 10px; color: white;'>
<span id='failedText'></span>
<br><br>
<span id='tryAgain' style='cursor:pointer'>Try again?</span>
</div>
<table id='levelMenu' class='center' style='border : 1px solid white; display : none; border-radius : 10px; color : white;'>
<tr>
<td>Attempts: </td><td id='attempts'></td> <td id='attScore'></td>
</tr>
<tr>
<td>Cirplosions left: </td><td id='cirpLeft'></td> <td id='cirScore'></td>
</tr>
<tr>
<td>Time left: </td><td id='timeLeft'></td> <td id='timeScore'></td>
</tr>
<tr>
<td>Score: </td><td id='score'></td><td></td>
</tr>
<tr>
<td>Total Score: </td><td></td><td id='totalScore'></td>
</tr>
<tr>
<td></td><td id='replay'>Replay</td><td id='next'>Next level</td>
</tr>
</table>
<canvas id='canvas'>Your browser doesn't support the canvas element. Try updating your browser, or using a different browser (such as Chrome, Firefox or Safari)</canvas>
<audio id='track' src='track.wav' loop="loop" preload="auto"></audio>
<audio id='blast' src='sfx/blast.wav' preload="auto"></audio>
<audio id='die' src='sfx/die.wav' preload="auto"></audio>
<audio id='expanding' src='sfx/expanding.wav' preload="auto"></audio>
<audio id='freeze' src='sfx/freeze.wav' preload="auto"></audio>
<audio id='hitWall' src='sfx/hitWall.wav' preload="auto"></audio>
<audio id='levelComplete' src='sfx/levelComplete.wav' preload="auto"></audio>
<div id='bottom'>
Music<input id='music' type='checkbox'>
SFX<input id='sfx' type='checkbox'>
<span class="right">
<span id="restart" style="cursor : pointer" title="Shortcut: R key"><u>R</u>estart level</span>
<span id="pause" style="cursor:pointer" title="Shortcut: Spacebar">Pause</span>
</span>
</div>
<div id='credits' style='position:absolute; display : none; color:white; padding : 10px;'>
<center>
Thanks to Gordon Simpson for allowing me and helping me make a canvas version of his flash game (which can be found <a href='http://irRegularGames.com/cirplosion/'>here.</a>)
<br>Spoiler: His game is also called Cirplosion.
<p>
Music : Ground Control by Rimela
<br>
SFX : <a href='http://flashkit.com'>FlashKit.com</a>
</p>
<p>
Game developed by <a href='http://twitter.com/AmaanC'>Amaan Cheval.</a>
</p>
</center>
</div>
<script src='game.js'></script>
<script>
var Cirplosion = new Game();
Cirplosion.init('canvas');
</script>
</body>
</html>