Similar Posts

Subscribe
Notify of
1 Answer
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Destranix
9 months ago

At fixed or random intervals, you will recover a block at a random position (or according to a pattern, depending on how you like it).

The shape of the block is randomly determined (either completely randomly or from a predetermined list of possible blocks; Or something in between).

The block then falls until it catches an already occupied field.

Parallel to the blocks, you store the condition of the field in a three-dimensional array.