Can Playdate play GIF's?

I am thinking of trying something different with playdate. However to get it to work i need to know if playdate can run gif’s. Thanks.

No, it uses its own image format.

You would have to convert a gif to a sprite sheet and hook up the animation yourself. Easy enough if the GIF has uniform timings between frames.

And of course remember the Playdate graphics are black and white so you’d also need to get your images into that number of colours. Many ways to do this.

Playdate can load the frames of an animated GIF into successive images in an image table (see the playdate.graphics.imagetable.new() constructor), but it does not play them back automatically. You would need to do that in your own code.

3 Likes

I missed that we can load GIF natively. Thanks Greg!

1 Like