-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduced horizontal and vertical flipping of tiles
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.
- Loading branch information
Showing
19 changed files
with
330 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.