blob: 72cc9b37c0ba29c93e33d284891347334adffc5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
use std::error::Error;
use dungeon::*;
use graphics::*;
fn main() -> Result<(), Box<dyn Error>> {
// Load the window
let mut window = Window::new(720, 480, "game")?;
// Initial game state
let dungeon = Dungeon::default();
// Main game loop
while window.is_open() {
// TODO update game state
// Draw a single frame
window.renderer().draw_frame(&dungeon);
}
Ok(())
}
|