rustle-bird 0.1.0

A FlappyBird game implemented in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use bracket_lib::terminal::{main_loop, BError, BTermBuilder};
use rustle_bird::{config::CONFIG, state::State};

fn main() -> BError {
    let context = BTermBuilder::vga(CONFIG.width, CONFIG.height)
        .with_title("Rustle Bird")
        .with_vsync(true)
        .with_automatic_console_resize(false)
        .with_fps_cap(60.)
        .build()?;

    main_loop(context, State::default())
}