summaryrefslogtreecommitdiffhomepage
path: root/not/World.lua
diff options
context:
space:
mode:
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