39 releases

0.17.2 Jan 23, 2024
0.17.0 Dec 1, 2023
0.16.0 Nov 11, 2023
0.14.0 Nov 8, 2022
0.5.0 Jul 24, 2020

#188 in Game dev

Download history 21/week @ 2024-01-22 17/week @ 2024-02-19 56/week @ 2024-02-26 14/week @ 2024-03-11 254/week @ 2024-04-01

268 downloads per month
Used in 4 crates

MIT license

530KB
10K SLoC

Geng

Game ENGine for Rust Programming Language

https://geng.kuviman.com

Examples

You can see examples in examples directory. You can also see them in action on the website.

Games made using geng

The engine is used by me and friends to mostly make little game jam games. You can check out some on my itch page.


lib.rs:

geng (Game ENGine) is an engine for Rust Programming Language.

Quick start

More examples are available here.

use geng::prelude::*;

fn main() {
    logger::init();
    geng::setup_panic_handler();
    Geng::run("Application Name", |geng| async move {
        let mut events = geng.window().events();
        while let Some(event) = events.next().await {
            if let geng::Event::Draw = event {
                geng.window().with_framebuffer(|framebuffer| {
                    ugli::clear(framebuffer, Some(Rgba::BLACK), None, None);
                });
            }
        }
    });
}

Dependencies

~28–71MB
~1M SLoC