-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
176 lines (171 loc) · 5.07 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>
<script src="jquery.js"></script>
<script src="transit.js"></script>
<script src="color.js"></script>
<script src="./gbrepo/script.js"></script>
<title>Get Blocks</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="./gbrepo/style.css" type="text/css"/>
<style>
.menu{
position: absolute;
top: 0;
left: 0;
width: 600px;
border: 2px solid #000;
background: #000;
box-shadow: 0px 0px 20px #000;
}
.menu .headerImage{
background: #e9e3db;
height: 200px;
border-bottom: 5px solid #000;
}
.menu .infoArea{
text-align: center;
padding: 10px 50px 10px 50px;
background: #e9e3db;
border-bottom: 5px solid #000;
}
.menu .disclaimer{
text-align: center;
font-size: 32px;
/*padding: 10px 50px 10px 50px;*/
background: #000;
color: #FF0000;
border-bottom: 5px solid #000;
}
.menu .buttons ul{
margin: 0 auto;
padding: 0;
list-style: none;
width: 100%;
}
.menu .buttons li:first-child{
border-top: none;
}
.menu .buttons li{
border-top: 2px #FFF solid;
cursor: pointer;
text-align: center;
font-size: 36px;
padding: 20px;
background: rgba(170,170,170,1);
}
.menu .buttons li:hover{
background: rgba(100,100,100,1);
}
.menu .buttons li:active{
background: rgba(100,100,100,1);
}
</style>
</head>
<body>
<div id="debug" class="noclick"></div>
<div id="mainmenu" class="menu">
<div class="headerImage"><img src="./gbrepo/img/logo.png" width="600px" height="200px"/></div>
<div class="disclaimer">
DO NOT PLAY IF EPILEPTIC
</div>
<div class="buttons">
<ul>
<li onclick="startGame();">Start</li>
<li onclick="changeMenu('help')">Help</li>
<li onclick="changeMenu('about')">About</li>
</ul>
</div>
</div>
<div id="helpmenu" class="menu nodisplay">
<div class="headerImage"><img src="./gbrepo/img/logo.png" width="600px" height="200px"/></div>
<div class="infoArea">
<h3>Help</h3>
<p>Upon starting, you will see two colors of blocks.</p>
<p>Red is your goal.</p>
<p>Blue are your obstacles.</p>
<p>Goals become obstacles after pickup, don't wait too long!</p>
<p>The speed of your cursor will create marks if you move too fast, damage is relative to your speed!</p>
<p>Collect as many blocks as you can!</p>
</div>
<div class="buttons">
<ul>
<li onclick="changeMenu('main')">Back</li>
</ul>
</div>
</div>
<div id="aboutmenu" class="menu nodisplay">
<div class="headerImage"><img src="./gbrepo/img/logo.png" width="600px" height="200px"/></div>
<div class="infoArea">
<h3>About Get Blocks</h3>
<p>Created by: Christopher Sidell</p>
<h3>Credits</h3>
<small>Ocean Blue Loop with Horn - Menu-Music-Man (Newgrounds) |
Hanger Bay - WarmanSteve (Newgrounds) |
Wrong Wire - Retimer (Newgrounds) |
Dubstep Loop 1 - headphonesvocal (freesound) |
archi_sonar_05 - Argitoth (freesound) |
ping 2 - cameronmusic (freesound) |
coin object - fins (freesound) |
energy - fins (freesound) |
Computer boop - fordps3 (freesound) |
8-bit pickup - timgormly (freesound) |
Clank Car Crash Collision - qubodup (freesound) |
carstartskidcrash - musicmasta1 (freesound) |
chrysler LHS tiresqueal - audible-edge (freesound)
</small>
</div>
<div class="buttons">
<ul>
<li onclick="changeMenu('main')">Back</li>
</ul>
</div>
</div>
<div id="HUD" class="noclick nodisplay">
<div id="infoBar">
<div id="health"><span class="value">0</span> HP</div>
<div id="pickups"><span class="value">0</span> Pickups</div>
<div id="crashes"><span class="value">0</span> Crashes</div>
<div id="skids"><span class="value">0</span> skids</div>
</div>
</div>
<canvas id="canvas" class="nodisplay"></canvas>
</body>
<script>
var menuMusic,cycle = {speed:2000};
function startGame(){
menuMusic.stop();
$(".menu").addClass("nodisplay");
clearInterval(cycle.inte);
init();
}
function changeMenu(menu){
if($("#"+menu+"menu").length <=0)
return;
$(".menu").addClass("nodisplay");
$("#"+menu+"menu").removeClass("nodisplay");
}
function cycleMenu(){
color = "rgb("+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+")";
$(".menu .headerImage").animate({
backgroundColor: color,
},cycle.speed);
}
function placeMenus(){
$(".menu").each(function(index,elm){
$(elm).css("left",$(window).width()/2-$(elm).width()/2);
$(elm).css("top",$(window).height()/2-$(elm).height()/2);
});
}
$(window).resize(function(){
placeMenus();
});
$(document).ready(function(){
menuMusic = new sound("./gbrepo/sound/menuMusic.ogg",true,true);
menuMusic.play();
placeMenus();
cycleMenu();
cycle.inte = setInterval(cycleMenu,cycle.speed);
});
</script>
</html>