-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
188 lines (153 loc) · 4.4 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Easter Egg Bunny Hunt!</title>
<style>
body{
margin:0;
}
canvas{
width: 100%;
height: 100%;
}
#header{
position: fixed;
margin-top: 2.5%;
margin-left: 30%;
color: lavender;
font-size: 35pt;
font-weight: bold;
text-shadow: -2px 0 black, 0 0.5px black, 0.5px 0 black, 0 -0.5px black;
}
#credits{
position: fixed;
margin-top: 8.5%;
margin-left: 30%;
font-size: 14pt;
border-radius: 10px;
background-color: lavenderblush;
width: 18em;
height: 2.5em;
text-align: center;
}
#instructions{
position: fixed;
margin-top: 13.05%;
margin-left: 30%;
font-size: 16pt;
border-radius: 10px;
background-color: lavenderblush;
width: 19em;
height: 2.5em;
text-align: center;
}
#score{
position: fixed;
margin-top: 10%;
margin-left: 15px;
color: lavender;
font-size: 30pt;
font-weight: bold;
text-shadow: -2px 0 black, 0 1px black, 2px 0 black, 0 -1.5px black;
display: none;
}
#finalscore{
position:fixed;
text-align: center;
margin-top: 20%;
margin-left: 30%;
color: lavender;
font-size: 45pt;
font-weight: bold;
text-shadow: -2px 0 black, 0 1px black, 0.5px 0 black, 0 -0.5px black;
border-radius: 10px;
background-color: lavenderblush;
border: 2px solid;
width: 9em;
height: 1.3em;
display: none;
}
#start{
position:fixed;
margin-top: 270px;
margin-left: 15px;
border-radius: 10px;
background-color: lavender;
font-size: 30px;
width: 4em;
height: 2em;
}
#stop{
position:fixed;
margin-top: 345px;
margin-left: 15px;
border-radius: 10px;
background-color: lavender;
font-size: 30px;
width: 4em;
height: 2em;
}
#day{
position:fixed;
margin-top: 230px;
margin-left: 10px;
border-radius: 10px;
background-color: lavender;
font-size: 16px;
width: 4em;
height: 2em;
}
#night{
position:fixed;
margin-top: 230px;
margin-left: 80px;
border-radius: 10px;
background-color: lavender;
font-size: 16px;
width: 4em;
height: 2em;
}
#home{
position:fixed;
margin-top: 2%;
margin-left: 15px;
border-radius: 10px;
background-color: lavender;
font-size: 30px;
width: 4em;
height: 2em;
}
</style>
</head>
<body id="body">
<div id="header">
Easter Egg Bunny Hunt!
</div>
<div id="score">
score: <span id="scoren"></span>
</div>
<div id="finalscore">
your final score is <span id="scorefinal"></span>
</div>
<div id="instructions">
Collect the eggs without falling into the wells.<br>
Press the up arrow key [↑] to jump.
</div>
<div id="credits">
Interactive Graphics Course's Final Project by Virginia Sanfilippo.
</div>
<button id="start">Start</button>
<button id="stop">Stop</button>
<button id="home">Home</button>
<button id="night">night</button>
<button id="day">day</button>
<script src="three.js"></script>
<script src="tween.umd.js"></script>
<script src="project.js"></script>
<script>
init();
animate();
</script>
</body>
</html>