summaryrefslogtreecommitdiff
path: root/src/map.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.rs')
-rw-r--r--src/map.rs6
1 files changed, 6 insertions, 0 deletions
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,