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
57 downloads per month
Used in 4 crates
530KB
10K
SLoC
Geng
Game ENGine for Rust Programming Language
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