You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating maps for certain systems (GBA and Nintendo DS hardware maps in particular, though there may be others) it would be useful to have support for placing tiles on the map in horizontally and vertically flipped orientations. This allows more versatile use of a smaller tileset as it's not necessary to have additional images in the tileset to represent different orientations. This wouldn't be a property of the tiles themselves, but a property of tile instances on the map (i.e. the same tile could be placed on the map, in different positions, in flipped and non-flipped orientations)
This commit changes the TileLayer class to store Cell instances rather
than directly referring to Tile*. The Cell class contains the Tile* plus
information on whether the tile is horizontally or vertically flipped.
The MapReader and MapWriter have been adapted to store and restore the
flipped state as flags in the last bits of the global IDs (this means
older Tiled versions will refuse to load maps with flipped tiles).
The OrthogonalRenderer and IsometricRenderer have been adapted to render
the flipped tiles correctly.
This implements the first part of issue #3
Sponsored-by: Zipline Games, Inc.
When creating maps for certain systems (GBA and Nintendo DS hardware maps in particular, though there may be others) it would be useful to have support for placing tiles on the map in horizontally and vertically flipped orientations. This allows more versatile use of a smaller tileset as it's not necessary to have additional images in the tileset to represent different orientations. This wouldn't be a property of the tiles themselves, but a property of tile instances on the map (i.e. the same tile could be placed on the map, in different positions, in flipped and non-flipped orientations)
Explanation of the feature on Nintendo DS hardware maps: http://www.liranuna.com/nds-2d-tuts/lesson-3/
This issue replaces the following issue on the old issue tracker:
http://sourceforge.net/apps/mantisbt/tiled/view.php?id=41
The text was updated successfully, but these errors were encountered: