-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
98 lines (86 loc) · 3 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
<!DOCTYPE html>
<html>
<head>
<title>Exploding Columns</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="shortcut icon" href="http://img.brothersoft.com/icon/softimage/p/photo_explosion_deluxe-61138.jpeg" type="image/jpeg">
<link rel="stylesheet" href="css/app.css">
<script src="assets/fabric.min.js"></script>
<script src="assets/js.cookie.js"></script>
<script src="js/pair.js"></script>
<script src="js/tile.js"></script>
<script src="js/bindKeys.js"></script>
<script src="js/dropQueue.js"></script>
<script src="js/search.js"></script>
<script src="js/explosion.js"></script>
<script src="js/clock.js"></script>
<script src="js/game.js"></script>
<script src="js/view.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-3">
<h2 class="header">Exploding Columns</h2>
<h3>Controls</h3>
<ul>
<li>a: move left</li>
<li>d: move right</li>
<li>w: rotate</li>
<li>s: drop</li>
<li>p: pause</li>
</ul>
<h3>Instructions</h3>
<ul>
<li>Connect four tiles of the same color to make them explode!</li>
<li>Watch out for avalanches!</li>
<li>Your tiles will begin to fall faster when the clock hits zero.</li>
<li>You can slow your tiles back down by getting a combo.</li>
<li>What is a combo? When an explosion causes another explosion.</li>
<li>Longer combos means more points.</li>
<li>The game lasts until the middle column fills up.</li>
<li>Survive for as long as possible!</li>
</ul>
</div>
<div class="col-md-9">
<div id="game-container">
<div class="scoreboard">
<h3>Score</h3>
<span id="score">0</span>
</div>
<div class="scoreboard countdown">
<h3>Countdown</h3>
<span id="clock">0:00</span>
</div>
<div id="combo-wrap" class="not-visible">
<div class="combo-banner">
<span class="combo-letter">C</span>
<span class="combo-letter">o</span>
<span class="combo-letter">m</span>
<span class="combo-letter">b</span>
<span class="combo-letter">o</span>
</div>
<h1 id="combo">0</h1>
</div>
<canvas id="mainCanvas"></canvas>
</div>
</div>
</div>
</div>
<script>
$(function () {
new Columns.View({
canvasId: "mainCanvas",
canvasWidth: 460,
canvasHeight: 500,
scoreSelector: "#score",
clockSelector: "#clock",
comboSelector: "#combo",
comboWrapSelector: "#combo-wrap"
});
});
</script>
</body>
</html>