-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
258 lines (257 loc) · 11.2 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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!-- This is entirely written in CSS. Am I cRaZy??? -->
<!DOCTYPE html>
<html>
<head>
<title>Rooms</title>
<link rel="stylesheet" href="src/index.css">
</head>
<body>
<div id="firefox-stub" class="overlay">
This game can't run in Firefox because of <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1233978" target="_blank">a bug</a>. <br>
Use a different browser to play it!
</div>
<span id="caption">You are stuck in this room. Choose one door to escape</span>
<div id="current-room">
<input type="radio" id="current-room1" name="current-room">
<input type="radio" id="current-room2" name="current-room">
<input type="radio" id="current-room3" name="current-room">
<input type="radio" id="current-room4" name="current-room">
<input type="radio" id="current-room5" name="current-room">
<input type="radio" id="current-room6" name="current-room">
<input type="radio" id="current-room7" name="current-room">
<input type="radio" id="current-room8" name="current-room">
<input type="radio" id="current-room-exit" name="current-room">
<input type="radio" id="current-room-dead-end" name="current-room">
<input type="radio" id="current-room-win" name="current-room">
</div>
<div id="win-screen" class="overlay">
You escaped! Congratulations :D <br>
Check out <a href="https://github.com/GulgDev/Rooms">the source code</a>, this game is written in CSS
</div>
<div id="menu" class="overlay">
<span id="title">Rooms</span>
<div id="play" class="randomize">
Play
<label for="current-room1"></label>
<label for="current-room2"></label>
</div>
</div>
<div id="transition" class="overlay"></div>
<div id="scene">
<div id="room1" class="room box">
<div class="transform">
<div class="face left">
<div class="door randomize">
<label for="current-room3"></label>
<label for="current-room4"></label>
</div>
</div>
<div class="face right">
<div class="door randomize">
<label for="current-room3"></label>
<label for="current-room4"></label>
</div>
</div>
<div class="face top"></div>
<div class="face bottom">
Choose wisely
</div>
<div class="face front"></div>
<div class="face back">
<div class="door randomize">
<label for="current-room3"></label>
<label for="current-room4"></label>
</div>
</div>
</div>
</div>
<div id="room2" class="room box">
<div class="transform">
<div class="face left">
<div class="door randomize">
<label for="current-room3"></label>
<label for="current-room4"></label>
</div>
</div>
<div class="face right">
<div class="door randomize">
<label for="current-room3"></label>
<label for="current-room4"></label>
</div>
</div>
<div class="face top"></div>
<div class="face bottom">
Choose wisely
</div>
<div class="face front"></div>
<div class="face back"></div>
</div>
</div>
<div id="room3" class="room box">
<div class="transform">
<div class="face left">
<div class="door randomize">
<label for="current-room4"></label>
<label for="current-room5"></label>
<label for="current-room6"></label>
<label for="current-room-dead-end"></label>
<label for="current-room-exit"></label>
</div>
</div>
<div class="face right">
<div class="door randomize">
<label for="current-room4"></label>
<label for="current-room5"></label>
<label for="current-room6"></label>
<label for="current-room-dead-end"></label>
<label for="current-room-exit"></label>
</div>
</div>
<div class="face top"></div>
<div class="face bottom">
Another choice
</div>
<div class="face front"></div>
<div class="face back">
<div class="door randomize">
<label for="current-room4"></label>
<label for="current-room5"></label>
<label for="current-room6"></label>
<label for="current-room-dead-end"></label>
<label for="current-room-exit"></label>
</div>
</div>
</div>
</div>
<div id="room4" class="room box">
<div class="transform">
<div class="face left">
<div class="door randomize">
<label for="current-room3"></label>
<label for="current-room5"></label>
<label for="current-room6"></label>
<label for="current-room-dead-end"></label>
<label for="current-room-exit"></label>
</div>
</div>
<div class="face right">
<div class="door randomize">
<label for="current-room3"></label>
<label for="current-room5"></label>
<label for="current-room6"></label>
<label for="current-room-dead-end"></label>
<label for="current-room-exit"></label>
</div>
</div>
<div class="face top"></div>
<div class="face bottom">
Another choice
</div>
<div class="face front"></div>
<div class="face back"></div>
</div>
</div>
<div id="room5" class="room box">
<div class="transform">
<div class="face left"></div>
<div class="face right"></div>
<div class="face top"></div>
<div class="face bottom">
All or nothing
</div>
<div class="face front"></div>
<div class="face back">
<div class="door randomize">
<label for="current-room-dead-end"></label>
<label for="current-room-exit"></label>
</div>
</div>
</div>
</div>
<div id="room6" class="room box">
<div class="transform">
<div class="face left">
<div class="door">
<label for="current-room7"></label>
</div>
</div>
<div class="face right">
<div class="door">
<label for="current-room8"></label>
</div>
</div>
<div class="face top"></div>
<div class="face bottom">
Left is bad
Right is good
</div>
<div class="face front"></div>
<div class="face back"></div>
</div>
</div>
<div id="room7" class="room box">
<div class="transform">
<div class="face left"></div>
<div class="face right">
<div class="door">
<label for="current-room-exit"></label>
</div>
</div>
<div class="face top"></div>
<div class="face bottom">
Go back while you still can.
</div>
<div class="face front"></div>
<div class="face back">
<div class="door">
Back
<label for="current-room6"></label>
</div>
</div>
</div>
</div>
<div id="room8" class="room box">
<div class="transform">
<div class="face left"></div>
<div class="face right"></div>
<div class="face top"></div>
<div class="face bottom"></div>
<div class="face front"></div>
<div class="face back">
<img id="trollface" src="res/trollface.png">
</div>
</div>
</div>
<div id="room-exit" class="room box">
<div class="transform">
<div class="face left"></div>
<div class="face right"></div>
<div class="face top"></div>
<div class="face bottom">
Good job!
</div>
<div class="face front"></div>
<div class="face back">
<div class="door">
<label for="current-room-win"></label>
</div>
</div>
</div>
</div>
<div id="room-dead-end" class="room box">
<div class="transform">
<div class="face left"></div>
<div class="face right"></div>
<div class="face top"></div>
<div class="face bottom">
Try again
</div>
<div class="face front"></div>
<div class="face back">
You've reached a DEAD END.
</div>
</div>
</div>
</div>
</body>
</html>