Release 2.8.0 - revamped animation engine
This release doesn't introduce new features, but enhances existing ones.
New animation engine
Prior to this release, animation engine was a globally slotted one, in the same way as sprites or layers. Each animation of any kind required a slot that had to be managed. That was tricky with tileset animations, where slots had to be allocated beforehand without having knowledge of how many slots was going to need. This was cumbersome to say the least.
No more.
Sprite and tileset animations are self sustained: they don't use slots anymore, using them is straightforward:
* Tileset animations are started automatically when setting up a layer that has animated tileset
* Sprite animation just require the index of sprite to animate.
* Tilemap animations were a legacy feature don't used anywhere, removed
* Slotted animations are now only used by palette animations (color cycles).
This of course has some minor breaking API changes to the animation system:
* Removed `TLN_SetTilesetAnimation()` and `TLN_SetTilemapAnimation()`.
* Removed parameter "index" from `TLN_SetSpriteAnimation()`, requires only sprite number.
* Replaces `TLN_DisableAnimation()` with `TLN_DisablePaletteAnimation()` and `TLN_DisableSpriteAnimation()`
Improved sequence support
Now it's possible to have a tileset animation where one of the frames can be the same as the tile being animated, it's usual to do this way by map creators. You can now do this:
47 <- [47, 49, 50, 53]
In this example, tile 47 is both the tile being animated, and one of the frames of the animation.
Enhanced asset packer support
Previous version of asset packager format had a flaw where improbable -but possible- hash collisions weren't handled properly. That could lead to loading a different asset than intended. ResourcePacker has been updated without this flaw, and its loader is now integrated in this release. I also allows unlimited password length. Upgraded packer can be downloaded at itch.io: https://megamarc.itch.io/resourcepacker
Enhanced .tmx loader
It now supports up to 64 layers per .tmx file, and tilesets are cached. If multiple layers use the same tileset, only one copy of the tileset is loaded and animated, shared between all the tilemaps using it.
Updated examples
All examples are updated to be compliant with the new API changes. In addition "forest" sample now accepts optional command-line parameters to load assets from password-encrypted asset pack.
Files
Get Tilengine
Tilengine
2D retro grapics engine with true raster effects for creating 8/16 bit style games
More posts
- Tilengine 2.15.2 releasedAug 29, 2023
- Tilengine 2.15 releasedApr 22, 2023
- Tilengine 2.14: new SNES-style layer windowFeb 10, 2023
- Tilengine 2.13 with per-tile palette selectorNov 12, 2022
- Tilengine 2.12 released: Tile & sprite 90º rotationNov 01, 2022
- Feature preview: tile & sprite 90º rotationOct 30, 2022
- Tilengine 2.11.3 bugfix releasedOct 30, 2022
- Tilengine 2.11.0 releasedOct 03, 2022
- Tilengine 2.10.0 releasedSep 30, 2022
- Preview of new CRT effectAug 21, 2022
Leave a comment
Log in with itch.io to leave a comment.