use std::time::Duration; use minifb::{Key, Window, WindowOptions}; mod actor; mod number; mod system; const WIDTH: usize = 1600; const HEIGHT: usize = 900; fn main() { let mut buffer: Vec = vec![0; WIDTH * HEIGHT]; let mut window = Window::new( "the Hope system", WIDTH, HEIGHT, WindowOptions::default() ).unwrap(); window.limit_update_rate(Some(Duration::from_millis(16))); while window.is_open() && !window.is_key_down(Key::Escape) { window .update_with_buffer(&buffer, WIDTH, HEIGHT) .unwrap(); } }