Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Support non-rectangular shapes #203

Open
pakoito opened this issue May 1, 2024 · 2 comments
Open

[Request] Support non-rectangular shapes #203

pakoito opened this issue May 1, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@pakoito
Copy link

pakoito commented May 1, 2024

For a puzzle-like inventory in my game I'd like to have support for shapes that are not rectangles (or squares), such as

OO
O
OO

or

O
OO
OOO
OO
O
@peter-kish
Copy link
Owner

peter-kish commented May 1, 2024

Hi! This has been requested in the past, but unfortunately I don't see it happening any time soon.
It would require a redesign of some major parts of the code, which is not really doable before a major release (v3.0.0). And even then, I'm afraid it wouldn't be in line with the concept of the plugin, which is to quickly make generic inventory systems (while this feature is quite exotic).

P.S. I'll keep this request open in case it somehow does turn out to be easily implementable somewhere after v3.

@peter-kish peter-kish added the enhancement New feature or request label May 1, 2024
@TheYellowArchitect
Copy link
Contributor

TheYellowArchitect commented Sep 25, 2024

As a workaround, I suggest making an item which cannot be picked up or moved etc, and placing it at positions to form non-rectangular shapes.

As for v3+ version, given there is support for various item height/widths, the game mechanic of restricting space becomes deeper by allowing non-rectangular inventories, so its a good addition - basically allows for all kinds of puzzle games.
A quick idea I got even from non-puzzle games, is that in a combat-focused dungeon crawler, some enemy (e.g. goblin) rips your bag, and so, you get some holes/gaps in your inventory. A simple mechanic which forces you to optimize your inventory, yet the game isnt a puzzle game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants