Skip to content

Commit f252ad8

Browse files
committed
Update the embed page accordingly
1 parent a987f30 commit f252ad8

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

Diff for: embed.html

+22-4
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,37 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Browsercraft</title>
7-
<script src="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"></script>
7+
<script src="https://cjrtnc.leaningtech.com/3_20250303_606/cj3loader.js"></script>
88
<script defer data-domain="browsercraft.cheerpj.com" src="https://plausible.leaningtech.com/js/script.js"></script>
99
<link rel="stylesheet" href="style.css">
1010
</head>
1111
<body>
12-
<minecraft-client style="width: 100%; height: 100%"></minecraft-client>
12+
<div class="container" style="width: 100%; height: 100%">
13+
<div class="intro">
14+
<p>
15+
This is a proof-of-concept demo of Minecraft 1.2.5 running unmodified in the browser.
16+
</p>
17+
<p>
18+
Clicking the button below will download the client from mojang.com.
19+
By clicking it, you agree to the <a href="https://www.minecraft.net/eula">Minecraft EULA</a>.
20+
</p>
21+
<button>Play!</button>
22+
<div class="disclaimer">
23+
This is not an official Minecraft product. It is not approved by or associated with Mojang or Microsoft.
24+
</div>
25+
</div>
26+
<progress style="display: none"></progress>
27+
<div class="display"></div>
28+
</div>
1329
<script type="module">
1430
import MinecraftClient from "./minecraft-web.js";
1531
await cheerpjInit({
1632
version: 8,
17-
javaProperties: ["java.library.path=/app/cheerpj-natives/natives", "org.lwjgl.util.NoChecks=true"],
33+
javaProperties: ["java.library.path=/app/libraries/"],
34+
libraries: {"libGL.so.1": "/app/libraries/gl4es.wasm", "libEGL.so.1": "/app/libraries/libegl.wasm", "libGLESv2.so.1": "/app/libraries/libgles.wasm"},
35+
enableX11:true
1836
});
19-
MinecraftClient.register();
37+
const mc = new MinecraftClient();
2038
</script>
2139
</body>
2240
</html>

0 commit comments

Comments
 (0)