summaryrefslogtreecommitdiffhomepage
path: root/not/World.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-09 06:17:37 +0200
committerAki <nthirtyone@gmail.com>2017-09-09 06:17:37 +0200
commitca8dbe135034f7a72b6b40f6dfd7b772bd51cc39 (patch)
tree40debe5020c49290cc05ba15ce136a4e03811018 /not/World.lua
parent11dcd305ac4bf23f6fc2ddfe878376abaddefcac (diff)
downloadroflnauts-ca8dbe135034f7a72b6b40f6dfd7b772bd51cc39.zip
roflnauts-ca8dbe135034f7a72b6b40f6dfd7b772bd51cc39.tar.gz
roflnauts-ca8dbe135034f7a72b6b40f6dfd7b772bd51cc39.tar.bz2
Started Camera rework
Diffstat (limited to 'not/World.lua')
-rw-r--r--not/World.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/not/World.lua b/not/World.lua
index 7ed5707..c086bd5 100644
--- a/not/World.lua
+++ b/not/World.lua
@@ -38,7 +38,7 @@ function World:new (map, nauts)
self:initClouds()
self:spawnNauts(nauts)
- self.camera = Camera:new(self)
+ self.camera = Camera(self)
musicPlayer:setTrack(self.map.theme)
musicPlayer:play()
@@ -212,7 +212,7 @@ function World:update (dt)
for key,entity in pairs(self.entities) do
if entity:update(dt) then
- table.remove(self.entities, key)
+ table.remove(self.entities, key):delete()
end
end