Chuột

Chuột is an AGPL licensed and opinionated game engine for 2D pixel-art games built in Rust.

Example usage

use chuot::{Config, Context, Game};

/// Define a game state.
struct MyGame;

impl Game for MyGame {
    /// Update the game, handle input, move enemies, etc.
    fn update(&mut self, ctx: Context) {
        // ..
    }

    /// Render the game.
    fn render(&mut self, ctx: Context) {
        // Load a text asset and draw it
        ctx.text("font", "Hello world!")
            // Draw the text on the screen
            .draw();
    }
}

fn main() {
  let game = MyGame;

  game.run(chuot::load_assets!(), Config::default());
}

Support Palestine