How to add this library to your project.
-
Download the
AnimatedSprite.lua
file.
-
Move the file into your project folder.
-
Copy the path to the file.
-
Import the library with this path:
import "<Path To The File>"
import "AnimatedSprite.lua"
Using toybox.py
-
You can install this library to your Playdate project via toybox.py, by going to your project folder in a Terminal window and typing:
toybox add AnimatedSprite toybox update
-
Then, if your code is in the
source
folder, just import the following:import '../toyboxes/toyboxes.lua'
If missing, add the following code
to your playdate.update()
function:
playdate.graphics.sprite.update()