Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Update 02: Making movable blocks

Just spent an hour trying to code how the tetrominoes move. The idea is that you click on a tetromino to pick it up and put it down. I have a simple state machine for each tetromino that, when it's in the "move" state, updates the position of its component blocks to its new relative position to the mouse.

Anyway, just finished my first pass at the code. Let's see how I did!

puzzle wizard 02

first attempt at movable blocks

ah,