dungeon-game/src/main.rs

20 lines
302 B
Rust
Raw Normal View History

2021-12-18 12:22:46 -06:00
use game::{BranchConfig, DungeonLevel};
2021-12-18 12:06:50 -06:00
use pancurses::{endwin, initscr};
2021-12-18 12:22:46 -06:00
mod game;
mod rooms;
mod util;
2021-12-18 12:22:46 -06:00
2021-12-18 11:58:33 -06:00
fn main() {
2021-12-18 12:06:50 -06:00
let window = initscr();
2021-12-18 12:22:46 -06:00
let cfg = BranchConfig;
let level = DungeonLevel::new(&cfg);
level.draw(&window);
2021-12-18 12:06:50 -06:00
window.refresh();
window.getch();
2021-12-18 12:22:46 -06:00
2021-12-18 12:06:50 -06:00
endwin();
2021-12-18 11:58:33 -06:00
}