Skip to content

Latest commit

 

History

History
65 lines (38 loc) · 1.14 KB

Installation.md

File metadata and controls

65 lines (38 loc) · 1.14 KB

Installation

How to add this library to your project.


Manually

  1. Download the AnimatedSprite.lua file.


  2. Move the file into your project folder.


  3. Copy the path to the file.


  4. Import the library with this path:

    import "<Path To The File>"
    import "AnimatedSprite.lua"

Using toybox.py

  1. 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
  2. Then, if your code is in the source folder, just import the following:

    import '../toyboxes/toyboxes.lua'

Update your code

If missing, add the following code
to your playdate.update() function:

playdate.graphics.sprite.update()