blewis101 commited on
Commit
bc23558
·
verified ·
1 Parent(s): c82e3d3

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +318 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: The Dark Forest
3
- emoji: 🌖
4
- colorFrom: red
5
  colorTo: red
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: the-dark-forest
3
+ emoji: 🐳
4
+ colorFrom: purple
5
  colorTo: red
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,318 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>The Dark Forest - Interactive Fiction</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link href="https://fonts.googleapis.com/css2?family=Bungee+Shade&family=National+Park:wght@400;700&display=swap" rel="stylesheet">
9
+ <style>
10
+ body {
11
+ font-family: 'National Park', sans-serif;
12
+ background-color: #0a0a0a;
13
+ color: #e0e0e0;
14
+ }
15
+ .game-title {
16
+ font-family: 'Bungee Shade', cursive;
17
+ font-size: 3rem;
18
+ color: #dc2626;
19
+ text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
20
+ letter-spacing: 2px;
21
+ }
22
+ .highlight-character {
23
+ background-color: #5e2e2e;
24
+ cursor: pointer;
25
+ transition: all 0.2s;
26
+ }
27
+ .highlight-character:hover {
28
+ background-color: #7e3e3e;
29
+ }
30
+ .highlight-item {
31
+ background-color: #2e5e2e;
32
+ cursor: pointer;
33
+ transition: all 0.2s;
34
+ }
35
+ .highlight-item:hover {
36
+ background-color: #3e7e3e;
37
+ }
38
+ .highlight-location {
39
+ background-color: #2e2e5e;
40
+ cursor: pointer;
41
+ transition: all 0.2s;
42
+ }
43
+ .highlight-location:hover {
44
+ background-color: #3e3e7e;
45
+ }
46
+ .map-container {
47
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23111111"/><path d="M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="%23333" stroke-width="1"/><path d="M30,30 L70,30 L70,70 L30,70 Z" fill="none" stroke="%23333" stroke-width="1"/><circle cx="50" cy="50" r="5" fill="%23dc2626"/></svg>');
48
+ background-size: cover;
49
+ }
50
+ </style>
51
+ </head>
52
+ <body class="h-screen overflow-hidden">
53
+ <div class="container mx-auto h-full flex flex-col p-4 gap-4">
54
+ <!-- Game Title -->
55
+ <div class="text-center mb-4">
56
+ <h1 class="game-title">THE DARK FOREST</h1>
57
+ </div>
58
+
59
+ <div class="flex gap-4 flex-grow">
60
+ <!-- Left Column -->
61
+ <div class="w-1/4 flex flex-col gap-4">
62
+ <!-- Player Character Container -->
63
+ <div class="bg-gray-900 rounded-lg p-4 border border-gray-800 flex flex-col">
64
+ <div class="flex items-center gap-4 mb-4">
65
+ <div class="w-16 h-16 bg-gray-800 rounded-full flex items-center justify-center text-2xl">👤</div>
66
+ <div>
67
+ <h2 class="text-xl font-bold text-red-400">Dr. Elias Vane</h2>
68
+ <p class="text-sm text-gray-400">Occult Researcher</p>
69
+ </div>
70
+ </div>
71
+ <div class="grid grid-cols-2 gap-2">
72
+ <div class="bg-gray-800 p-2 rounded">
73
+ <p class="text-xs text-gray-400">Sanity</p>
74
+ <div class="w-full bg-gray-700 h-2 rounded-full mt-1">
75
+ <div class="bg-red-500 h-2 rounded-full" style="width: 68%"></div>
76
+ </div>
77
+ </div>
78
+ <div class="bg-gray-800 p-2 rounded">
79
+ <p class="text-xs text-gray-400">Health</p>
80
+ <div class="w-full bg-gray-700 h-2 rounded-full mt-1">
81
+ <div class="bg-green-500 h-2 rounded-full" style="width: 85%"></div>
82
+ </div>
83
+ </div>
84
+ <div class="bg-gray-800 p-2 rounded">
85
+ <p class="text-xs text-gray-400">Knowledge</p>
86
+ <div class="w-full bg-gray-700 h-2 rounded-full mt-1">
87
+ <div class="bg-blue-500 h-2 rounded-full" style="width: 42%"></div>
88
+ </div>
89
+ </div>
90
+ <div class="bg-gray-800 p-2 rounded">
91
+ <p class="text-xs text-gray-400">Stealth</p>
92
+ <div class="w-full bg-gray-700 h-2 rounded-full mt-1">
93
+ <div class="bg-purple-500 h-2 rounded-full" style="width: 56%"></div>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ <div class="mt-4">
98
+ <p class="text-sm"><span class="font-bold text-gray-300">Equipment:</span> Lantern, Revolver, Notebook</p>
99
+ </div>
100
+ </div>
101
+
102
+ <!-- Allies Container -->
103
+ <div class="bg-gray-900 rounded-lg p-4 border border-gray-800 flex-grow">
104
+ <h3 class="text-lg font-bold mb-3 text-red-400 border-b border-gray-800 pb-2">Allies</h3>
105
+ <div class="space-y-3">
106
+ <div class="flex items-center gap-3 p-2 bg-gray-800 rounded">
107
+ <div class="w-10 h-10 bg-gray-700 rounded-full flex items-center justify-center">👩</div>
108
+ <div>
109
+ <p class="font-bold">Dr. Lillian Graves</p>
110
+ <p class="text-xs text-gray-400">Archaeologist</p>
111
+ </div>
112
+ <div class="ml-auto text-xs bg-gray-700 px-2 py-1 rounded">Trust: 72%</div>
113
+ </div>
114
+ <div class="flex items-center gap-3 p-2 bg-gray-800 rounded">
115
+ <div class="w-10 h-10 bg-gray-700 rounded-full flex items-center justify-center">🧔</div>
116
+ <div>
117
+ <p class="font-bold">Father Callahan</p>
118
+ <p class="text-xs text-gray-400">Priest</p>
119
+ </div>
120
+ <div class="ml-auto text-xs bg-gray-700 px-2 py-1 rounded">Trust: 58%</div>
121
+ </div>
122
+ <div class="flex items-center gap-3 p-2 bg-gray-800 rounded">
123
+ <div class="w-10 h-10 bg-gray-700 rounded-full flex items-center justify-center">👨‍⚕️</div>
124
+ <div>
125
+ <p class="font-bold">Dr. Samuel Webb</p>
126
+ <p class="text-xs text-gray-400">Physician</p>
127
+ </div>
128
+ <div class="ml-auto text-xs bg-gray-700 px-2 py-1 rounded">Trust: 45%</div>
129
+ </div>
130
+ </div>
131
+ </div>
132
+
133
+ <!-- Map Container -->
134
+ <div class="bg-gray-900 rounded-lg p-4 border border-gray-800 h-64 map-container">
135
+ <h3 class="text-lg font-bold mb-2 text-red-400">Blackwood Manor</h3>
136
+ <p class="text-sm">Ground Floor - Study</p>
137
+ <div class="mt-2 text-xs space-y-1">
138
+ <p>🟢 - Your position</p>
139
+ <p>🔴 - Danger areas</p>
140
+ <p>🔵 - Unexplored</p>
141
+ </div>
142
+ </div>
143
+ </div>
144
+
145
+ <!-- Middle Column -->
146
+ <div class="w-2/4 flex flex-col gap-4">
147
+ <!-- Story Text Container -->
148
+ <div class="bg-gray-900 rounded-lg p-6 border border-gray-800 flex-grow overflow-y-auto">
149
+ <h3 class="text-xl font-bold mb-4 text-red-400">Chapter 3: The Whispering Walls</h3>
150
+ <div class="space-y-4 text-lg leading-relaxed">
151
+ <p>The study reeks of mildew and something more unsettling—<span class="highlight-character">Dr. Graves</span> claims it's the scent of <span class="highlight-item">forbidden knowledge</span>, but you're not so sure. The <span class="highlight-item">ancient tome</span> on the desk pulses with an unnatural energy, its pages seeming to turn of their own accord when no one is looking.</p>
152
+
153
+ <p>From the hallway, <span class="highlight-character">Father Callahan</span> calls out in a strained voice. "<span class="highlight-character">Elias</span>, you need to see this." His crucifix glows faintly as he points to the <span class="highlight-location">east wing corridor</span>, where the wallpaper has begun to peel away, revealing symbols that weren't there yesterday.</p>
154
+
155
+ <p><span class="highlight-character">Dr. Webb</span> nervously fingers his medical bag. "I've got <span class="highlight-item">sedatives</span> if anyone needs them," he offers, though his trembling hands suggest he might need them most of all. The <span class="highlight-item">lantern</span> flickers as a cold draft sweeps through the room, despite all windows being boarded shut.</p>
156
+ </div>
157
+ </div>
158
+
159
+ <!-- Dialogue Options Container -->
160
+ <div class="bg-gray-900 rounded-lg p-4 border border-gray-800">
161
+ <h3 class="text-lg font-bold mb-3 text-red-400">What will you do?</h3>
162
+ <div class="grid grid-cols-2 gap-3">
163
+ <div class="bg-gray-800 p-3 rounded-lg cursor-pointer hover:bg-gray-700 transition">
164
+ <p class="font-bold mb-1">Examine the tome carefully</p>
165
+ <p class="text-xs text-gray-400">+ Knowledge, + Dr. Graves' respect, -5% Sanity</p>
166
+ </div>
167
+ <div class="bg-gray-800 p-3 rounded-lg cursor-pointer hover:bg-gray-700 transition">
168
+ <p class="font-bold mb-1">Destroy the tome immediately</p>
169
+ <p class="text-xs text-gray-400">+10% Sanity, - Dr. Graves' trust</p>
170
+ </div>
171
+ <div class="bg-gray-800 p-3 rounded-lg cursor-pointer hover:bg-gray-700 transition">
172
+ <p class="font-bold mb-1">Investigate the corridor</p>
173
+ <p class="text-xs text-gray-400">+ Father Callahan's trust, -15% Sanity</p>
174
+ </div>
175
+ <div class="bg-gray-800 p-3 rounded-lg cursor-pointer hover:bg-gray-700 transition">
176
+ <p class="font-bold mb-1">Take the sedatives</p>
177
+ <p class="text-xs text-gray-400">+20% Sanity, - Dr. Webb's respect</p>
178
+ </div>
179
+ </div>
180
+ </div>
181
+ </div>
182
+
183
+ <!-- Right Column -->
184
+ <div class="w-1/4 flex flex-col gap-4">
185
+ <!-- Active Missions Container -->
186
+ <div class="bg-gray-900 rounded-lg p-4 border border-gray-800">
187
+ <h3 class="text-lg font-bold mb-3 text-red-400">Active Missions</h3>
188
+ <div class="space-y-3">
189
+ <div class="bg-gray-800 p-3 rounded">
190
+ <p class="font-bold text-sm">🔍 Find the Blackwood Ritual</p>
191
+ <p class="text-xs text-gray-400 mt-1">Progress: 2/5 clues found</p>
192
+ <div class="w-full bg-gray-700 h-1 rounded-full mt-2">
193
+ <div class="bg-blue-500 h-1 rounded-full" style="width: 40%"></div>
194
+ </div>
195
+ </div>
196
+ <div class="bg-gray-800 p-3 rounded">
197
+ <p class="font-bold text-sm">🩺 Keep the team healthy</p>
198
+ <p class="text-xs text-gray-400 mt-1">Team health: 78%</p>
199
+ <div class="w-full bg-gray-700 h-1 rounded-full mt-2">
200
+ <div class="bg-green-500 h-1 rounded-full" style="width: 78%"></div>
201
+ </div>
202
+ </div>
203
+ <div class="bg-gray-800 p-3 rounded">
204
+ <p class="font-bold text-sm">⛪️ Investigate the chapel</p>
205
+ <p class="text-xs text-gray-400 mt-1">Father Callahan's request</p>
206
+ <div class="w-full bg-gray-700 h-1 rounded-full mt-2">
207
+ <div class="bg-yellow-500 h-1 rounded-full" style="width: 15%"></div>
208
+ </div>
209
+ </div>
210
+ </div>
211
+ </div>
212
+
213
+ <!-- Inventory Container -->
214
+ <div class="bg-gray-900 rounded-lg p-4 border border-gray-800 flex-grow">
215
+ <h3 class="text-lg font-bold mb-3 text-red-400">Inventory</h3>
216
+ <div class="grid grid-cols-3 gap-2">
217
+ <div class="bg-gray-800 p-2 rounded flex flex-col items-center cursor-pointer hover:bg-gray-700 transition">
218
+ <div class="text-2xl mb-1">🔦</div>
219
+ <p class="text-xs text-center">Oil Lantern</p>
220
+ <p class="text-xxs text-gray-500">78% fuel</p>
221
+ </div>
222
+ <div class="bg-gray-800 p-2 rounded flex flex-col items-center cursor-pointer hover:bg-gray-700 transition">
223
+ <div class="text-2xl mb-1">🔫</div>
224
+ <p class="text-xs text-center">Revolver</p>
225
+ <p class="text-xxs text-gray-500">4/6 rounds</p>
226
+ </div>
227
+ <div class="bg-gray-800 p-2 rounded flex flex-col items-center cursor-pointer hover:bg-gray-700 transition">
228
+ <div class="text-2xl mb-1">📓</div>
229
+ <p class="text-xs text-center">Journal</p>
230
+ <p class="text-xxs text-gray-500">23 pages</p>
231
+ </div>
232
+ <div class="bg-gray-800 p-2 rounded flex flex-col items-center cursor-pointer hover:bg-gray-700 transition">
233
+ <div class="text-2xl mb-1">💊</div>
234
+ <p class="text-xs text-center">Sedatives</p>
235
+ <p class="text-xxs text-gray-500">3 doses</p>
236
+ </div>
237
+ <div class="bg-gray-800 p-2 rounded flex flex-col items-center cursor-pointer hover:bg-gray-700 transition">
238
+ <div class="text-2xl mb-1">🧪</div>
239
+ <p class="text-xs text-center">Strange Vial</p>
240
+ <p class="text-xxs text-gray-500">???</p>
241
+ </div>
242
+ <div class="bg-gray-800 p-2 rounded flex flex-col items-center cursor-pointer hover:bg-gray-700 transition">
243
+ <div class="text-2xl mb-1">🔑</div>
244
+ <p class="text-xs text-center">Rusty Key</p>
245
+ <p class="text-xxs text-gray-500">East Wing?</p>
246
+ </div>
247
+ </div>
248
+ </div>
249
+
250
+ <!-- Extra Container (Game State) -->
251
+ <div class="bg-gray-900 rounded-lg p-4 border border-gray-800">
252
+ <h3 class="text-lg font-bold mb-3 text-red-400">Game State</h3>
253
+ <div class="space-y-2">
254
+ <div>
255
+ <p class="text-sm font-bold">Time: <span class="font-normal">3:47 AM</span></p>
256
+ <p class="text-sm font-bold">Day: <span class="font-normal">3</span></p>
257
+ </div>
258
+ <div class="bg-gray-800 p-2 rounded">
259
+ <p class="text-xs font-bold text-gray-400">Current Effects:</p>
260
+ <p class="text-xs">🕯️ Flickering Light (-5% Perception)</p>
261
+ <p class="text-xs">👂 Whispering Voices (-10% Sanity/hr)</p>
262
+ </div>
263
+ <div class="mt-2">
264
+ <p class="text-xs text-gray-400">Save slots:</p>
265
+ <div class="flex gap-2 mt-1">
266
+ <div class="bg-gray-800 text-xs px-3 py-1 rounded cursor-pointer hover:bg-gray-700">1</div>
267
+ <div class="bg-gray-800 text-xs px-3 py-1 rounded cursor-pointer hover:bg-gray-700">2</div>
268
+ <div class="bg-gray-800 text-xs px-3 py-1 rounded cursor-pointer hover:bg-gray-700">3</div>
269
+ </div>
270
+ </div>
271
+ </div>
272
+ </div>
273
+ </div>
274
+ </div>
275
+ </div>
276
+
277
+ <script>
278
+ // Highlighted text interaction
279
+ document.querySelectorAll('.highlight-character').forEach(el => {
280
+ el.addEventListener('click', () => {
281
+ alert(`Interacting with character: ${el.textContent}`);
282
+ });
283
+ });
284
+
285
+ document.querySelectorAll('.highlight-item').forEach(el => {
286
+ el.addEventListener('click', () => {
287
+ alert(`Interacting with item: ${el.textContent}`);
288
+ });
289
+ });
290
+
291
+ document.querySelectorAll('.highlight-location').forEach(el => {
292
+ el.addEventListener('click', () => {
293
+ alert(`Interacting with location: ${el.textContent}`);
294
+ });
295
+ });
296
+
297
+ // Dialogue option interaction
298
+ document.querySelectorAll('.bg-gray-800').forEach(el => {
299
+ if (el.textContent.includes('% Sanity') || el.textContent.includes('trust')) {
300
+ el.addEventListener('click', () => {
301
+ const action = el.querySelector('.font-bold').textContent;
302
+ alert(`You chose: ${action}\nThis will affect your game state.`);
303
+ });
304
+ }
305
+ });
306
+
307
+ // Inventory item interaction
308
+ document.querySelectorAll('.bg-gray-800').forEach(el => {
309
+ if (el.querySelector('.text-2xl')) {
310
+ el.addEventListener('click', () => {
311
+ const item = el.querySelector('.text-xs').textContent;
312
+ alert(`Using item: ${item}`);
313
+ });
314
+ }
315
+ });
316
+ </script>
317
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=blewis101/the-dark-forest" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
318
+ </html>