Skip to content

Latest commit

 

History

History
95 lines (58 loc) · 2.55 KB

README.md

File metadata and controls

95 lines (58 loc) · 2.55 KB

AnimatedSprite

Badge License Toybox Compatible Latest Version

Animated sprites library for the PlayDate.




Button Installation    Button Documentation    Button Performance



Features

How the sprites class has been extended:

  • Sprite animations

  • Finite State Machine

  • JSON Configuration



Showcase

A small example how you could use it:

import 'AnimatedSprite.lua'

-- Loading imagetable from the disk
imagetable = playdate.graphics.imagetable.new('path')

-- Creating an AnimatedSprite instance
sprite = AnimatedSprite.new(imagetable)

-- Adding custom a animation state (Optional)
sprite:addState('idle',1,5,{ tickStep = 2 })

-- Playing the animation
sprite:playAnimation()


Contacts

Button Telegram    Button Discord    Button Mail