tcod 0.15.0

The Rust bindings for the Doryen library (a.k.a. libtcod).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate tcod;

use tcod::RootConsole;

fn main() {
    let mut root = RootConsole::initializer().size(80, 50).title("Minimal libtcod loop").init();

    while !root.window_closed() {
        root.flush();
        let key = root.wait_for_keypress(true);
        println!("Pressed key: {:?}", key);
    }
}