Dolda2000 GitWeb
/
kaka
/
rust-sdl-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactored level generation + fixed bug with wall finding
[kaka/rust-sdl-test.git]
/
src
/
main.rs
diff --git
a/src/main.rs
b/src/main.rs
index
256cc3c
..
502789b
100644
(file)
--- a/
src/main.rs
+++ b/
src/main.rs
@@
-1,10
+1,12
@@
extern crate rand;
extern crate sdl2;
extern crate time;
extern crate rand;
extern crate sdl2;
extern crate time;
+extern crate noise;
-use game::app::*;
+use core::game::GameState;
+use core::app::*;
-mod
gam
e;
+mod
cor
e;
#[macro_use]
mod common;
mod boll;
#[macro_use]
mod common;
mod boll;
@@
-17,7
+19,8
@@
fn main() {
println!("starting...");
let mut app = App::new()
.with_resolution(SCREEN_WIDTH, SCREEN_HEIGHT)
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();
.with_title("SDL test")
.build()
.unwrap();