fallahn / xygine

2D engine / framework built around SFML
218 stars 19 forks source link

Updated particle system #133

Closed fallahn closed 3 years ago

fallahn commented 3 years ago

Added the option to use simplified atlases for animated sprite particles. Only one animation is supported per particle, and all frames must be contiguous in the texture. Using the updated particle system editor, defining the frame count of the animation will automatically divide the texture, horizontally, into the requested number of frames. Alternatively non-animated particles can select a single frame at random when spawned, allowing multiple images in the atlas to be used for different particles within the same system.