-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (73 loc) · 2.68 KB
/
index.html
File metadata and controls
73 lines (73 loc) · 2.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="preload" href="./src/style/globals.css" as="style" />
<link rel="stylesheet" href="./src/style/globals.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Minier Minecraft</title>
<meta
name="description"
content="Play a real, fully-featured version of Minecraft in your browser!!"
/>
</head>
<body
class="fixed inset-0 flex flex-col items-center justify-center dark:bg-neutral-900"
>
<div class="relative bg-slate-500">
<canvas id="canvas" width="800" height="600"></canvas>
<div class="absolute inset-0" id="ui">
<div
class="absolute backdrop-invert w-0.5 h-4 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"
></div>
<div
class="absolute backdrop-invert w-4 h-0.5 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"
></div>
<div
class="absolute backdrop-invert w-0.5 h-0.5 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"
></div>
</div>
</div>
<div class="w-[800px] flex justify-between mt-4">
<h1 class="text-neutral-400 dark:text-neutral-500">
Made with
<a
href="https://la-langosta-azul.vercel.app/"
target="_blank"
class="grayscale hover:grayscale-0 transition-[filter]"
>🦞</a
>
using
<a
href="https://threejs.org/"
target="_blank"
class="hover:text-neutral-600 dark:hover:text-neutral-300 transition-colors"
>THREE.js</a
>
</h1>
<div
class="relative bg-neutral-200 text-neutral-500 dark:bg-neutral-700 dark:text-neutral-400 w-6 h-6 flex justify-center items-center rounded-full cursor-default group"
>
?
<div
class="absolute bottom-0 right-0 transition-opacity opacity-0 group-hover:opacity-100"
>
<div
class="text-black bg-neutral-200 dark:bg-neutral-700 dark:text-white px-4 py-2 rounded-md w-max group-hover:block hidden"
>
<p class="mb-4">Click the display to start!</p>
<p><b>WASD</b>: Move</p>
<p><b>Space</b>: Jump / Fly up</p>
<p><b>F</b>: Toggle flight</p>
<p><b>Shift</b>: Fly down</p>
<p class="mt-1"><b>Left click</b>: Break block</p>
<p><b>Right click</b>: Place block</p>
<p class="mt-4"><b>K</b>: Toggle chunk border</p>
</div>
</div>
</div>
</div>
<script type="module" src="/src/main.ts" defer></script>
</body>
</html>