X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fmain.rs;h=a068a5842b373130a51f68acffa9084ff121b8e6;hb=14bf87a3d7d725f3e0536fdab034c0d709252ca1;hp=26ceadb655834bced4a6c0a40809752d172f9c53;hpb=3d049b501751d825314db31b7f89d607eaae3e70;p=kaka%2Frust-sdl-test.git diff --git a/src/main.rs b/src/main.rs index 26ceadb..a068a58 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,12 @@ extern crate rand; extern crate sdl2; extern crate time; +extern crate noise; +use core::game::GameState; use core::app::*; +mod teststate; mod core; #[macro_use] mod common; @@ -17,7 +20,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();