Crates.io | playdate-sprite |
lib.rs | playdate-sprite |
version | 0.3.0 |
source | src |
created_at | 2023-09-10 16:34:22.30767 |
updated_at | 2024-08-24 18:31:52.947183 |
description | High-level sprite API built on-top of Playdate API |
homepage | https://github.com/boozook/playdate |
repository | https://github.com/boozook/playdate.git |
max_upload_size | |
id | 968904 |
size | 114,180 |
High-level sprite API built on-top of playdate-sys.
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.