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

#506 in Graphics APIs

Download history 44/week @ 2024-07-07 9/week @ 2024-08-11 134/week @ 2024-08-18 62/week @ 2024-08-25 2/week @ 2024-09-01 2/week @ 2024-09-08 19/week @ 2024-09-15 32/week @ 2024-09-22 14/week @ 2024-09-29 6/week @ 2024-10-06 10/week @ 2024-10-13

63 downloads per month
Used in 2 crates

MIT/Apache

5MB
116K 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