forked from joyict/countdown-game
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
151 lines (139 loc) · 7.77 KB
/
index.html
File metadata and controls
151 lines (139 loc) · 7.77 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dancing Man Catcher Game ✨</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div class="header">
<h1 class="title" data-text="🕺 Dancing Man Catcher">🕺 Dancing Man Catcher</h1>
<p class="subtitle">The Ultimate Reflexes Challenge</p>
<div class="game-logo">
<span class="game-text">CATCH</span>
<span class="game-spark">🎯</span>
</div>
<div class="energy-bars">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
</div>
<div class="game-intro">
<div class="intro-content">
<h2>🎮 How to Play</h2>
<div class="instructions">
<div class="instruction">🎯 Click the dancing man as he moves across the screen</div>
<div class="instruction">⚡ Build streaks for bonus points</div>
<div class="instruction">🌟 Catch golden dancers for power-ups</div>
<div class="instruction">😈 Avoid the evil guy - he'll cost you a life!</div>
</div>
</div>
</div>
<div class="vibes-section">
<div class="vibe-message" id="vibeMessage">
Ready to test your reflexes? 🔥
</div>
<div class="game-section">
<div class="game-info">
<div class="game-modes">
<button class="mode-btn active" id="normalMode" onclick="setGameMode('normal')">Normal</button>
<button class="mode-btn" id="survivalMode" onclick="setGameMode('survival')">Survival</button>
<button class="mode-btn" id="rushMode" onclick="setGameMode('rush')">Rush</button>
<button class="mode-btn" id="chaosMode" onclick="setGameMode('chaos')">Chaos</button>
</div>
<span class="game-text" id="gameText">Catch the dancing man!</span>
<div class="game-stats">
<span class="score" id="score">Score: 0</span>
<span class="streak" id="streak">Streak: 0</span>
<span class="speed" id="speed">Speed: 1x</span>
<span class="lives" id="lives">Lives: 3</span>
<span class="timer" id="timer" style="display: none;">Time: 30s</span>
<span class="level-timer" id="levelTimer">Level Time: 60s</span>
</div>
<div class="power-ups" id="powerUps"></div>
<div class="achievements" id="achievements"></div>
<button class="leaderboard-btn" id="leaderboardBtn" onclick="toggleLeaderboard()">🏆 Leaderboard</button>
</div>
<!-- Start Screen -->
<div class="start-screen" id="startScreen">
<div class="start-content">
<h2>🎮 Ready to Play?</h2>
<p>Click any character to start the game!</p>
<!-- High Score Input Section (hidden by default) -->
<div class="highscore-section" id="highscoreSection" style="display: none;">
<div class="highscore-card">
<h2>🏆 New High Score! 🏆</h2>
<p class="final-score">Score: <span id="startScreenScore">0</span></p>
<div class="name-input-group">
<input type="text" id="startScreenPlayerName" placeholder="Enter your name..." maxlength="20">
<button onclick="submitScoreFromStart()" class="submit-btn">Save Score</button>
</div>
<p class="skip-text">or <button onclick="skipHighScore()" class="skip-btn">skip and play again</button></p>
</div>
</div>
<div class="start-characters">
<div class="start-character" onclick="startGame()" ontouchstart="startGame()">
<img src="dancing-man.svg" alt="Dancing Man" class="start-dancing-svg" />
<span class="character-label">Dancing Man</span>
</div>
<div class="start-character" onclick="startGame()" ontouchstart="startGame()">
<img src="golden-dancer.png" alt="Golden Dancer" class="start-golden-svg" />
<span class="character-label">Golden Dancer</span>
</div>
<div class="start-character" onclick="startGame()" ontouchstart="startGame()">
<img src="evil-guy.svg" alt="Evil Guy" class="start-evil-svg" />
<span class="character-label">Evil Guy</span>
</div>
</div>
<div class="start-buttons">
<button class="start-btn" onclick="startGame()">🚀 New Game</button>
</div>
</div>
</div>
<!-- Leaderboard Modal -->
<div class="leaderboard-modal" id="leaderboardModal">
<div class="leaderboard-content">
<div class="leaderboard-header">
<h2>🏆 Hall of Fame</h2>
<button class="close-btn" onclick="toggleLeaderboard()">×</button>
</div>
<div class="leaderboard-list" id="leaderboardList">
<!-- Leaderboard entries will be populated here -->
</div>
<div class="leaderboard-footer">
<p>Compete for the highest score! 🎉</p>
</div>
</div>
</div>
</div>
<div class="particles" id="particles"></div>
<div class="dancing-man" id="dancingMan" onclick="catchDancer(event)" ontouchstart="catchDancer(event)">
<img src="dancing-man.svg" alt="Dancing Man" class="dancing-svg" />
</div>
<div class="evil-guy" id="evilGuy" onclick="catchEvilGuy(event)" ontouchstart="catchEvilGuy(event)" style="display: none;">
<img src="evil-guy.svg" alt="Evil Guy" class="evil-svg" />
</div>
</div>
<div class="footer">
<p>Challenge your friends and beat the high score! 💪</p>
<div class="links">
<a href="#" onclick="resetGame(); return false;" class="link-button">
🔄 New Game
</a>
<a href="https://joy-ict.nl" target="_blank" class="link-button creator-link">
💼 Creator Portfolio
</a>
</div>
<p class="creator">Made with 🎮 and passion by <a href="https://joy-ict.nl" target="_blank"
class="creator-name">Joy ICT</a></p>
<button id="sound-btn" class="control-btn">🔊 Sound</button>
</div>
</div>
<script type="module" src="js/game.js"></script>
</body>
</html>