4 ms·
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
by experiment0 14y ago
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!
- deleted 14y ago[deleted]
- antirez 14y agoYes, 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.
- andrewmunsell 14y agoOk, that's pretty cool :P
- petercooper 14y agoI've recorded a video explaining how it works: https://www.youtube.com/watch?v=WaZvDCmlERc https://www.youtube.com/watch?v=WaZvDCmlERc
- barredo 14y agoWondeful
- gameshot911 14y agoThis was incredibly helpful - thank you.
- JungleGymSam 14y agoGreat. Good humor too.
- cominatchu 14y agowell done, thank you
- dirkk0 14y agoGreat - thank you! (also thanks for your newsletters)