From ca8dbe135034f7a72b6b40f6dfd7b772bd51cc39 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 9 Sep 2017 06:17:37 +0200 Subject: Started Camera rework --- not/World.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'not/World.lua') 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 -- cgit v1.1