-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
87 lines (77 loc) · 4.31 KB
/
index.html
File metadata and controls
87 lines (77 loc) · 4.31 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cob :: Monch Fireflies</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.7.0/p5.min.js"></script>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div id="game-container">
<div id="info">
Click to jump • Space to spin web • Shift to munch!<br>
Web Strands: <span id="strand-count">0</span><br>
Flies Caught: <span id="flies-caught">0</span> | Munched: <span id="flies-munched">0</span><br>
Points: <span id="player-points">0</span> | Total Score: <span id="total-score">0</span>
</div>
<div id="phase-indicator">
<span id="phase">DUSK</span><br>
<span id="timer"></span><br>
<span id="night-counter" style="font-size: 14px; color: #FFD700;">Night 1</span>
</div>
<div id="web-meter-label">SILK</div>
<div id="web-meter">
<div id="web-meter-fill"></div>
</div>
</div>
<!-- PHASE 5: Stats & Skins Panel -->
<div id="stats-panel" style="display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
background: rgba(20, 20, 40, 0.95); border: 3px solid #87CEEB; border-radius: 20px;
padding: 30px; color: white; z-index: 100; min-width: 500px; max-width: 700px; max-height: 80vh; overflow-y: auto;">
<h2 style="text-align: center; color: #87CEEB; margin-top: 0;">📊 Statistics & Skins 📊</h2>
<div id="stats-content" style="margin-bottom: 20px;">
<h3 style="color: #FFD700;">Lifetime Stats</h3>
<div id="stats-list" style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px;"></div>
</div>
<div id="skins-content" style="margin-bottom: 20px;">
<h3 style="color: #FFD700;">Spider Skins</h3>
<div id="skins-list" style="display: flex; gap: 15px; flex-wrap: wrap; justify-content: center;"></div>
</div>
<div id="achievements-content">
<h3 style="color: #FFD700;">Achievements</h3>
<div id="achievements-list" style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 200px; overflow-y: auto;"></div>
</div>
<button id="close-stats-btn" style="width: 100%; padding: 15px; font-size: 18px; margin-top: 20px;
background: #87CEEB; color: #000; border: none;
border-radius: 10px; cursor: pointer; font-weight: bold;">
Close
</button>
</div>
<!-- PHASE 3: Upgrade Shop -->
<div id="upgrade-shop" style="display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
background: rgba(20, 20, 40, 0.95); border: 3px solid #FFD700; border-radius: 20px;
padding: 30px; color: white; z-index: 100; min-width: 400px; max-width: 600px;">
<h2 style="text-align: center; color: #FFD700; margin-top: 0;">🕷️ Spider Upgrades 🕷️</h2>
<div id="shop-points" style="text-align: center; font-size: 20px; margin-bottom: 20px;">
Points Available: <span id="available-points">0</span>
</div>
<div id="tier1-upgrades" style="margin-bottom: 20px;">
<h3 style="color: #87CEEB;">Tier 1 Upgrades</h3>
<div id="upgrade-list-tier1"></div>
</div>
<div id="tier2-upgrades" style="margin-bottom: 20px; opacity: 0.5;">
<h3 style="color: #FFB6C1;">Tier 2 Upgrades (Unlock Tier 1 First)</h3>
<div id="upgrade-list-tier2"></div>
</div>
<button id="continue-btn" style="width: 100%; padding: 15px; font-size: 18px;
background: #FFD700; color: #000; border: none;
border-radius: 10px; cursor: pointer; font-weight: bold;">
Continue to Next Night
</button>
</div>
<script src="js/physics.js"></script>
<script src="js/entities.js"></script>
<script src="js/game.js"></script>
</body>
</html>