diff options
author | tom barrett <spalf0@gmail.com> | 2019-06-21 12:00:24 -0500 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2019-06-21 12:00:24 -0500 |
commit | 0438244915f9116237cc706e5e80ecedfbc7d591 (patch) | |
tree | 7b8e168a4e17415b4d55ae999f6c781bc48ed6c5 /src/state.rs | |
parent | 05856461f35caa0cebf8ba69cbf36132485d5488 (diff) |
cannot leave map boundry
Diffstat (limited to 'src/state.rs')
-rw-r--r-- | src/state.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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), }) } } |