korome

Crates.iokorome
lib.rskorome
version0.14.1
sourcesrc
created_at2016-02-22 20:51:54.605693
updated_at2017-01-08 05:38:13.53486
descriptionWIP game engine using glium
homepagehttps://github.com/LFalch/korome
repositoryhttps://github.com/LFalch/korome
max_upload_size
id4251
size58,432
Lucas Falch (LFalch)

documentation

https://docs.rs/korome/

README

korome

Travis Build Status AppVeyor Build Status Crates.io Licence Docs.rs

A game engine in Rust (previously Java) using glium

To use korome, add this to your Cargo.toml:

[dependencies]
korome = "0.14"

Though right now, this crate is very unstable and breaks all the time.

Documentation

Read documentation (it's lacking quite a bit at the crate level right now)

Simple Example

#[macro_use]
extern crate korome;

use korome::*;

fn main() {
    // Create a Graphics object, which creates a window with the given title and dimensions
    let graphics = Graphics::new("Example!", 800, 600).unwrap();

    // Load a texture, whose bytes have been loaded at compile-time
    let texture = include_texture!(graphics, "assets/planet.png").unwrap();

    // You can also parse other things than just a closure
    // See the documentation for `run_until_closed` and the `Game` trait
    run_until_closed(graphics, |_: &FrameInfo, drawer: &mut Drawer| {
        drawer.clear(0.1, 0., 1.);
        texture.drawer().draw(drawer);
    })
}

For more examples look in the examples.

Commit count: 196

cargo fmt