Live data from Hacker News

CSS Minecraft

benjaminaster.com

61–70 of 154 posts

Re: CSS Minecraft

#61

Earlier quoted context omitted.

Works fine on my iPhone 14.

Similar problems on my MBP, actually – just sans crashed tab. Zooming in and scrolling around on Chrome and Safari cause the divs to rerender (repaint?) and often not all of them even do! E.g. Chrome: https://imgur.com/a/VWCAL9G Scrolling is fine in Firefox but extremely slow.

Interesting. Worked fine on my MBP in Safari. Even browsed around in the dev tools to see the styles used

Re: CSS Minecraft

#62
post #36

Web-based minecraft, when?

Only guessing, but I have a theory that Mojang considered that circa 2017 :D In 2019 they released a web version of minecraft classic, as a quirky marketing thing for the game's anniversary. But what they released turned out to be built on my open-source voxel engine, and when I dug around their code I realized they'd yoinked my engine a solid two years earlier. And the demo they released was probably not two year's…

Humorous postscript, btw: two months after Mojang forked my voxel engine, somebody left an anonymous "this is awful, you are a terrible programmer" comment on the engine repo.

It's probably a total coincidence, but I like to imagine that the comment came from somebody at Mojang, and that my awful code is the reason why minecraft isn't a web app today :D

Re: CSS Minecraft

#63
post #2

Without a doubt the most impressive thing I've seen with CSS. This immediately brought "A Single Div"[0] to mind, which stood as the coolest CSS demo I'd seen for... 11 years! This one takes the cake. I'll be pouring over it. Thanks! [0]: https://a.singlediv.com/

have you seen this modern marvel? https://diana-adrianne.com/purecss-lace/

Incredible. I was so skeptical that I went in on the neckruff and from there to a lacetop, it's really all generated based on background-image but without using images but gradients of specific colors, as well as box-shadows and the like.

Re: CSS Minecraft

#67
post #27

Very impressive! As I've hit my mid-life slide and (regressed|progressed) back to my youth-self, I've found myself just writing a bunch of apps and sites in html and css and really enjoying it. One thing I still would like to see cracked is a random-like number in pure CSS. You can almost us there with some of the math functions and browser attributes, but I haven't found anything reliable.

Can LLMs help?

Re: CSS Minecraft

#68

Truly incredible from an HTML perspective, but I think also a testament to how catchy and simple Minecraft is as a concept... a few minutes of noodling around in here and I already built myself a cute little tree and a hill: https://i.imgur.com/PjlDWo5.png

Just think about setting what Minecraft has achieved as requirements from the get go: 1) Be one of the most successful games ever created. 2) Basic game mechanics should be possible to be implemented via just HTML and CSS (no JS).

I really like doing this when something extraordinary happens by "accident".

Post reply on HN