4 ms·
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
by antirez 14y ago
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.
- 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)