Open MimiVRC opened 4 months ago
Probably, yeah. I'm seeing it as a 1D array of booleans inside an ItemType
that stores whether each cell is taken up by it.
ItemType
's shape, click to toggle cell, grid size based on item size propertiesInventory
respect shape during can_place_item
, get_free_position
, get_item_at_position
ItemStackView
respect shape for mouse input via _has_point()
GrabbedItemStackView
. Will likely create a Transform2D
to rotate, based on an extra_properties
key.ItemInstantiator
respect shape during random insertI am unfortunately unable to work on addons in the meantime. However, this is a signal that someone does need this feature, and I will add it to the list to implement.
Is it planned at all to add the ability to define the shape of something in any shape? the use case is pretty much tetris-shaped items, but if the ability is added to make tetris shaped, might as well make the ability to make it any shape, just in case someday someone wants a weird 8x8 square where it only takes up inventory slots in the 4 corners