5 ms·
1k minecraft
- VieElm 12y agoThe creator wrote up a blog post on his entry: http://birdgames.nl/2014/04/js1k-post-mortem-minecraft/ http://birdgames.nl/2014/04/js1k-post-mortem-minecraft/ Lots of very interesting details, but surprised to see setInterval instead of requestAnimationFrame
- deleted 12y ago[deleted]
- emsy 12y agomaybe because it saves a few bytes? I don't think performance advantages were the reason.
- bshimmin 12y agoImpressive! I can't help but love things like this, if for no reason other than that it makes programmers look like bona fide magicians (and thus justifies exorbitant day-rates).
- libria 12y agoSort of. Every field has its wizards and it’s usually easy to tell them apart from the apprentices.
- monk_e_boy 12y agoDoesn't work in FF 33.1.1 on windows 8 -- each line of the image/video is shifted so the result looks \\\\\\\
- debacle 12y agoIt's working for me in FF 33.1.1 on Windows 7.
- simonbh 12y agoit also works for in in FF 3.1.1 in Arch Linux
- tech-no-logical 12y agosame on FF34 / win 7. added image : http://imgur.com/9xK3JoK http://imgur.com/9xK3JoK
- im3w1l 12y agoWorking for me on FF 33.1 win 8 EDIT: and FF 33.1.1
- frtab 12y agoSame for me on Iceweasel 31.2.0 on Debian
- networked 12y agoVery nice! The texturing and lighting are what really makes this demo. Unfortunately, it only displays correctly for me in Firefox Developer Edition, not FF 33.0, in which the picture is skewed: http://i.imgur.com/7i74m36.jpg http://i.imgur.com/7i74m36.jpg. If you're into tiny cube-based 3D engines also have a look at this demo for the Lobster programming language (http://strlen.com/lobster http://strlen.com/lobster): http://i.imgur.com/ZZWFkXn.jpg http://i.imgur.com/ZZWFkXn.jpg. Its entire source code fits in the screenshot.
- acomjean 12y agoFWIW, Firefox 33.1 (Mac) seems to work fine....
- linuxlizard 12y agoDagnabbit. 33.1.1 not working for me. Chrome works. (OSX 10.9.5)
- jstanek 12y agoFF 33.1 on Windows 8.1 isn't working for me either.
- kazinator 12y ago"tiny cube-based" -- is that the same as "voxel based"?
- 12y ago
- comrh 12y agoIf I remember correctly the lava is the hardest thing to efficiently render, correct? Cool regardless.
- talmand 12y agoWhy would it be any more difficult than rendering the water?
- comrh 12y agoLight comes off of it. So it moves, flows and such like the water but it also has to render the lighting effects relative to all that. I could be wrong though, I know the water is difficult to render as well.
- simias 12y agoI haven't looked at the code of this demo but it seems there's no dynamic lighting at all, the "lighting" of the face of each cube depends only on which side it's facing as far as I can tell. You can see that the underside of trees is pretty luminous for instance.
- sz4kerto 12y agoNice - though I must say this kind of graphics (with music..) was done in similarly sized 1k/4k assembly demos -- https://www.youtube.com/watch?v=G1Q9LtnnE4w https://www.youtube.com/watch?v=G1Q9LtnnE4w
- Jare 12y agoFormally speaking, both Descent and Minecraft (inspirations for each respective intro) are based on cubes, but I don't think there are many more similarities. In any case, thanks for that blast from the past!
- Aardappel 12y agoThis one in Lobster, roughly the same amount of code, no textures, but is interactive (you can actually mine & build): http://i.imgur.com/ZZWFkXn.jpg http://i.imgur.com/ZZWFkXn.jpg
- akx 12y agoWhat are the sizes of `vec.lobster` and `3dhelpers.lobster` though...
- leeluolee 12y agoIncredible!!
- FraKtus 12y agoMany other are sweet, this one uses WebGL and is very nice http://js1k.com/2014-dragons/demo/1868 http://js1k.com/2014-dragons/demo/1868 (tested on Chrome)...
- sysk 12y agoI wonder if a few bytes could be saved by encoding the source in 7bit ascii, decoding and running through eval. Not sure if that makes sense.
- unwind 12y agoI don't think 7-bit ASCII behaves the way you think. It's typically the same 8-bit bytes but with the most significant bit clear. So, there's no saving to be had, it doesn't "contract" the bits across neighboring bytes.
- sysk 12y agoYes but that's exactly what I meant. ASCII wastes 1 bit by character (the 8th bit isn't used). What if the source was encoded in such a way that it is "contracted" (the unused bit of the first character is the first bit of the second character, etc). Sorry for the 3 days late reply. The decoding function would have to be very small to make it worth it though.
- iaw 12y agoI don't think I've ever seen this site before. It's fantastic