Earlier quoted context omitted.
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
Is your repo still available?
CSS Minecraft
91–100 of 154 posts
Re: CSS Minecraft
#92I wonder when AIs can write clever codes like this. Given a surprising constraint.
Re: CSS Minecraft
#93Recently I came across Quake implemented within a single WebGL shader ( https://www.shadertoy.com/view/lsKfWd ), but this is another level. HTML/CSS is a programming language now.
Re: CSS Minecraft
#94Pug is an unsung hero in this demo. The template engine made it possible to brute force the UI with 4 levels of nested loop. Impressive!
Concatenating strings is not that complicated.
Re: CSS Minecraft
#95Re: CSS Minecraft
#96This is fiendishly clever, and really quite elegant. I made some of my own notes on how this works here: https://simonwillison.net/2025/May/26/css-minecraft/
Re: CSS Minecraft
#97Re: CSS Minecraft
#98If anyone's wondering how it manages the state, a quick peek into the source code shows that it uses radiobuttons and the HTML contains all the blocks you could ever possibly place.
Re: CSS Minecraft
#99I got "Bandwidth Quota Exceeded"
Re: CSS Minecraft
#100I got "Bandwidth Quota Exceeded"