karl-zylinski / odin-raylib-hot-reload-game-template

An Odin + Raylib game template with Hot Reloading pre-setup
MIT License
150 stars 18 forks source link

Atlas builder - support for repeat and loop dir properties of animation tags #13

Closed MarcinKuder closed 1 month ago

MarcinKuder commented 1 month ago

Added generation of 'repeat' count and 'loop_direction' to fully support Aseprite's tag properties. This can be useful for example to play some animations once (e.g. death animation).

obraz

This will now generate the following code: obraz

.. and it can be used in animation_update like this: obraz

I've also extracted generated package name and input texture folder into constants for easier change.

karl-zylinski commented 1 month ago

Thanks a bunch! Great feature