From 0438244915f9116237cc706e5e80ecedfbc7d591 Mon Sep 17 00:00:00 2001 From: tom barrett Date: Fri, 21 Jun 2019 12:00:24 -0500 Subject: cannot leave map boundry --- src/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 4962c39..b0a497c 100644 --- a/src/state.rs +++ b/src/state.rs @@ -28,7 +28,7 @@ impl State { tileset: Tileset::new(filesystem::open(context, "/tileset.tsx")?), spritebatch: SpriteBatch::new(image), camera: Camera::new(context, map_dimensions), - player: Player::new(), + player: Player::new(map_dimensions), }) } } -- cgit v1.2.3