6 releases

0.1.23 Apr 24, 2020
0.1.22 Mar 11, 2020
0.1.2 Feb 27, 2020

#1603 in Game dev

25 downloads per month

MIT license

400KB
2.5K SLoC

Rust 2K SLoC // 0.1% comments GLSL 265 SLoC // 0.0% comments

gui (name temporary)

Work in progress. Here is a screen-shot of a game being developed with gui. Image

License

MIT


lib.rs:

fumarole is a simple engine for simple games and gui applications alike. It uses glium for rendering, and it is quite efficient size it's a 2d engine and draws everything in the same draw call.

Example

extern crate fumarole;

use fumarole::*;

struct Test {
    x: f32
};

impl State for Test {
    fn draw(&self, frame: &mut Frame, _data: &StateData) {
        frame.rect()
            .position(Vec2::new(self.x, 0.0))
            .draw();
    }
}

fn main() {
    Application::new()
        .run(|_loader| {
            Box::new(Test {
                x: -1.0
            }) 
        });
}

Dependencies

~10–20MB
~276K SLoC