Posted March 16, 2021 by megamarc
This release adds a new feature called World mode, where all the layers contained in a single .tmx file and any selected sprites are updated when the "world position" changes. Layers take into account the parallax factor recently introduced in Tiled editor, as well as offset values, visibility and transparency. And sprites take their "world position" and have them automatically converted into screen coordinates.
Screenshot of "forest" sample .tmx loaded in Tiled. Parallax Factor and Offset are used.
This mode simplifies greatly the setup of a whole level (just a single call). And updating the whole playfield, that previously required one call per layer and per sprite, and keeping track of their positions, now is done with another single call.
The documentation is already online, here it is the new section:
http://www.tilengine.org/doc/md_world.html
Effect of scrolling parallax layers and sprite with just TLN_SetWorldPosition():