I have a 300 line script for an item menu system. Before I spend another week debugging and polishing it, I need to know if Godot has a simpler, more efficient way. Possibly with less CPU usage?
It works like this:
You have a grid of slots and rectangles representing items of different sizes. You only get what you can cram into the grid you are given.
![](https://i.imgur.com/Hc4vhSr.gif)
If you want to see the script, that might take a moment. You will probably die of several strokes seeing it in its current state.