Re:Notch trying jsFiddle
by experiment0 on Sunday December 02, 2012 @05:54PM
(#4862922)
Correct me if I'm wrong but does this procedurally generate the textures for each block. I can't see any code for loading assets and the init function, has some quite complicated color code. If so that is awesome!
[ Parent
| on HN ]
Yes, the procedure generates the texture of every "type" of block, the first loops after the init() function. 16 different types of blocks are generated.
Then a random map is created, with the "center" that is set to empty blocks with high probability. Finally a function traces the map on the screen at every tick of the clock.
Re:Notch trying jsFiddle
by andrewmunsell on Sunday December 02, 2012 @05:57PM
(#4862940)
Ok, that's pretty cool :P
Re:Notch trying jsFiddle
by petercooper on Sunday December 02, 2012 @08:38PM
(#4863474)
I've recorded a video explaining how it works: https://www.youtube.com/watch?v=WaZvDCmlERc
Re:Notch trying jsFiddle
by gameshot911 on Sunday December 02, 2012 @10:43PM
(#4863832)
This was incredibly helpful - thank you.
Great - thank you! (also thanks for your newsletters)
Wondeful
Re:Notch trying jsFiddle
by JungleGymSam on Monday December 03, 2012 @12:06AM
(#4864047)
Great. Good humor too.
Re:Notch trying jsFiddle
by cominatchu on Monday December 03, 2012 @12:51AM
(#4864141)
well done, thank you