AdamsLair / duality

a 2D Game Development Framework
https://adamslair.github.io/duality
MIT License
1.41k stars 290 forks source link

Tilemap: Magic Wand Tool #613

Open ChristianGreiner opened 6 years ago

ChristianGreiner commented 6 years ago

Summary

It would be useful to have a new tilemap tool called Magic Wand. The Magic Wand tool allows selection of connected areas filled with the same tile.

Example: Large Gif

Analysis

ilexp commented 6 years ago

Since the tilemap editor currently does not have a concept of tile selection at all, and the example seems to be flood fill, I'm not sure where we would be going with this. Can you elaborate on the intended workflow behind this from a user perspective?

ilexp commented 6 years ago

Pinging @ChristianGreiner for info.

ChristianGreiner commented 6 years ago

Sorry, I didn't noticed your ping. So from user perspective you could select area with this tool and copy, move, delete or cut these selected tiles.

What I just noticed is that we probably have to do some more work for tile manipulation, like moving a selected area freely to an other position (with visual feedback), etc.

Like you said the editor has no concept of tilemap selection. So we should bring up a new issue for that whole tilemap Selection and manipulation thing?

What so u say?

ilexp commented 6 years ago

So we should bring up a new issue for that whole tilemap Selection and manipulation thing?

Sounds good! Maybe you can outline what we can gain with a selection mechanic, potential use cases, as well as a rough proposal on how to approach the topic?

Since the magic wand selection issue can't be done until there is a selection mechanic, please adjust the issue summary with a "dependency" link to the selection issue once it exists.

ChristianGreiner commented 6 years ago

@ilexp Yes I will do, when I have more time. 👍