|
4 | 4 | <meta charset="utf-8">
|
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1">
|
6 | 6 | <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> |
8 | 8 | <script defer data-domain="browsercraft.cheerpj.com" src="https://plausible.leaningtech.com/js/script.js"></script>
|
9 | 9 | <link rel="stylesheet" href="style.css">
|
10 | 10 | </head>
|
11 | 11 | <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> |
13 | 29 | <script type="module">
|
14 | 30 | import MinecraftClient from "./minecraft-web.js";
|
15 | 31 | await cheerpjInit({
|
16 | 32 | 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 |
18 | 36 | });
|
19 |
| - MinecraftClient.register(); |
| 37 | + const mc = new MinecraftClient(); |
20 | 38 | </script>
|
21 | 39 | </body>
|
22 | 40 | </html>
|
0 commit comments