top of page

Adaptive Tetris Inventory System

I've created an inventory system that makes managing objects fun! No more static grids: this system transforms your storage space into a mini puzzle. The principle is simple: objects come in various shapes, and you have to rotate them to fit them together perfectly, maximizing every inch of space.

How it works

The Objects

    - Role: They are the pieces of the puzzle.

​

    - Functionality: Each object is an entity with a configurable and variable shape (its matrix). They can be picked                   up, moved, and rotated by the player.

​

The Inventory Component (The Brain)

    - Role: It manages the logic of space.

​

    - Functionality:

         - Smart Storage: When you pick up an object, it automatically searches for the first available space and stores                  it there.

         - Memory: It remembers the exact location, size, and, most importantly, the rotation of each object it                                    contains.

​

The Inventory Interface (The Screen)

    - Role: It acts as an intermediary between you and the logic.

​

    - Functionality: The interface clearly displays the information received from the inventory component and                         translates your actions (clicking, dragging, rotating) so that the Inventory Component can update its storage logic.

bottom of page