-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
executable file
·176 lines (167 loc) · 3.79 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
<!DOCTYPE html>
<html>
<head>
<title>EKG Runner</title>
<style type="text/css">
html,body {
background-color: #000;
color: #3cf3af;
font-family: helvetica, arial, sans-serif;
margin: 0;
padding: 0;
font-size: 12pt;
}
#frame{
text-align: center;
margin-top: 100px;
}
#canvas{
position: absolute;
width: 640px;
margin-left: -320px;
left: 50%;
z-index: 0;
top: 150px;
}
.progress{
color: #196D4E;
display: none;
width: 640px;
margin-left: -320px;
left: 50%;
position: absolute;
border: 3px solid #3cf3af;
height: 43px;
text-align: center;
font-size: 24px;
line-height: 43px;
}
.progress img{
position: absolute;
top: 0;
left: 0%;
display: block;
z-index: 2;
}
.status{
display: block;
background-color:#3cf3af;
height: 43px;
top: 0;
width: 0%;
position: absolute;
z-index: 3;
}
.display{
z-index: 5;
position: relative;
}
.maxScore{
display: block;
background-color: #3cf3af;
opacity: .3;
height: 43px;
top: 0;
width: 0%;
position: absolute;
z-index: 2;
}
.win, .death, .intro{
width: 960px;
margin-left: -480px;
left: 50%;
font-size: 50px;
text-align: center;
position: absolute;
top: 150px;
height: 640px;
display: none;
background-color: rgba(0,0,0,.5);
padding-top: 50px;
z-index: 1;
}
.intro{
background-color: rgba(0,0,0,.9);
}
.intro h1{
font-size: 50px;
}
.intro small{
font-size: 25px;
font-style: italic;
}
small{
font-size: 25px;
font-style: italic;
}
.checkpoint1, .checkpoint2{
background-color: #3cf3af;
position: absolute;
height: 100%;
width: 5px;
}
.credits{
position: absolute;
bottom: 10px;
text-align: center;
width: 100%;
}
a{
color: white;
}
a:visited{
color: white;
}
</style>
<script src="libraries/lowLag.js"></script>
<script src="libraries/sm2/js/soundmanager2.js"></script>
<script src="libraries/jquery.js"></script>
<!--<script type="text/javascript" src="lib/impact/impact.js"></script>-->
<!--<script type="text/javascript" src="lib/drop.js"></script>-->
<script type="text/javascript" src="game.min.js"></script>
</head>
<body>
<div id="frame">
<div class="intro">
<h1>EKG Runner<br><small>Run for your life.... (groan)</small></h1>
<small>Left/Right to move, Up/Space to jump</small>
<br>
<small>Enter to start</small>
</div>
<div class="win">
YOU WIN!
<br>
<br>
<small>
Total Time Played: <span class="totalTime"></span>
<br>
Retries: <span class="retries"></span>
</small>
</div>
<div class="death">
You Died.
<br>
<small>press enter to respawn at your last checkpoint</small>
<br>
<br>
<small>
Total Time Played: <span class="totalTime"></span>
<br>
You have retried <span class="retries"></span> times.
</small>
</div>
<div class="progress">
<div class="checkpoint1"></div>
<div class="checkpoint2"></div>
<div class="display"></div>
<div class="status"></div>
<div class="maxScore"></div>
<img src="media/progress.png">
</div>
<canvas id="canvas"></canvas>
</div>
<div class="credits">
Programmer: <a href="http://ryan-kahn.com" target="_blank">Ryan Kahn</a>, Sound: <a href="http://kevinnotar.com" target="_blank">Kevin Notar</a>, Graphics: <a href="http://creathcarter.com/" target="_blank">Creath Carter</a>
</div>
</body>
</html>