From ee8d055be8326eb1561900bcca6acd9e38071f4a Mon Sep 17 00:00:00 2001 From: tom barrett Date: Thu, 27 Jun 2019 03:31:33 -0500 Subject: tiles can now animate --- src/map.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map.rs') diff --git a/src/map.rs b/src/map.rs index dc50116..ab436d1 100644 --- a/src/map.rs +++ b/src/map.rs @@ -53,6 +53,12 @@ impl Map { } } + pub fn update(&mut self) { + for layer in self.layers.iter_mut() { + layer.update(); + } + } + pub fn get_dimensions(&self) -> (f32, f32) { ( (constants::TILE_WIDTH * constants::TILE_SCALE) * self.width as f32, -- cgit v1.2.3