Live data from Hacker News

Show HN: Porting Terraria and Celeste to WebAssembly

velzie.rip

31–40 of 55 posts

Re: Show HN: Porting Terraria and Celeste to WebAssembly

#32
post #23

> One of my favorite genres of weird project is "thing running in the browser that should absolutely not be running in the browser". Some of my favorites are the [...] the direct recompilation of Minecraft 1.12 Heh, you'd think Minecraft would be exactly the sort of thing that absolutely should be running in the browser, considering it was originally a Java applet. I understand the point, I just find it amusing.

Even more interesting is this idea of running WebAssembly on the server, in containers, with orchestration services among them, and communicating across sandboxed environments. Somehow it reminds me of something, but memory is getting fuzzier nowadays. /s

You’re obviously talking about the 1972 VM/370 right?

Re: Show HN: Porting Terraria and Celeste to WebAssembly

#33

> One of my favorite genres of weird project is "thing running in the browser that should absolutely not be running in the browser". Some of my favorites are the [...] the direct recompilation of Minecraft 1.12 Heh, you'd think Minecraft would be exactly the sort of thing that absolutely should be running in the browser, considering it was originally a Java applet. I understand the point, I just find it amusing.

Early minecraft versions did run in the browser before it was made a standalone app, and they recreated it recently https://classic.minecraft.net

Re: Show HN: Porting Terraria and Celeste to WebAssembly

#34
post #29

I've recently started trying to do a bit of basic game development targeting the web through WASM+OpenGL+SDL, and I must say, I'm shocked with how easy it is. I spent more time fiddling with CMake files than I did trying to the code to run on the web. There are still some limitations and rough spots on the web platform, but I've honestly had a much harder time compiling things for Windows or MacOS than for WASM.

Dumb question: do you have access to any of the nice text rendering features of the browser when you use Wasm, or is it basically just drawing to a canvas

Re: Show HN: Porting Terraria and Celeste to WebAssembly

#37

Earlier quoted context omitted.

My bad! Switched over to the github pages fallback. Cloudflare pages isn't suitable because the wasm files (100mb+) exceed the 25mb limit. (i could bypass this with service worker jank but that tends to be fragile). Github Pages also isn't suitable because it doesn't have a native way of sending the coi/coep headers that are required for SharedArrayBuffer to be available. Can also bypass that with service worker jank…

Cloudflare R3 might suit the scenario better for you in terms of the heavy assets, it's like AWS S3 except for the cool part where you aren't charged for data egress (last I checked! haha) I'm about to buy Terraria after all these years, just so I can get the assets and check this out. You're cool :)

Oh Terraria is totally worth it, especially when spelunking with friends.

Its better than Minecraft, in my opinion.

Re: Show HN: Porting Terraria and Celeste to WebAssembly

#38
This post presupposes a bit of knowledge about C#/WASM and Native code linking in the C# ecosystem. I wrote a post a while back that could be a complement to this that does some more level setting about what's possible these days with compiling C#-based engines to the web for those that don't already have the context:

So You Want To Compile Your C# Game Engine To The Web With WASM

https://kylekukshtel.com/csharp-wasm-game-engine-compile-web...

Re: Show HN: Porting Terraria and Celeste to WebAssembly

#40

Earlier quoted context omitted.

Sounds like the game uses a fixed 60hz frame step but maybe you're on a 120hz display? Chrome and FF run requestAnimationFrame at 120hz in this case (while Safari sticks to 60hz)

Possibly, I'm indeed on a 120Hz display. I still got up to 1600m, it's a good challenge. edit: 2000m now that I revisited. Crazy hard.

Made it to the summit at double speed.

  :strawberry:x14
  3:17:46
  deaths:1981
Post reply on HN