I made a CSS-only Minecraft clone again... But this time in 3D! No JavaScript here either, just 40,000 lines of auto-generated HTML radio buttons and labels combined with some CSS :has() magic. Play the game: https://t.co/OcZLRc4FCL View the source code: https://t.co/KDAk5zJZmf
10
38
207
Replies
@Benjamin_Aster I love the novelty of this. It won't scale as it will with WebGL of course, but so neat. I wish CSS had that power. The CSS Shaders spec would have been profound for HTML+CSS, before it was canceled.
1
0
1
@trusktr Yeah it's really just an esoteric proof-of-concept. I think CSS Custom Shaders are too specific of a use-case to be implemented by browsers. Maybe the DOM-in-canvas API that the Chromium team seems to be working on will be the "future" of this? https://t.co/QqpkmoNS1J
1
0
3
@Benjamin_Aster I fucking love this so much. This will be the defacto example I pull up when I say “HTML+CSS is turing complete”
0
0
1
@Benjamin_Aster The question is, would this work inside an email? Like could you send me this to my mailbox and I could play it in Gmail? Would that be possible?
0
0
0
@Benjamin_Aster @OrionReedOne Seriously now, all you have to do is spend half a day implementing WASD and a little fake gravity. I won't tell you again.
0
0
0