在浏览器中运行Java Minecraft
Browsercraft: Java Minecraft in the browser

原始链接: https://browsercraft.cheerpj.com/

Browsercraft 是一款演示程序,它可以直接在你的网页浏览器中运行 Minecraft 1.2.5,无需任何修改。它利用 CheerpJ,一个用 WebAssembly 构建的 Java 虚拟机,允许运行原始的 Minecraft JAR 文件,而无需其源代码。 本质上,它将 Java 运行时环境流式传输到你的浏览器中,使 Minecraft 能够像本地运行一样工作。这*不是* Minecraft Classic、Bedrock 版或重新实现版本,而是真正的、未经修改的 Minecraft 1.2.5 客户端。 虽然功能可用,但这仍是一个正在进行中的项目。目前缺少音频支持和其他一些小功能。开发者鼓励大家贡献力量来解决这些限制并改进项目。如果你是一名程序员,可以通过 Discord 服务器和 GitHub 参与贡献。

Hacker News的一个帖子讨论了Cheerpj.com如何在浏览器中运行Java版我的世界。一个用户质疑游戏是如何直接运行而不需要付费账户登录的。另一个用户回忆起在测试阶段通过浏览器玩我的世界,那在当时是很常见的做法。这让人感觉像是“兜了一圈”,因为在浏览器中运行Java曾经是标准体验。文章强调最初的我的世界实际上运行在一个Java Applet中。然而,它也指出,当前在浏览器WASM沙箱中运行JVM的实现,与以前直接在主机上运行Java相比,提供了显著的安全优势。
相关文章

原文
Browsercraft

This is a proof-of-concept demo of Minecraft 1.2.5 running unmodified in the browser.

Clicking the button below will download the client from mojang.com. By clicking it, you agree to the Minecraft EULA.

This is not an official Minecraft product. It is not approved by or associated with Mojang or Microsoft.

What is this

Browsercraft makes unmodified Minecraft run in the browser using CheerpJ, a Java runtime for modern browsers.

What this is not

  • Minecraft Classic, an alpha version of Minecraft playable in the browser
  • Minecraft Bedrock Edition
  • The latest version of Minecraft. Newer releases of Minecraft use a newer version of Java and OpenGL which we currently do not support.
  • A modified version of Minecraft. We do not modify the game in any way, we just run the original JARs.
  • A reimplementation of Minecraft in another programming language

How it works

CheerpJ is a Java Virtual Machine written in WebAssembly and it runs entirely in your browser. CheerpJ can run any Java application, without modification and without requiring the source code. This demo demonstrate these capabilities by running an older version (1.2.5) of Minecraft and LWJGL entirely in the browser.

This project is a work-in-progress and not everything works yet. In particular:

  • Audio is not supported
  • Probably other subtle problems

None of these issues are fundamental limitations, they just haven't been implemented yet.

If you're a programmer, we'd love your help in fixing these issues! Join the Discord server and contribute on GitHub.

联系我们 contact @ memedata.com