-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
152 lines (136 loc) · 3.43 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
<html>
<head>
<title>SpaceX</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="img/favicon.png" type="image/png">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="js/images.js"></script>
<script type="text/javascript" src="js/rocket.js"></script>
<script type="text/javascript" src="js/smoke.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<style type="text/css">
body {
background-color: #000;
margin: 0px;
padding: 0px;
text-align: center;
font: 70%/1.5 Verdana, Tahoma, Arial, Helvetica, sans-serif;
color: #ddd;
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
#wrapper {
position: relative;
margin: auto;
width: 850px;
height: 478px;
}
canvas {
background: #000;
background: url('img/space.png');
/*background: url('img/bg.png');*/
outline: 0;
border: 0px;
}
a {
color: #55DD55;
text-decoration: none;
}
a:hover {
color: #11AA11;
}
a img {
border: none;
}
.controls_button {
position: absolute;
cursor: pointer;
display: none;
background-image: url('img/controls/frame.png');
background-repeat: no-repeat;
width: 64px;
height: 64px;
margin: 0;
padding: 0;
}
.controls_button:hover {
background-image: url('img/controls/frame_highlight.png');
}
#controls_up {
left: 40px;
top: 40px;
}
#controls_left {
right: 130px;
top: 40px;
}
#controls_right {
right: 40px;
top: 40px;
}
#engine {
margin: 6%;
width: 90%;
height: 90%;
background: rgba(255, 255, 255, 0);
}
#engine_text {
width: 100%;
height: 100%;
position: absolute;
background-image: url('img/controls/engine.png');
}
#tryagain {
left: 420px;
top: 160px;
}
#tryagain_text {
width: 100%;
height: 100%;
background-image: url('img/controls/tryagain.png');
}
.arrow {
width: 100%;
height: 100%;
}
#arrow_left {
background-image: url('img/controls/left.png');
}
#arrow_left:hover {
background-image: url('img/controls/left_highlight.png');
}
#arrow_right {
background-image: url('img/controls/right.png');
}
#arrow_right:hover {
background-image: url('img/controls/right_highlight.png');
}
</style>
</head>
<body onload="play()">
<div id="wrapper">
<canvas id="c" width="850" height="478" ></canvas>
<div id="controls_up" class="hud controls_button">
<div id="engine_text"></div>
<div id="engine"></div>
</div>
<div id="controls_left" class="hud controls_button">
<div id="arrow_left" class="arrow"></div>
</div>
<div id="controls_right" class="hud controls_button">
<div id="arrow_right" class="arrow"></div>
</div>
<div id="tryagain" class="controls_button">
<div id="tryagain_text"></div>
</div>
</div>
<p><b>How to play:</b> ????</p>
<p><b>Controls:</b> Arrows</p>
<p>Inspired by <a target="_blank" href="https://www.youtube.com/watch?v=HXdjxPY2j_0">Grasshopper vs. Cows video</a></p>
<div>TODO Credits</div>
<p><br/><b>Opi-games</b> 2013<br/>for more games visit: <a href="http://jan.danihelka.net">jan.danihelka.net</a></p>
</body>
</html>