diff options
author | tom barrett <spalf0@gmail.com> | 2019-06-27 03:31:33 -0500 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2019-06-27 03:31:33 -0500 |
commit | ee8d055be8326eb1561900bcca6acd9e38071f4a (patch) | |
tree | adc6da1976866de4b3bf436f99e6eac673af2df3 /src/map.rs | |
parent | f7bbf5646c8220bca2fbd9451d5c234049cf9225 (diff) |
tiles can now animate
Diffstat (limited to 'src/map.rs')
-rw-r--r-- | src/map.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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, |