Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If 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.


If anyone is equally curious how the camera state works, it looks like the camera is controlled by running animations when a button is in its :active state and pausing them otherwise.


I... you're right. I was wondering why the world was only 9x9x9, there's 46k lines showing each block can have air, stone, grass, dirt, log, wood, leaves, or glass.

I kind of like it.


Radio buttons and checkboxes really are magic when it comes to doing neat things in pure CSS. We used to have a lot of neat stuff like pure html/css tabs and toggles but they didn't pass an accessibility audit.


That is the most hacky solution I may have ever seen in a CSS demo. I love it.


It's always radio buttons, every single time




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: