2022-02-04 14:09:48 -05:00
|
|
|
use ::bracket_lib::prelude::*;
|
2022-01-20 15:58:08 -05:00
|
|
|
|
2022-01-21 15:55:13 -05:00
|
|
|
/// The entry point
|
2022-02-04 14:09:48 -05:00
|
|
|
fn main() -> BError {
|
|
|
|
let context = BTermBuilder::simple(80, 60)
|
2022-01-20 15:58:08 -05:00
|
|
|
.unwrap()
|
|
|
|
.with_title("Roguelike Tutorial")
|
2022-02-02 09:34:20 -05:00
|
|
|
.with_font("vga8x16.png", 8, 16)
|
|
|
|
.with_sparse_console(80, 30, "vga8x16.png")
|
2022-02-03 11:46:29 -05:00
|
|
|
.with_vsync(false)
|
2022-01-20 15:58:08 -05:00
|
|
|
.build()?;
|
|
|
|
|
2022-02-10 11:54:57 -05:00
|
|
|
main_loop(context, ::tim_rogue::init_state())
|
2021-10-21 12:54:39 -04:00
|
|
|
}
|