From 007165ba6684324102b124a7422aa84897a0df37 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Mon, 27 Jul 2020 11:37:35 -0400 Subject: [PATCH] Use classic first map --- src/constants.rs | 4 ++-- src/main.rs | 20 +++++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/constants.rs b/src/constants.rs index 2aa0f5c..abd3715 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -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; diff --git a/src/main.rs b/src/main.rs index 8db44f5..81ba3a9 100644 --- a/src/main.rs +++ b/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());