05-13-2020, 04:26 AM
Release 2.8.4 with following improvements:
- Deprecates old TLN_SetLayer() that required passing a NULL tileset, and replaces with new TLN_SetLayerTilemap() that just requires the tilemap
- TLN_SetLoadPath() not needed anymore: chain loading of resources being loaded from subdirectories (.tmx -> .tsx -> png)
- TLN_DrawFrame(): frame parameter can be always 0, in that case it auto-increments internally. Application doesn't need to keep track of frames just to make the animation engine work.
- Updates many samples to use current features, making them easier to follow
Code:
TLN_Tilemap tilemap = TLN_LoadTilemap("path/to/asset/tilemap.tmx", "layer");
TLN_SetLayerTilemap(0, tilemap);