-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (44 loc) · 2.04 KB
/
Copy pathindex.html
File metadata and controls
46 lines (44 loc) · 2.04 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
<!doctype html>
<html lang="id">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Fruit Slice, a browser slicing game by 3sincode." />
<title>Fruit Slice — 3sincode</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<main class="game-shell">
<header class="game-header">
<div>
<p class="eyebrow">A GAME BY 3SINCODE</p>
<h1>FRUIT <span>SLICE</span></h1>
</div>
<div class="scoreboard" aria-label="Status permainan">
<div><span>SKOR</span><strong id="score">0</strong></div>
<div><span>NYAWA</span><strong id="lives">3</strong></div>
</div>
</header>
<section class="game-area" aria-label="Area permainan Fruit Slice">
<video id="camera" autoplay playsinline muted aria-hidden="true"></video>
<canvas id="gameCanvas" width="960" height="600" aria-label="Canvas permainan. Gerakkan mouse atau sentuh buah untuk memotong."></canvas>
<div class="start-panel" id="startPanel">
<p class="panel-label">READY TO SLICE?</p>
<h2 id="panelTitle">Potong semua buahnya.</h2>
<p id="panelText">Aktifkan kamera, arahkan ujung telunjuk ke buah, lalu potong. Mouse dan sentuhan tetap bisa digunakan.</p>
<button id="startButton" type="button">MAIN DENGAN KAMERA</button>
</div>
</section>
<section class="controls" aria-label="Kontrol permainan">
<div class="color-picker">
<span>WARNA PISAU</span>
<div id="colorButtons" class="color-buttons" role="group" aria-label="Pilih warna pisau"></div>
</div>
<p id="cameraStatus"><kbd>R</kbd> mulai ulang <kbd>C</kbd> ganti warna</p>
</section>
</main>
<footer>Created by <strong>3sincode</strong></footer>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@1.0.0/vision_bundle.js" crossorigin="anonymous"></script>
<script src="app.js"></script>
</body>
</html>