Math Blog
This week, within game development, the game jam was extended. Due to this, this week I pivoted back to coding to be able to make as much progress on the code for the project as possible.
My main goal for the week was to get the UI and code for each stage working and finished. This involved using Boolean algebra (Standard: Algebra and Functions) to make the logic that determines how to spawn the tetrominos that the player places down in order to increase their score. I used Boolean algebra in this way by creating multiple If-Else statements that determined which marker to set the tetrominos placement to, which tetrominos to deactivate in order to place new ones down, and how the placed and deactivated tetrominos may affect the player’s score.
(A Line, T, Z, and Square tetromino, respectively)
Along with this, I had used an understanding of 2D space (Standard: Geometry) to be able to create the game’s UI, and have it function correctly. I used Geometry in this way to be able to signal within the code where players are clicking, and if the code should spawn new items, tetrominos, or power-ups if the player clicked on the respective UI or button area.

(The game’s UI within the Godot editor)
Leave a comment