summaryrefslogtreecommitdiff
path: root/src/layer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layer.rs')
-rw-r--r--src/layer.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/layer.rs b/src/layer.rs
index efecd89..c9f32e8 100644
--- a/src/layer.rs
+++ b/src/layer.rs
@@ -23,6 +23,12 @@ impl Layer {
}
}
+ pub fn update(&mut self) {
+ for tile in self.tiles.iter_mut() {
+ tile.update();
+ }
+ }
+
pub fn draw(&self, spritebatch: &mut SpriteBatch) {
for tile in self.tiles.iter() {
tile.draw(spritebatch);