X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fmain.rs;h=9195583d443f20fd831ec9ee9adfde9f37598bf5;hb=b0566120fd4a404355b6e6e1d75b472bbe3f57fe;hp=26ceadb655834bced4a6c0a40809752d172f9c53;hpb=ca99d4d7fc9e8e2dde6c4174797196f5c5a4b7e3;p=kaka%2Frust-sdl-test.git diff --git a/src/main.rs b/src/main.rs index 26ceadb..9195583 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,6 +2,7 @@ extern crate rand; extern crate sdl2; extern crate time; +use core::game::GameState; use core::app::*; mod core; @@ -17,7 +18,8 @@ fn main() { println!("starting..."); let mut app = App::new() .with_resolution(SCREEN_WIDTH, SCREEN_HEIGHT) - .with_state(Box::new(ActiveState::new((SCREEN_WIDTH as u32, SCREEN_HEIGHT as u32)))) +// .with_state(Box::new(ActiveState::new((SCREEN_WIDTH as u32, SCREEN_HEIGHT as u32)))) + .with_state(Box::new(GameState::new())) .with_title("SDL test") .build() .unwrap();