-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathindex.html
More file actions
338 lines (319 loc) · 17.1 KB
/
Copy pathindex.html
File metadata and controls
338 lines (319 loc) · 17.1 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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
<!DOCTYPE html>
<html lang="en" manifest="cache.appcache">
<head>
<meta charset="UTF-8">
<meta name="author" content="import-this">
<meta name="application-name" content="SUPERCOLD">
<meta name="description" content="A simple 2D browser game
with the clever mechanics of SUPERHOT - #SUPERCOLD">
<meta name="keywords" content="SUPERCOLD, SUPERHOT, game, 2D,
HTML5, Phaser, import-this, github, github.io, open source">
<meta name="robots" content="index, follow">
<!-- Mobile devices magic. -->
<meta name="viewport" content="width=device-width, height=device-height, minimal-ui,
initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<!-- Open Graph for Facebook. -->
<meta property="og:url" content="https://import-this.github.io/supercold/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="SUPERCOLD" />
<meta property="og:site_name" content="SUPERCOLD" />
<meta property="og:image" content="https://import-this.github.io/supercold/img/wallpaper.png" />
<meta property="og:description" content="A simple 2D browser game
with the clever mechanics of SUPERHOT - #SUPERCOLD" />
<!-- Google Search Console verification method. -->
<meta name="google-site-verification" content="l3FLvijRzmzAxnDb7k-KtuYtiKbbELUQLsvJUs1YOs0" />
<title>SUPERCOLD</title>
<link rel="icon" href="/favicon.png" type="image/png" sizes="32x32">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="css/supercold.css">
<!-- ArrayBuffer and DataView support for IE9, required by P2 Physics. -->
<script type="text/javascript" src="js/dataview-polyfill.js"></script>
<script type="text/javascript" src="js/phaser-supercold.min.js"></script>
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-84136108-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<!-- Facebook JavaScript SDK -->
<div id="fb-root"></div>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div id="supercold-canvas">
<!-- Phaser will insert the canvas here. -->
</div>
<div id="menu">
<div id="more">
<a href="https://import-this.github.io/">More games</a>
</div>
<div id="center" class="no-select no-touch-action">
<div id="panes">
<div id="main-pane" class="pane">
<h2 id="supercold">SUPER<span>COLD</span></h2>
<div id="description">
A 2D game with the clever mechanics of
<strong>
<a id="superhot" href="http://superhotgame.com/">SUPER<span>HOT</span></a>
</strong>
</div>
<div>
Try to unlock all mutators and guns.<br />
You will need them to advance further.<br />
Opponents get tougher as you progress.
</div>
<div id="instructions">
<strong class="superhotkey">WASD</strong> to move.
<strong class="superhotkey">Left Click</strong> anywhere to fire.<br />
<strong class="superhotkey">Left Click + Shift</strong> on a bot to hotswitch.<br />
<strong>ESC</strong> to quit.
<strong>T</strong> to restart instantly.
</div>
<div>
Select level (1-<span id="maxlevel"></span>):
<input id="level" type="text" name="level" size="1" maxlength="3" required>
</div>
<div>
<button id="start" name="start" type="button">Start</button>
</div>
</div>
<div id="mutator-pane" class="pane">
<h3>Mutators</h3>
<div id="mutator-hint">
(Reach level <strong id="mutator-hint-level"></strong> to unlock more)
</div>
<div id="mutators">
<div>
<input id="freelook" type="checkbox">
<label for="freelook">
<span></span>freelook - Looking around doesn't waste time.
</label>
</div>
<div>
<input id="fasttime" type="checkbox">
<label for="fasttime">
<span></span>fasttime - Time flows faster.
</label>
</div>
<div>
<input id="fastgun" type="checkbox" disabled>
<label for="fastgun" class="disabled50">
<span></span>fastgun - You can shoot faster.
</label>
</div>
<div>
<input id="lmtdbull" type="checkbox" disabled>
<label for="lmtdbull" class="disabled40">
<span></span>lmtdbull - You have limited bullets.
</label>
</div>
<div>
<input id="bighead" type="checkbox" disabled>
<label for="bighead" class="disabled20">
<span></span>bighead - Bigger bots.
</label>
</div>
<div>
<input id="chibi" type="checkbox" disabled>
<label for="chibi" class="disabled30">
<span></span>chibi - Smaller bots.
</label>
</div>
<div style="display:none">
<input id="doge" type="checkbox" disabled>
<label for="doge" class="disabled60">
<span></span>doge - MEMES! VERY SUPER! SUCH HOT! WOW!
</label>
</div>
<div>
<input id="dodge" type="checkbox" disabled>
<label for="dodge" class="disabled70">
<span></span>dodge - Press <strong>SHIFT</strong> while moving to dodge.
</label>
</div>
<div>
<input id="superhotswitch" type="checkbox" disabled>
<label for="superhotswitch" class="disabled80">
<span></span>superhotswitch - Hotswitch recharges faster.
</label>
</div>
<div>
<input id="secondchance" type="checkbox" disabled>
<label for="secondchance" class="disabled90">
<span></span>secondchance - You can survive one shot.
</label>
</div>
<div>
<input id="freezetime" type="checkbox" disabled>
<label for="freezetime" class="locked100">
<span></span>freezetime - Time stands perfectly still.
</label>
</div>
<div>
<input id="godmode" type="checkbox" disabled>
<label for="godmode" class="locked128">
<span></span>godmode - <strong>You are invincible!</strong>
</label>
</div>
</div>
<h3>Guns</h3>
<div id="gun-hint">
(Reach level <strong id="gun-hint-level"></strong> to unlock more)
</div>
<div id="guns">
<div>
<input id="pistol" type="radio" name="gun" value="pistol" checked>
<label for="pistol">
<span></span>Pistol
</label>
</div>
<div>
<input id="burst" type="radio" name="gun" value="burst" disabled>
<label for="burst" class="disabled10">
<span></span>Burst
</label>
</div>
<div>
<input id="blunderbuss" type="radio" name="gun" value="blunderbuss" disabled>
<label for="blunderbuss" class="disabled20">
<span></span>Blunderbuss
</label>
</div>
<div>
<input id="shotgun" type="radio" name="gun" value="shotgun" disabled>
<label for="shotgun" class="disabled30">
<span></span>Shotgun
</label>
</div>
<br/>
<div>
<input id="burst3" type="radio" name="gun" value="burst3" disabled>
<label for="burst3" class="disabled40">
<span></span>Triple Burst
</label>
</div>
<div>
<input id="dbshotgun" type="radio" name="gun" value="dbshotgun" disabled>
<label for="dbshotgun" class="disabled50">
<span></span>Double-Barrel Shotgun
</label>
</div>
<div>
<input id="rifle" type="radio" name="gun" value="rifle" disabled>
<label for="rifle" class="disabled75">
<span></span>Rifle
</label>
</div>
</div>
</div>
</div>
</div>
<div id="top" class="social">
<!-- Facebook Like and Share Buttons -->
<div class="fb-like" data-href="https://www.facebook.com/supercoldgame/" data-layout="button" data-action="like" data-size="small" data-show-faces="false" data-share="false"></div>
<div class="fb-share-button" data-href="https://www.facebook.com/supercoldgame/" data-layout="button" data-size="small" data-mobile-iframe="true"><a class="fb-xfbml-parse-ignore" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.facebook.com%2Fsupercoldgame%2F&src=sdkpreparse">Share</a></div>
<!-- Twitter Buttons -->
<a href="https://twitter.com/share" class="twitter-share-button" data-text="SUPERCOLD! The 2D web game where time moves when you move!" data-url="https://git.io/supercold" data-via="importthat" data-hashtags="SUPERCOLD" data-show-count="false">Tweet</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
<a href="https://twitter.com/importthat" class="twitter-follow-button" data-show-screen-name="false" data-show-count="false">Follow @importthat</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
<!-- GitHub Star Button (https://ghbtns.com/ with modifications) -->
<iframe src="https://ghbtns.com/github-btn.html?user=import-this&repo=supercold&type=star" scrolling="0" width="50" height="20"></iframe>
</div>
<div id="bottom">
<a href="about.html" title="About the game">About</a> |
<a href="terms.html" title="About usage rules">Terms of Use</a> |
<a href="privacy.html" title="About collected info">Privacy Policy</a>
</div>
</div>
<div id="tips" class="no-select no-touch-action">
<div class="tip">
Don't rush it!
</div>
<div class="tip">
You can destroy enemy bullets with your bullets!
</div>
<div class="tip">
Bots can kill each other if you make them get in each others way.
</div>
<div class="tip">
Sometimes bots try to dodge your bullets.
</div>
<div class="tip">
Time moves slightly faster when you look around.
</div>
<div class="tip">
Be careful not to trap yourself in the corners.
</div>
<div class="tip">
Try to stay in the center.
</div>
<div class="tip">
Try out some of the several mutators.
</div>
<div class="tip">
Reach level <strong>128</strong> for a really fun mutator!
</div>
<div class="tip">
If you are playing with limited bullets and you run out,<br/>
your only option is to make the bots kill each other.
</div>
<div class="tip">
Hotswitching is powerful. Use it intelligently.
</div>
<div class="tip">
You can also fire by pressing the spacebar.
</div>
<div class="tip">
You can also hotswitch by right clicking on a bot,<br/>
but it may not work correctly in your browser.<br/>
Try at your own risk.
</div>
</div>
<div id="hint">
press 'T' to restart instantly
</div>
<script type="text/javascript" src="js/supercold.js"></script>
<script type="text/javascript">
/*globals Supercold */
(function(document) {
"use strict";
// As of February 2017, Chrome, Opera, FF and IE (at least on Windows)
// trigger the default action for the contextmenu event, despite Phaser.
// Chrome also demonstrates the following behaviour:
// https://github.com/photonstorm/phaser/issues/2286
document.getElementById('supercold-canvas')
.addEventListener('contextmenu', function(event) {
event.preventDefault();
}, false);
Array.prototype.forEach.call(document.querySelectorAll('#mutators label'), function(input) {
// Prevent text selection on successive clicks.
input.addEventListener('mousedown', function onMousedown(event) {
event.preventDefault(); // but let the event propagate!
}, false);
});
// Let the game begin!
Supercold.play('supercold-canvas');
}(document));
</script>
<!-- Adblock detection -->
<script type="text/javascript" src="js/ads.js"></script>
<script type="text/javascript">
(function() {
if (!window.noAdblock) {
// Adblock detected!
} else {
}
}());
</script>
</body>
</html>