-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
148 lines (142 loc) · 5.5 KB
/
Copy pathindex.html
File metadata and controls
148 lines (142 loc) · 5.5 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Beat.pe</title>
<link rel="stylesheet" href="/Beat.pe/src/style.css" />
<!-- <link rel="icon" href="assets/favicon.ico" /> -->
</head>
<body>
<div id="game-container">
<!-- TOP-RIGHT ICONS -->
<div class="top-actions">
<button id="leaderboard-btn" class="icon-btn" aria-label="Leaderboard">
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect x="4" y="14" width="4" height="8" />
<rect x="10" y="6" width="4" height="16" />
<rect x="16" y="10" width="4" height="12" />
</svg>
</button>
<button id="settings-btn" class="icon-btn" aria-label="Settings">
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="12" r="3" />
<path
d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"
/>
</svg>
</button>
</div>
<!-- START SCREEN -->
<div id="start-screen" class="screen">
<div class="title">BEAT PE</div>
<button class="btn hidden mobi">Start</button>
<div class="subtitle">Press SPACE to start</div>
</div>
<!-- SETTINGS MODAL -->
<div id="settings-modal" class="screen hidden overlay">
<div class="modal-card">
<div class="title small">SETTINGS</div>
<div class="setting-row">
<label>Sound Effects</label>
<div class="toggle" data-setting="sound">
<div class="knob"></div>
</div>
</div>
<div class="setting-row">
<label>Visual Effects</label>
<div class="toggle" data-setting="vfx">
<div class="knob"></div>
</div>
</div>
<div id="key-mapping-section" class="setting-section">
<div class="section-label">Key Bindings</div>
<div class="key-grid">
<div class="key-bind">
<span>Col 1</span
><button class="key-btn" data-index="0">A</button>
</div>
<div class="key-bind">
<span>Col 2</span
><button class="key-btn" data-index="1">S</button>
</div>
<div class="key-bind">
<span>Col 3</span
><button class="key-btn" data-index="2">D</button>
</div>
<div class="key-bind">
<span>Col 4</span
><button class="key-btn" data-index="3">F</button>
</div>
</div>
</div>
<button id="close-settings" class="btn">Done</button>
</div>
</div>
<!-- LEADERBOARD MODAL -->
<div id="leaderboard-modal" class="screen hidden overlay">
<div class="modal-card">
<div class="title small">LEADERBOARD</div>
<div id="leaderboard-list" class="score-list"></div>
<div id="leaderboard-empty" class="empty-state">
No scores yet. Play to get on the board!
</div>
<div class="modal-footer">
<button id="close-leaderboard" class="btn">Back</button>
<button id="clear-leaderboard" class="btn btn-danger">
Clear All
</button>
</div>
</div>
</div>
<!-- GAME SCREEN -->
<div id="game-screen" class="screen hidden">
<div class="topbar">
<div id="lives">♥ 3</div>
<div id="score">0</div>
</div>
<div class="board">
<div class="col" data-key="A"><span class="key-hint">A</span></div>
<div class="col" data-key="S"><span class="key-hint">S</span></div>
<div class="col" data-key="D"><span class="key-hint">D</span></div>
<div class="col" data-key="F"><span class="key-hint">F</span></div>
</div>
</div>
<!-- GAME OVER SCREEN -->
<div id="over-screen" class="screen hidden">
<div class="title">GAME OVER</div>
<div id="final-score" class="score-large">0</div>
<button class="btn hidden mobi">Play Again</button>
<div class="subtitle">Press SPACE to go again</div>
</div>
</div>
<script type="module" src="/Beat.pe/src/main.js"></script>
<script
src="https://dhanur.me/motherland.js"
data-mode="long"
data-theme="dark"
data-position="top-left"
data-size="40px"
data-gap="1rem"
data-animate="true"
></script>
</body>
</html>