-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
199 lines (172 loc) · 4.73 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
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
<!DOCTYPE html>
<html>
<head>
<title>Play-Z a zombie-horde survival game</title>
<link href='//fonts.googleapis.com/css?family=Bangers' rel='stylesheet' type='text/css'>
<meta property="og:image" content="//dl.dropboxusercontent.com/u/6291954/liquid-zombie2.gif"/>
<meta property="og:site_name" content="Play-Z a zombie-horde survival game by Jared Barboza"/>
<meta property="og:type" content="article"/>
<meta property="og:title" content="Play-Z"/>
<meta property="og:url" content="http://codeimpossible.com/play-z"/>
<meta property="og:description" content="A game I made for #1GAM, survive wave after wave of zombie attackers!"/>
<meta itemprop="name" content="Play-Z"/>
<meta itemprop="url" content="http://codeimpossible.com/play-z"/>
<meta itemprop="description" content="A game I made for #1GAM, survive wave after wave of zombie attackers!"/>
<meta itemprop="thumbnailUrl" content="//dl.dropboxusercontent.com/u/6291954/liquid-zombie2.gif"/>
<link rel="image_src" href="//dl.dropboxusercontent.com/u/6291954/liquid-zombie2.gif" />
<meta itemprop="image" content="//dl.dropboxusercontent.com/u/6291954/liquid-zombie2.gif"/>
<meta name="author" content="Jared Barboza">
<meta name="description" content="A game I made for #1GAM, survive wave after wave of zombie attackers!" />
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
html,body {
background-color: #333;
color: #fff;
font-family: helvetica, arial, sans-serif;
margin: 0;
padding: 0;
font-size: 12pt;
}
canvas {
box-shadow: 11px 8px 17px #222;
}
h2 {
font-family: 'Bangers', cursive;
font-size: 64px;
margin-bottom: 0px;
}
.content {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
width: 640px;
}
.legend div .icon {
background-size: cover;
}
.group {
margin-bottom: 20px;
}
.group div {
float: left;
}
.group:after {
content: "";
display: table;
clear: both;
}
.bigboy .icon {
background: transparent url(media/big-boy.png) 0 0 no-repeat;
height: 96px;
width: 96px;
}
.bigboy .description {
padding-top: 48px;
}
.zombie .icon {
background: transparent url(media/zombie.png) 0 0 no-repeat;
height: 64px;
width: 64px;
margin-right: 32px;
}
.zombie .description {
padding-top: 16px;
}
.bat .icon {
background: transparent url(media/bat.png) 0 0 no-repeat;
height: 48px;
width: 48px;
margin-right: 48px;
}
.bat .description {
padding-top: 8px;
}
header, .instructions {
text-align: center;
}
.key {
display: inline-block;
color: #444;
font: bold 9pt arial;
text-decoration: none;
text-align: center;
width: 44px;
height: 41px;
margin: 5px;
background: #eff0f2;
-moz-border-radius: 4px;
border-radius: 4px;
border-top: 1px solid #f5f5f5;
-webkit-box-shadow:
inset 0 0 25px #e8e8e8,
0 1px 0 #c3c3c3,
0 2px 0 #c9c9c9,
0 2px 3px #333;
-moz-box-shadow:
inset 0 0 25px #e8e8e8,
0 1px 0 #c3c3c3,
0 2px 0 #c9c9c9,
0 2px 3px #333;
box-shadow:
inset 0 0 25px #e8e8e8,
0 1px 0 #c3c3c3,
0 2px 0 #c9c9c9,
0 2px 3px #333;
text-shadow: 0px 1px 0px #f5f5f5;
}
.key code {
display: block;
margin: 13px 0 0;
text-transform: uppercase;
font-size: 14px;
}
.key.space {
width: 100px;
}
</style>
<script type="text/javascript" src="lib/impact/impact.js"></script>
<script type="text/javascript" src="lib/game/main.js"></script>
</head>
<body>
<div class="content">
<header>
<h2>
Play-Z
</h2>
<h4>
Survive the zombie horde.
</h4>
</header>
<canvas id="canvas"></canvas>
<div class="instructions">
<p>
<span class="key"><code>←</code></span><span class="key"><code>↑</code></span><span class="key"><code>↓</code></span><span class="key"><code>→</code></span> move you, <span class="key"><code>X</code></span> changes weapons, <span class="key"><code>C</code></span> shoots, <span class="key space"><code>SPACE</code></span> dodges enemies.
</p>
</div>
<div class="legend group">
<div class="bigboy group">
<div class="icon"></div>
<div class="description">
<em><strong>Big Boy</strong></em>: big, slow(er). Bullet sponge. Be careful.
</div>
</div>
<div class="zombie group">
<div class="icon"></div>
<div class="description">
<em><strong>Zombie</strong></em>: Mobile but dumb. Mostly cannon fodder but dangerous in groups.
</div>
</div>
<div class="bat group">
<div class="icon"></div>
<div class="description">
<em><strong>Bat</strong></em>: Fast, flying rats with wings. Eww.
</div>
</div>
</div>
</div>
<script src="http://localhost:35729/livereload.js"></script>
</body>
</html>