13 const SCREEN_WIDTH: u16 = 1280;
14 const SCREEN_HEIGHT: u16 = (SCREEN_WIDTH as f64 * (1440.0 / 2560.0)) as u16;
17 println!("starting...");
18 let mut app = App::new()
19 .with_resolution(SCREEN_WIDTH, SCREEN_HEIGHT)
20 .with_state(Box::new(ActiveState::new((SCREEN_WIDTH as u32, SCREEN_HEIGHT as u32))))
21 .with_title("SDL test")
24 app.load_sprites(&[("block", "res/block.bmp"), ("mario", "res/mario-trans.png")]);