Many new features in our integration with Tiled, a cool open-source 2D map editor. They all can be tested by the examples/tiled/map_viewer application from the Castle Game Engine sources on GitHub.
This work is sponsored by supporters of Castle Game Engine on Patreon. You asked for a Tiled demo, it is in progress now:) Thank you for supporting the engine!
Tiled integration improvements:
-
Support Isometric, Isometric Staggered, Hexagonal maps (in addition to simple Orthogonal).
-
New properties: URL (easily load/unload the map), Origin, Scale (easily move and zoom the map), SmoothScaling, SmoothScalingSafeBorder (adjust map scaling mode). See the API documentation of TCastleTiledMapControl.
-
TCastleTiledMapControl
is nicely configurable in the CGE Editor. -
Tiled demo (in examples/tiled/map_viewer) improved a lot, designed using CGE Editor, and allows to move and scale the map, as well as adjust scaling properties.
-
Fix reading some Tiled files (support offset as float, try harder to determine proper tile size).
-
Use
BackgroundColor
optionally set in Tiled. -
TCastleTiledMapControl
is correctly influenced by UI scaling and anchors. -
Refactored some internal structures.