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

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.



Ok, that's pretty cool :P


I've recorded a video explaining how it works: https://www.youtube.com/watch?v=WaZvDCmlERc


This was incredibly helpful - thank you.


Great - thank you! (also thanks for your newsletters)


Wondeful


Great. Good humor too.


well done, thank you




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

Search: