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

#325 in Game dev

Download history 5/week @ 2024-08-12 7/week @ 2024-08-26 15/week @ 2024-09-02 30/week @ 2024-09-09 58/week @ 2024-09-16 155/week @ 2024-09-23 22/week @ 2024-09-30 14/week @ 2024-10-14 7/week @ 2024-10-21 14/week @ 2024-10-28 16/week @ 2024-11-04 8/week @ 2024-11-18 32/week @ 2024-11-25

57 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

~19–58MB
~1M SLoC