playdate-sprite

Crates.ioplaydate-sprite
lib.rsplaydate-sprite
version0.2.11
sourcesrc
created_at2023-09-10 16:34:22.30767
updated_at2024-05-30 09:37:34.747761
descriptionHigh-level sprite API built on-top of Playdate API
homepagehttps://github.com/boozook/playdate
repositoryhttps://github.com/boozook/playdate.git
max_upload_size
id968904
size112,265
Alexander Koz. (boozook)

documentation

README

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.

Commit count: 445

cargo fmt