Live data from Hacker News

Townscaper Running in the Browser

oskarstalberg.com

51–60 of 102 posts

Re: Townscaper Running in the Browser

#52
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…

It's interesting I have a mid computer (3060/i9/80gb ram/ssd) and with gigabit fiber, it still takes a long time. What is taking a while? Maybe it's request load. Once it loads though wow, the graphics are great, nice little physics effects. Wonder how many online games are like this. Light source/shadow also cool. On subsequent loads it's fast like it's near 80-90% already.

80gb of ram is now mid range???

Re: Townscaper Running in the Browser

#53
post #20

Cool demo, well polished. Now it only needs some gameplay! I could imagine a friendly MMO game where you trade resources with other sea villages.

This is a bit like saying that AoE is cool but could do with some lasers. Townscaper is v well established and has found quite a niche and fandom for itself.

Re: Townscaper Running in the Browser

#56
post #10

Earlier quoted context omitted.

The house toy has a cute little easter egg: If you remove all the foundation pieces of the structure, the remaining structure above starts bobbing up and down slowly, hovering - very subtle way to acknowledge "yep, I did in fact think about that case too".

in Townscaper, doing the same can cause propellers to appear beneath your structures

Hmm, how? All I see is stilts (in the browser version, at least, which I imagine should be the same as the Steam version).

Re: Townscaper Running in the Browser

#57

Earlier quoted context omitted.

It's interesting I have a mid computer (3060/i9/80gb ram/ssd) and with gigabit fiber, it still takes a long time. What is taking a while? Maybe it's request load. Once it loads though wow, the graphics are great, nice little physics effects. Wonder how many online games are like this. Light source/shadow also cool. On subsequent loads it's fast like it's near 80-90% already.

80gb of ram is now mid range???

I'd say 16 GB is mid range at the moment.

Re: Townscaper Running in the Browser

#58
post #17

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

How do you imagine this is done? Hashing the town state and storing lookup key as URL params?

I believe Oskar is bit packing the data into the string, somewhere in his twitter feed he explains it.

Edit: Found it: https://twitter.com/OskSta/status/1198958801363308544

He designed it so you can fit a saved town in a tweet.

"It's my own very context specific implementation. I know how many bits I need for each bit of data, so I just store it all in a big bit array. I then convert that bit array to my own custom base 64 format, based on 64 web safe characters."

Worth reading the whole thread, as will all of Oskars twitter feed its super interesting.

Re: Townscaper Running in the Browser

#59

Earlier quoted context omitted.

It's interesting I have a mid computer (3060/i9/80gb ram/ssd) and with gigabit fiber, it still takes a long time. What is taking a while? Maybe it's request load. Once it loads though wow, the graphics are great, nice little physics effects. Wonder how many online games are like this. Light source/shadow also cool. On subsequent loads it's fast like it's near 80-90% already.

80gb of ram is now mid range???

ah yeah mostly meant the graphics card, 3060 is lower tier of 30 series.

in terms of gaming yeah this is a mid-tier computer

I want to get a 3090FE just because, but I'm not dropping $4K on that

Post reply on HN