Introduce Custom Tileset Data Tags #365

Open
ilexp opened this Issue Aug 9, 2016 · 0 comments

Projects

None yet

1 participant

@ilexp
Member
ilexp commented Aug 9, 2016

Summary

Right now, there is no builtin way that allows users to specify additional data layers for a Tileset. It would be nice if there was a convenient was to specify data tags for groups of tiles.

Workaround

  • Users can already specify additional data in an array and index it using the tile index.
  • This, however, is not very usable.

Analysis

  • Add an additional TilesetEditorMode where any number of custom data layers can be specified.
  • Each layer, when selected, allows the user to specify a tag object in the Object Inspector.
  • For each layer, the tileset view allows to specify all the tiles that will be tagged.
  • The TilesetCompiler will generate one output layer for each input layer.
  • A Tileset should specify API for conveniently retrieving tags for a tile, or all tiles of a certain tag layer.
  • Note: It might be a good idea to specify that target API first in this case.
@ilexp ilexp added this to the General Improvements milestone Aug 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment