Live data from Hacker News

Townscaper Running in the Browser

oskarstalberg.com

11–20 of 102 posts

Re: Townscaper Running in the Browser

#12

Impressive. Would be more impressive if it ran on mobile browser, though. Edit: Scratch that it does run. I got scared away by the message about webgl builds not being supported on Mobile.

It is running in Firefox on mobile just fine while I don't have a high end smartphone.

Re: Townscaper Running in the Browser

#14
post #13

Here a very interesting talk by Oskar Stålberg where he explains how this works: https://youtu.be/1hqt8JkYRdI

And here's another, slightly more technical talk from him about the "wave function collapse" algorithm he uses for procedural generation in his games: https://www.youtube.com/watch?v=0bcZb-SsnrA

Re: Townscaper Running in the Browser

#15
post #14
post #13

Here a very interesting talk by Oskar Stålberg where he explains how this works: https://youtu.be/1hqt8JkYRdI

And here's another, slightly more technical talk from him about the "wave function collapse" algorithm he uses for procedural generation in his games: https://www.youtube.com/watch?v=0bcZb-SsnrA

Ah thank you. I was in fact looking for that talk!

What I really like about this is that the base grid is not straight. Therefore the buildings are arranged in a very European style.

Re: Townscaper Running in the Browser

#16
It takes about 90 seconds to load for me, but once it does, it's buttery smooth on my M1 Pro. Unity's web story is still so bad for many reasons, but the initial load times are a huge one (~15MB of wasm for an empty scene last I checked). They were working on Project Tiny[0] to address exactly this, but they've now paused work on it indefinitely :( Someone please build tools to fix this!

[0] https://unity.com/solutions/instant-games

Re: Townscaper Running in the Browser

#18
post #17

Wow, the entire town is URL encoded!! Example: http://oskarstalberg.com/Townscaper/#IzpjOEQ0ejP2X9w-b--c-X-...

I have the Steam game too, but I'm somehow enjoying the browser version much more. Perhaps because of (seemingly) light-weight nature

Re: Townscaper Running in the Browser

#19
post #16

It takes about 90 seconds to load for me, but once it does, it's buttery smooth on my M1 Pro. Unity's web story is still so bad for many reasons, but the initial load times are a huge one (~15MB of wasm for an empty scene last I checked). They were working on Project Tiny[0] to address exactly this, but they've now paused work on it indefinitely :( Someone please build tools to fix this! [0] https://unity.com/solutio…

When did you last check? What packages were in use? On a toy project built from 2020.3 I have 2.2MB of WASM.
Post reply on HN