-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
148 lines (143 loc) · 7.28 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Smelly Cat</title>
<link rel="shortcut icon" href="#">
<style>
@font-face {
font-family: 'Gillattoz';
src: URL('src/three/examples/fonts/Gillattoz.ttf') format('truetype'),
URL('src/three/examples/fonts/Gillattoz.woff') format('woff'),
URL('src/three/examples/fonts/Gillattoz.woff2') format('woff2');
}
@font-face {
font-family: 'Letter Gothic';
src: URL('src/three/examples/fonts/lettergothic.otf') format('truetype');
}
body { margin: 0; overflow:hidden; height:100%;}
canvas { width: 100%; height: 100% }
.guitext {
float:left;
font-size: 200%;
color:white;
z-index: 100;
display:none;
font-family: 'Gillattoz';
}
.info {
padding-left: 10px;
float:left;
font-size: 150%;
color:white;
z-index: 100;
display:none;
font-family: 'Letter Gothic';
}
#catpaw {
text-align:center;
border: 1px solid #ffffff;
font-size: 120%;
color:white;
z-index: 100;
font-family: 'Letter Gothic';
text-decoration:none;
}
#catpaw:hover {
background-color: #e7ff5a;
color: white;
}
#loadingtext {
position:absolute;
top:70%;
text-align:center;
width: 240px;
font-size: 400%;
color:white;
z-index: 100;
font-family: 'Gillattoz';
text-decoration:none;
}
#playbutton {
position:absolute;
top:70%;
text-align:center;
width: 240px;
font-size: 400%;
color:white;
z-index: 100;
display:none;
font-family: 'Gillattoz';
text-decoration:none;
}
#playbutton:hover {
background-color: #e7ff5a;
color: white;
}
#loading {
position: absolute;
width: 100%;
height: 100%;
z-index: 100;
}
#loading2 {
position: absolute;
width: 100%;
height: 100%;
z-index: 100;
}
#hitsound {
display:none;
}
#breaksound {
display:none;
}
.inst {
text-align:center;
font-family: 'Letter Gothic';
opacity:0.5;
z-index: 100;
color:white;
font-size:100%;
position:relative;
}
</style>
</head>
<body>
<img id="loading" src="SmellyCatOpening.gif" style="display:block;"/>
<img id="loading2" src="SmellyCat.gif" style="display:block;"/>
<div id="container">
</div>
<div style="position:absolute;top:10%;left:10%;">
<div><div class="guitext" id="scoretext">s c o r e :</div><div class="info" id="info"></div></div>
<div><div class="guitext" id="timetext">t i m e l e f t :</div><div class="info" id="timeinfo"></div></div>
</div>
<div class="info" id="painting" style="position:absolute;opacity:0.5;font-size:100%"></div>
<audio id="hitsound" controls> <source src="src/three/examples/sounds/zapsplat_impact_wood_post_drop_concrete_ground_003_14044.mp3"></audio>
<audio id="breaksound" controls> <source src="src/three/examples/sounds/impact_tile_debris_breaking.mp3"></audio>
<audio id="music" controls> <source src="src/three/examples/sounds/sneaky.mp3"></audio>
<div style="position:absolute;top:30%; top: 80%; left: 50%; transform: translate(-50%, -50%);">
<div style="align-items:center;display:flex;justify-content: center;flex-direction:column;">
<div id="instructions">
<div class="inst">Try to drop as much stuff possible before time runs out!</div><br>
<div class="inst">Use mouse to move the camera</div><br>
<div class="inst">Settings ESC</div><br>
<div class="inst">Move W, A, S, D</div> <br>
<div class="inst">Press SHIFT to move fast</div> <br>
<div class="inst">Press ESC to exit the instructions</div>
</div>
</div>
</div>
<div style="align-items:center;display:flex;justify-content: center;">
<a href=# id="playbutton">p l a y</a>
</div>
<div style="align-items:center;display:flex;justify-content: center;">
<a href=# id="loadingtext">l o a d i n g</a>
</div>
<div style="position:absolute;right:5%;bottom:5%;">
<a href=# id="catpaw"> HOW TO PLAY? </a>
</div>
<script src="./src/three/examples/js/libs/ammo.js"></script>
<script type="module" src="smellycat.js"></script>
</body>
</html>