-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
183 lines (167 loc) · 4.45 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="description" content="Play Incredibird! Shoot the floating elementals with their corresponding button, collect points, and DO NOT DIE!" />
<meta property="og:image" content="img/incredibird.png"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes">
<title>Incredibird</title>
<style type="text/css">
html, body {
margin: 0;
padding: 0;
overflow:hidden;
width:100%;
height:100%;
background: #eee;
font-family: "helvetica neue", helvetica, arial, sans-serif;
line-height: 1.4;
font-size: 32px;
}
input {
-webkit-appearance: none;
-webkit-border-radius: 0;
}
canvas {
image-rendering: optimizeSpeed;
image-rendering: -moz-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: -o-crisp-edges;
image-rendering: crisp-edges;
-ms-interpolation-mode: nearest-neighbor;
display: block;
margin: auto;
width:100%;
height:93%;
}
#canvasContainer {
background : #8bac0f;
display:table-cell;
top: 0;
bottom: 0;
margin:auto;
}
#maxiCanvas {
display: none;
}
.buttons {
display: table-cell;
background: #9bbc0f;
width:15%;
vertical-align: middle;
}
.button {
width: 90%;
margin:auto;
height: 20%;
margin-top: 1vh;
margin-bottom:1vh;
border-radius: 3px;
}
#statsbar {
width: 100%;
height: 7%;
display:block;
margin:auto;
text-align: center;
}
#wrapper {
width: 228.5px;
height : 154px;
display: table;
margin:auto;
margin-top:10px;
box-shadow: 1px 1px 10px #ccc;
}
.disabled {
opacity: 0.6;
}
#veil {
background:rgba(0,255,0,0.5);
position:absolute;
display:table-cell;
}
#points {
text-align: center;
color: #0f380f;
}
button {
width: 30%;
height: 10%;
margin:auto;
font-size: inherit;
display: block;
margin-top:1em;
font-weight: bold;
}
#social{
width: 80%;
margin:auto;
font-weight: bold;
margin-top:1em;
}
a {
color: #befedc;
margin-left:1em;
margin-right:1em;
}
h1, #instructions {
margin: 4vh 0 4vh 0;
color: #befedc;
text-align: center;
background: #306230;
}
</style>
</head>
<body>
<img src="img/atlas2.png" id="imglol" style="display:none" />
<div id="wrapper">
<div id="veil">
<h1> INCREDIBIRD </h1>
<button id="startbutton" style="margin-top:2em">Play</button>
<button id="crispbutton" >Graphics: High</button>
<button id="mutebutton" >Sounds: On</button>
<div id="instructions">
Shoot the floating elementals with their corresponding button!<br />
Touch to control; <br />
W,S to move, H,J,K,L to shoot, SPACE to time-warp/start game.</div>
<div id="social"><a href="http://twitter.com/share?text=%23incredibird%20is%20...">#incredibird</a><a href="https://twitter.com/alex_on_the_web" style="float:right">@Alex</a></div>
</div>
<div class="buttons left-side">
<canvas class="button" id="87top"></canvas>
<canvas class="button" id="32slowmo"> </canvas>
<canvas class="button" id="83bottom"></canvas>
</div>
<div id="canvasContainer">
<div id="statsbar"><span id="points"></span></div>
<canvas id="miniCanvas" width="160" height="144" ></canvas>
</div>
<div class="buttons right-side">
<canvas class="button" id="72bfire"></canvas>
<canvas class="button" id="74bwater"></canvas>
<canvas class="button" id="75bearth"></canvas>
<canvas class="button" id="76bair"></canvas>
</div>
</div>
<script type="text/javascript" src="gif.js"></script>
<script type="text/javascript" src="jsfxr.js"></script>
<script src="palette.js" type="text/javascript" ></script>
<script type="text/javascript" src="canvasUtils.js"></script>
<script type="text/javascript" src="utils.js"></script>
<script src="code.js" type="text/javascript"></script>
<script type="text/javascript" src="sprites.js"></script>
<script type="text/javascript" src="entities.js"></script>
<script type="text/javascript" src="gameLoop.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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-53641010-5', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>