duality icon indicating copy to clipboard operation
duality copied to clipboard

Tilemap: Magic Wand Tool

Open ChristianGreiner opened this issue 8 years ago • 5 comments

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

  • reuse the flood fill algorithm (see #612)
  • maybe rethink the keybindings of the tilemap tools
    • Tile Brush: T instead W
    • Selection Tool: S instead Q
    • Draw Rect: R instead E
    • Flood Fill: F instead T
    • Magic Wand: W

ChristianGreiner avatar Jan 14 '18 21:01 ChristianGreiner

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 avatar Jan 14 '18 21:01 ilexp

Pinging @ChristianGreiner for info.

ilexp avatar Feb 21 '18 17:02 ilexp

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?

ChristianGreiner avatar Feb 24 '18 06:02 ChristianGreiner

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.

ilexp avatar Feb 24 '18 07:02 ilexp

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

ChristianGreiner avatar Feb 25 '18 17:02 ChristianGreiner