Erlang: Writing a Tetris clone Part 2 - Gameplay mechanics

3 years ago
48

Repo: https://gitlab.com/zxq9/erltris
Blog post: https://zxq9.com/archives/1886
Explanation of an Erlang implementation of the classic puzzle game Tetris as a client-side GUI application using wxWidgets and ZX. In this video I explain how the gameplay mechanics are implemented for movement and rotation of a game piece, board locking, line clearing, board compacting and so on.

(PS: I failed to mention something really important that I had intended to cover here -- how to handle input from the GUI! Whoops! I cover this in the blog post linked above and will touch on it in the next video. Like so much of programming, it's one of those things that isn't at all hard to do but if you don't know what is going on in wxErlang it can be a real mystery to figure out for yourself. Pretty important!)

Loading comments...