-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
91 lines (78 loc) · 2.42 KB
/
index.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="google-site-verification"
content="%VITE_GOOGLE_VERIFICATION_ID%"
/>
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<!-- Preload font to use in Phaser.js, otherwise it will be taken as a fallback (I don't know the reason) -->
<link
rel="preload"
as="font"
type="font/ttf"
href="/fonts/BitBold.ttf"
crossorigin
/>
<link rel="stylesheet" href="/styles/global.css" />
<link rel="stylesheet" href="/styles/dialog.css" />
<title>Bomberman (NES)</title>
</head>
<body>
<main>
<div id="bomberman-container"></div>
<div id="game-controls">
<button onclick="constrolsModal.showModal()">How to play?</button>
<a
class="github-button"
href="https://github.com/pr0mming/Bomberman-JS"
data-color-scheme="no-preference: light_high_contrast; light: light; dark: light;"
data-size="large"
data-show-count="true"
aria-label="Star pr0mming/Bomberman-JS on GitHub"
>Star</a
>
</div>
<dialog id="constrolsModal">
<form method="dialog" class="btn-close">
<button type="submit" autofocus>x</button>
</form>
<div class="dialog-body">
<section>
<div>
<img
src="/images/arrow-keys.png"
width="90"
height="60"
alt="Key Up"
/>
</div>
<p>To move your player</p>
</section>
<section>
<img src="/images/x-key.png" width="60" height="60" alt="Key Up" />
<p>To put any bomb</p>
</section>
<section>
<img
src="/images/space-key.png"
width="60"
height="60"
alt="Key Up"
/>
<p>To explode a bomb</p>
</section>
<section>
<img src="/images/s-key.png" width="60" height="60" alt="Key Up" />
<p>To save the game</p>
</section>
</div>
</dialog>
</main>
<script type="module" src="/src/main.ts"></script>
<!-- Github Button -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>