X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fmain.rs;h=31f9d3b823acc128f2d5659160577062f8401a7a;hb=6edafdc0938ce553fc8976b253f3f009309817c1;hp=fdd36da9ff458b27570fcd0d27f5441e6fd61a86;hpb=1e322944b05e76544fb6a5f541a517aedb2c4800;p=kaka%2Frust-sdl-test.git diff --git a/src/main.rs b/src/main.rs index fdd36da..31f9d3b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,7 +28,12 @@ const NS_PER_FRAME: u32 = 1_000_000_000 / FPS; fn main() { println!("starting..."); - let mut app = App::new(); + let mut app = App::new() + .with_resolution(SCREEN_WIDTH as u16, SCREEN_HEIGHT as u16) + .with_fps(60) + .with_state(Box::new(ActiveState::new())) + .with_title("SDL test") + .start(); app.load_sprites(&[ ("block", "res/block.bmp"), ("mario", "res/mario-trans.png"),