summaryrefslogtreecommitdiffhomepage
path: root/not
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-02 20:06:07 +0200
committerAki <nthirtyone@gmail.com>2017-09-02 20:06:07 +0200
commitd667be2b2538b22458a13efdc3aff6996e161947 (patch)
tree8b52ab79fe36c77c96df617399048f650e6f2668 /not
parentb1cf14d64a2d3e28683db87190c4b2c7799c259d (diff)
downloadroflnauts-d667be2b2538b22458a13efdc3aff6996e161947.zip
roflnauts-d667be2b2538b22458a13efdc3aff6996e161947.tar.gz
roflnauts-d667be2b2538b22458a13efdc3aff6996e161947.tar.bz2
Deleted obsolete nilinitializers in World
Diffstat (limited to 'not')
-rw-r--r--not/World.lua15
1 files changed, 1 insertions, 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 = {}