I
I
IDONTSUDO2020-03-01 20:10:20
css
IDONTSUDO, 2020-03-01 20:10:20

Complex interface, need an algorithm?

There is such a layout, this is an inventory layout from the future GTA5 mod.
5e5be9df78cbf852641469.jpeg

The difficulty is that.

1. Things must move through DragAndDrop.
2. One thing can occupy more than one cell.

Does anyone have any thoughts on how I can implement this? So that it still does not lag.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2020-03-01
@xmoonlight

In JS, using HTML and some geometry.

R
Robur, 2020-03-01
@Robur

the interface is primitive. Objects probably also only occupy rectangles. Cells of the whole cat cried.
Even if you cheat as it turns out, you won’t lag, and if you do, then you have a great talent.
What exactly is difficult for you? break the screen into cells? Or carry an object from one cell to another? both at the level of school computer science + a little reading of the documentation on canvas and drag and drop

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question