Live data from Hacker News

Show HN: A CSS-Only Terrain Generator

terra.layoutit.com

61–70 of 88 posts

Re: Show HN: A CSS-Only Terrain Generator

#61

This is incredible - looks like SimCity 2000.

Does it? All the tiles are usually a yellow brown aren’t they? 3000 has green land

So funny - I thought the same as the first comment. But yeah memory is a funny thing.

https://kagi.com/proxy/sim-city-2000.png?c=zBh1SYcmKrHnLf7qc...

https://kagi.com/proxy/00001307.jpg?c=vxNARhwMwSpmnHAfYQrnRr...

Re: Show HN: A CSS-Only Terrain Generator

#63
post #53

When I turn off JS, it shows a loader instead of the terrain. Is this really CSS-Only? I mean it's still a high achievement even with JS, but was expecting it would also work without JS. This one, for example, truly works without JS https://benjaminaster.com/css-minecraft/ .

I think what's intended is that the completed and downloaded solution doesn't require any javascript.

Build something then hit the Download Code button - that packaged HTML solution doesn't require any javascript to render locally.

Re: Show HN: A CSS-Only Terrain Generator

#64
post #26

Can someone please reimplement something like Warcraft 2 on a mobile web device? It would be a hit, I’m telling you. Even from 1995. Some people are still playing it 30 years later, obsessively. And myth ii by Bungie is a classic too

Stratagus has an android port at least ...

Re: Show HN: A CSS-Only Terrain Generator

#65

This is incredible - looks like SimCity 2000.

Does it? All the tiles are usually a yellow brown aren’t they? 3000 has green land

The colouring is brown for SC2000, but the geometry is basically identical; I definitely got the same energy from it.

Re: Show HN: A CSS-Only Terrain Generator

#66

Earlier quoted context omitted.

Does it? All the tiles are usually a yellow brown aren’t they? 3000 has green land

The colouring is brown for SC2000, but the geometry is basically identical; I definitely got the same energy from it.

While close to SC2000, it's much closer to Transport Tycoon (OpenTTD).

https://www.openttd.org/screenshots

Re: Show HN: A CSS-Only Terrain Generator

#68
post #55
post #53

When I turn off JS, it shows a loader instead of the terrain. Is this really CSS-Only? I mean it's still a high achievement even with JS, but was expecting it would also work without JS. This one, for example, truly works without JS https://benjaminaster.com/css-minecraft/ .

I'm assuming it's the render engine that is in pure CSS. You could display a static map in CSS but things like the tools to modify the terrain definitely need JS.

I wanted to check if your assumption is correct but I couldn’t find the source code.

Why do you think the renderer is pure css and not e.g. mostly css?

Re: Show HN: A CSS-Only Terrain Generator

#69
post #68
post #55

Earlier quoted context omitted.

I'm assuming it's the render engine that is in pure CSS. You could display a static map in CSS but things like the tools to modify the terrain definitely need JS.

I wanted to check if your assumption is correct but I couldn’t find the source code. Why do you think the renderer is pure css and not e.g. mostly css?

The top right button has a "Download code" which gives you a .zip file. That .zip file doesn't have any JS in it, and renders the terrain just like in the online editor, except you can turn off JS and it still works.

Edit: someone else wrote basically the same an hour ago: https://news.ycombinator.com/item?id=45814791

Re: Show HN: A CSS-Only Terrain Generator

#70
post #57

Wow this really feels like roller coaster tycoon!!! (I can see lots of people refer to this to their favorite sim game though) Great work!

I really miss these building games that used an isometric grid. RC Tycoon, Zoo Tycoon, Sim City, TTD, … Yes, it's less realistic, but it is so pleasant to work with. Everything you build aligns perfectly and if you want, you can neatly fill the entire map. In comparison, (even with many mods) my Cities Skylines or Planet Coaster creations never look quite right. Building the roads and paths is always awkward and frus…

Starcraft and The Sims 1 as well! Games that would let one rotate the isometric view once blew my mind, it was like going from 2D to 3D.
Post reply on HN