From d667be2b2538b22458a13efdc3aff6996e161947 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 2 Sep 2017 20:06:07 +0200 Subject: Deleted obsolete nilinitializers in World --- not/World.lua | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/not/World.lua b/not/World.lua index c73a3da..55ea1d1 100644 --- a/not/World.lua +++ b/not/World.lua @@ -3,20 +3,6 @@ -- TODO: Possibly move common parts of `World` and `Menu` to abstract class `Scene`. World = require "not.Scene":extends() -World.world =--[[love.physics.newWorld]]nil -World.Nauts =--[[{not.Hero}]]nil -World.Platforms =--[[{not.Platform}]]nil -World.Clouds =--[[{not.Cloud}]]nil -World.Decorations =--[[{not.Decoration}]]nil -World.Effects =--[[{not.Effect}]]nil -World.Rays =--[[{not.Ray}]]nil -World.camera =--[[not.Camera]]nil -World.music =--[[not.Music]]nil -World.clouds_delay = 5 -World.map =--[[config.maps.*]]nil -World.background =--[[image?]]nil -World.lastNaut = false - require "not.Platform" require "not.Player" require "not.Cloud" @@ -31,6 +17,7 @@ function World:new (map, nauts) self.world = love.physics.newWorld(0, 9.81*64, true) self.world:setCallbacks(self.beginContact, self.endContact) -- Tables for entities. TODO: It is still pretty bad! + self.lastNaut = false self.Nauts = {} self.Platforms = {} self.Clouds = {} -- cgit v1.1