X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fmain.rs;h=217918c3b85ff2bcab1d972f722bfc1874588c0c;hb=fea68d56aa10f9e91f922323676ef7ff468340f6;hp=31f9d3b823acc128f2d5659160577062f8401a7a;hpb=6edafdc0938ce553fc8976b253f3f009309817c1;p=kaka%2Frust-sdl-test.git diff --git a/src/main.rs b/src/main.rs index 31f9d3b..217918c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,10 +30,10 @@ fn main() { println!("starting..."); 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(); + .build() + .unwrap(); app.load_sprites(&[ ("block", "res/block.bmp"), ("mario", "res/mario-trans.png"),