use rustraight::prelude::*;
const WINDOW_WIDTH: u16 = 800;
const WINDOW_HEIGHT: u16 = 600;
const SCREEN_WIDTH: u16 = 320;
const SCREEN_HEIGHT: u16 = 240;
fn main() {
let mut window = Window::default();
window.title("ゲーム");
window.size(WINDOW_WIDTH, WINDOW_HEIGHT);
window.screen_size(SCREEN_WIDTH, SCREEN_HEIGHT);
window.resizable(true);
window.vsync(true);
window.decorations(true);
window.transparent(false);
window.init();
window.font_size(16);
while window.advance_frame() {
window.screen_clear();
window.screen_draw_text(0, 0, format!("経過秒数: {:.3}", window.elapsed_time()), Color::WHITE);
}
free_all_sounds();
free_all_graphs();
}