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.
Show HN: A CSS-Only Terrain Generator
71–80 of 88 posts
Re: Show HN: A CSS-Only Terrain Generator
#72Earlier quoted context omitted.
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
As opposed to a “css-only (terrain generator)” - a terrain creation studio built with css only.
Re: Show HN: A CSS-Only Terrain Generator
#73Earlier quoted context omitted.
Funny, my mind went to OpenTTD
Both Rollercoaster Tycoon and Transport Tycoon Deluxe (which lives on in openTTD) are by the same author, and use the same engine :-)
Re: Show HN: A CSS-Only Terrain Generator
#74Re: Show HN: A CSS-Only Terrain Generator
#75Earlier quoted context omitted.
is it a Generator for CSS-Only Terrain? or a CSS-Only Generator which creates Terrain? We need PEMDAS for English.
Let's use sexpr? actual meaning -> ((CSS-Only Terrain) Generator) incorrect interpretation -> (CSS-Only (Terrain Generator))
actual meaning -> CSS-Only Terrain + Generator +
incorrect interpretation -> CSS-Only + Terrain Generator +
Really we may need BNF here
Re: Show HN: A CSS-Only Terrain Generator
#76Re: Show HN: A CSS-Only Terrain Generator
#77Earlier quoted context omitted.
I guess it'd be more accurate to call it a "Generator for CSS-Only Terrain", as the generator itself is not CSS-only.
It's a "(CSS-only Terrain) Generator", not a "CSS-only (Terrain Generator)"
Re: Show HN: A CSS-Only Terrain Generator
#78Earlier quoted context omitted.
Both Rollercoaster Tycoon and Transport Tycoon Deluxe (which lives on in openTTD) are by the same author, and use the same engine :-)
Chris Sawyer, he made them with a tiny magnet that he used to write the games directly to a hard drive.
Re: Show HN: A CSS-Only Terrain Generator
#79Re: Show HN: A CSS-Only Terrain Generator
#80I've used a few terrain generators before but I think this one might be my favourite. Obviously the fact its a "CSS only" demo project restricts things a bit, but its got enough going for it regardless. It actually comes at a really good time for me, I'm currently trying to make the transition from 2d game dev to 3d and things like this are really helpful.