You shouldn't have to worry about this kind of stuff if it's just a static site.
I'd host this on a cdn like cloudflare or github pages (free!).
also: this is incredibly cool. thanks for writing this up and sharing!
I'm about to buy Terraria after all these years, just so I can get the assets and check this out. You're cool :)
Its better than Minecraft, in my opinion.
For anyone wondering: https://github.com/gzuidhof/coi-serviceworker or https://github.com/WebReflection/mini-coi
edit: 2000m now that I revisited. Crazy hard.
:strawberry:x14
3:17:46
deaths:1981
Even "AI"s know to show you how to do it in spite of requestAnimationFrame. I know, I asked.
But you have to ask them specifically to decouple game world updates from drawing, or they'll give you the dumb solution.
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.
Somehow it reminds me of something, but memory is getting fuzzier nowadays. /s
6 years ago? https://news.ycombinator.com/item?id=19861584
So You Want To Compile Your C# Game Engine To The Web With WASM
https://kylekukshtel.com/csharp-wasm-game-engine-compile-web...
[1] Single player: https://thelongestyard.link/q3a-demo/ Multiplayer: https://thelongestyard.link/q3a-demo/?server=HN
rlmineing_dead•3d ago