-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
65 lines (58 loc) · 1.89 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>TLOZ-JS Game</title>
<link rel="icon" href="favicon.ico" />
<link rel="preload" href="./fonts/nintendo-nes-font.ttf" as="font">
<link rel="stylesheet" href="./csstart.min.css" />
<style>
@font-face {
font-family: "NES-font";
src: url("./fonts/nintendo-nes-font.ttf") format("truetype");
}
* {
padding: 0;
margin: 0;
}
body {
height: 100vh;
text-align: center!important;
background: #202020;
color: white;
}
main {
display: flex !important;
flex-direction: column;
align-items: center;
justify-content: space-around;
height: 100%;
}
canvas {
background: #000;
display: block;
border-radius: 15px;
}
.Button[disabled] {
opacity: .5;
cursor: not-allowed;
}
</style>
</head>
<body>
<main>
<button type="button" name="button" class="Button Button-dark Button--xl" id="startButton" disabled>Run game</button>
<canvas id="canvas" style="display: none">Your browser seems to not support Canvas2D api. Please use a modern and up to date one like Firefox.</canvas>
<div id="help" style="display: none">
<p>
Firstly, go and get the sword! - Clue: look into the cave...<br>
Press <kbd>Q</kbd> to attack. Press <kbd>I</kbd> to open the inventory. Use <kbd>←</kbd> <kbd>↑</kbd> <kbd>→</kbd> <kbd>↓</kbd> to move.
</p>
<p>
<a href="https://github.com/Jupi007/TLOZ-js">https://github.com/Jupi007/TLOZ-js</a>
</p>
</div>
</main>
<script type="module" src="./src/main.ts"></script>
</body>
</html>