diff options
author | Aki <nthirtyone@gmail.com> | 2017-01-20 13:09:53 +0100 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-01-20 13:09:53 +0100 |
commit | 7b757c58f110a577ae4a24308a2e540731ab7211 (patch) | |
tree | af9d4a7e39bc4b363d76f0118b71fb6f2d2c52b8 | |
parent | 4d3ccfdd00bdbcd144dd8d283e1d0d4e150bd9f1 (diff) | |
download | roflnauts-7b757c58f110a577ae4a24308a2e540731ab7211.zip roflnauts-7b757c58f110a577ae4a24308a2e540731ab7211.tar.gz roflnauts-7b757c58f110a577ae4a24308a2e540731ab7211.tar.bz2 |
Updating Decorations and Grounds
-rw-r--r-- | world.lua | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -231,10 +231,16 @@ function World:update(dt) self.world:update(dt) -- Camera self.camera:update(dt) - -- Nauts + -- Engine world: Nauts, Grounds (kek) and Decorations - all Animateds (top kek) for _,naut in pairs(self.Nauts) do naut:update(dt) end + for _,platform in pairs(self.Platforms) do + platform:update(dt) + end + for _,decoration in pairs(self.Decorations) do + decoration:update(dt) + end -- Clouds if self.map.clouds then -- generator |