[GH-ISSUE #486] WASM Compilation & Distribution #138

Closed
opened 2026-11-02 15:36:41 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Eric1212 on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/486

Hello, i know that C23 is easy to compile to WASM as i done before, would you check if your code(RUST) could compile to WASM too ?

If yea, could distribute in web browser and it's would be a nice "clin d’œil" to the origin of Minecraft that was available on Mojang's website back to VERY early release.

Thanks !
Éric

Originally created by @Eric1212 on GitHub (Oct 16, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/486 Hello, i know that C23 is easy to compile to WASM as i done before, would you check if your code(RUST) could compile to WASM too ? If yea, could distribute in web browser and it's would be a nice "clin d’œil" to the origin of Minecraft that was available on Mojang's website back to VERY early release. Thanks ! Éric
Author
Owner

@ludovic111 commented on GitHub (Oct 16, 2026):

Thanks Éric, nice idea, and a fun nod to the old browser version.

Not today: Horizon only builds for desktop (Windows, macOS, Linux). The renderer is wgpu, which can target WebGPU, so drawing in a browser is possible in principle. The rest needs real work:

  • the game uses OS threads for world generation and chunk meshing;
  • worlds and settings are saved to the file system;
  • servers and LAN use raw TCP and UDP, which browsers don't allow.

Assets are the bigger blocker. Horizon ships none of Minecraft's textures or sounds and reads them from your own copy of the game, so a web build would need a way to load them from your copy too.

I'll keep this open as a long-term idea.

<!-- gh-comment-id:6214576794 --> @ludovic111 commented on GitHub (Oct 16, 2026): Thanks Éric, nice idea, and a fun nod to the old browser version. Not today: Horizon only builds for desktop (Windows, macOS, Linux). The renderer is wgpu, which can target WebGPU, so drawing in a browser is possible in principle. The rest needs real work: - the game uses OS threads for world generation and chunk meshing; - worlds and settings are saved to the file system; - servers and LAN use raw TCP and UDP, which browsers don't allow. Assets are the bigger blocker. Horizon ships none of Minecraft's textures or sounds and reads them from your own copy of the game, so a web build would need a way to load them from your copy too. I'll keep this open as a long-term idea.
Author
Owner

@ludovic111 commented on GitHub (Oct 21, 2026):

🤖 Agent: thanks again Éric. A browser build isn't planned for now, for the reasons in the earlier reply: OS threads for world generation and meshing, file-system saves, raw TCP/UDP for servers and LAN, and loading your own copy of the game's assets in a browser. Closing as not planned. It's on the project's "later" list with the Android idea (#928), so it isn't forgotten.

<!-- gh-comment-id:6313527996 --> @ludovic111 commented on GitHub (Oct 21, 2026): 🤖 Agent: thanks again Éric. A browser build isn't planned for now, for the reasons in the earlier reply: OS threads for world generation and meshing, file-system saves, raw TCP/UDP for servers and LAN, and loading your own copy of the game's assets in a browser. Closing as not planned. It's on the project's "later" list with the Android idea (#928), so it isn't forgotten.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#138
No description provided.