- Title: Tetris
- Description: A tutorial/example on a Tetris game in GML
- GM Version: GM8
- Registered: No
- File Type: .gmk
- File Size: 12.6 kb
- File Link: Download
I noticed how the other Tetris examples were either dead or used objects for each Tetris piece and block. Here is another one which uses nothing but GML, executed in one single object. It uses an array of strings which holds the seven different pieces and their rotations, and another array which holds the blocks on the play field, rather than having sprites for every single piece and using objects filled with position_ and collision_ functions. The codes are also filled with comments so you know what's going on.
Feel free to edit, modify, distribute or whatever.
Edited by Davve, 18 October 2015 - 02:14 PM.