| Crates.io | baba |
| lib.rs | baba |
| version | 0.2.1 |
| created_at | 2024-07-20 18:33:19.654682+00 |
| updated_at | 2024-07-26 03:13:38.883629+00 |
| description | Extremely simple library for games, inspired by love2d and raylib |
| homepage | |
| repository | https://github.com/rniii/baba |
| max_upload_size | |
| id | 1309676 |
| size | 79,193 |
Extremely simple library for game development, inspired by love2d and raylib.
Its main goal is to provide a robust base for games of any complexity. It is currently built on top of SDL2, which already has widespread usage and supports a huge variety of systems.
fn main() -> baba::Result {
baba::run("My game", MyGame::update)
}
impl MyGame {
fn update(&mut self) {
// Update your game logic and draw onto the screen!
gfx::clear(Color::WHITE);
}
}
Drawable apiCanvas apiepaint? both?input::is_key_down etc