03-16-2021, 08:27 AM
Hi folks,
I've just pushed Release 2.9.0 to GitHub. 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 parallaxing 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.
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
"Classic" mode continues working, so old samples and projects won't break, but new ones can benefit from this "world" feature.
I've just pushed Release 2.9.0 to GitHub. 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 parallaxing 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.
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
"Classic" mode continues working, so old samples and projects won't break, but new ones can benefit from this "world" feature.