forked from tutorials/rust-sokoban
Use classic first map
This commit is contained in:
parent
5b94a0d5a9
commit
007165ba66
@ -1,3 +1,3 @@
|
||||
pub const TILE_WIDTH: f32 = 32.0;
|
||||
pub const MAP_WIDTH: u8 = 8;
|
||||
pub const MAP_HEIGHT: u8 = 9;
|
||||
pub const MAP_WIDTH: u8 = 22;
|
||||
pub const MAP_HEIGHT: u8 = 11;
|
||||
|
20
src/main.rs
20
src/main.rs
@ -78,15 +78,17 @@ impl event::EventHandler for Game {
|
||||
|
||||
pub fn initialize_level(world: &mut World) {
|
||||
const MAP: &str = "
|
||||
N N W W W W W W
|
||||
W W W . . . . W
|
||||
W . . . BB . . W
|
||||
W . . RB . . . W
|
||||
W . P . . . . W
|
||||
W . . . . RS . W
|
||||
W . . BS . . . W
|
||||
W . . . . . . W
|
||||
W W W W W W W W
|
||||
N N N N W W W W W N N N N N N N N N N N N N
|
||||
N N N N W . . . W N N N N N N N N N N N N N
|
||||
N N N N W BB . . W N N N N N N N N N N N N N
|
||||
N N W W W . . BB W W W N N N N N N N N N N N
|
||||
N N W . . BB . . BB . W N N N N N N N N N N N
|
||||
W W W . W . W W W . W N N N N N W W W W W W
|
||||
W . . . W . W W W . W W W W W W W . . BS BS W
|
||||
W . BB . . BB . . . . . . . . . . . . . BS BS W
|
||||
W W W W W . W W W W . W P W W W W . . BS BS W
|
||||
N N N N W . . . . . . W W W N N W W W W W W
|
||||
N N N N W W W W W W W W N N N N N N N N N N
|
||||
";
|
||||
|
||||
load_map(world, MAP.to_string());
|
||||
|
Loading…
Reference in New Issue
Block a user