dungeon-game/src/game.rs

35 lines
539 B
Rust
Raw Normal View History

2021-12-18 12:22:46 -06:00
use pancurses::Window;
pub struct Dungeon {
main_branch: DungeonBranch,
}
pub struct DungeonBranch {
config: BranchConfig,
levels: Vec<DungeonLevel>,
}
pub struct BranchConfig;
pub const LEVEL_SIZE: (usize, usize) = (80, 24);
pub struct DungeonLevel {
tiles: [[DungeonTile; LEVEL_SIZE.1]; LEVEL_SIZE.0],
}
pub enum DungeonTile {
Floor,
Wall,
Hallway,
}
impl DungeonLevel {
pub fn new(cfg: &BranchConfig) -> Self {
todo!()
}
pub fn draw(&self, win: &Window) {
todo!()
}
}