20 releases

0.3.0 Aug 24, 2024
0.2.11 May 30, 2024
0.2.10 Apr 9, 2024
0.2.9 Jan 17, 2024
0.2.8 Nov 21, 2023

#917 in Graphics APIs

35 downloads per month
Used in 2 crates

MIT/Apache

10MB
227K SLoC

Sprite API for PlayDate

High-level sprite API built on-top of playdate-sys.

Usage

use playdate_sprite::*;
use playdate_graphics::*;
use playdate_graphics::bitmap::Bitmap;

let bitmap = Bitmap::new(50, 50, Color::BLACK)?;
let sprite = Sprite::new();

sprite.set_draw_mode(BitmapDrawMode::Copy);
sprite.set_image(&bitmap, BitmapFlip::Unflipped);
sprite.move_to(CENTER_X as _, CENTER_Y as _);
sprite.add();
...

More covered in examples.


This software is not sponsored or supported by Panic.

Dependencies