9 releases

0.1.0 May 10, 2024
0.0.132000000001 May 19, 2024
0.0.15 Jun 8, 2024

#137 in Graphics APIs

Download history 255/week @ 2024-05-08 472/week @ 2024-05-15 153/week @ 2024-05-22 63/week @ 2024-05-29

943 downloads per month

MIT/Apache

59KB
1.5K SLoC

Rust Game Framework

Will eventually contain:

  • Utility for rendering (todo)
  • ECS (todo)
  • Rapier physics engine integration(collisions, rigidbodies, etc)?
  • This list most likely update frequently as soon as i'm still active on this project

As of now, the crate aims to prioritize simplicity.

Example usage:

use tiny_game_framework::{Circle, EventLoop, Renderer, Vector2D, Vector3D, Vector4D};

fn main() {
    let resolution = Vector2D::new(500., 500.);
    let mut el = EventLoop::new(resolution.x as u32, resolution.y as u32);
    let mut renderer = Renderer::new();

    let c = Circle::new(16, Vector3D::ZERO, 0.1, resolution, Vector4D::new(1., 1., 1., 1.));
    c.add_to_renderer("my mesh", &mut renderer);

    while !el.window.should_close() {
        el.update();

        unsafe {
            renderer.draw();
        }
    }
}

Dependencies

~17–23MB
~370K SLoC