summaryrefslogtreecommitdiffhomepage
path: root/not/World.lua
diff options
context:
space:
mode:
Diffstat (limited to 'not/World.lua')
-rw-r--r--not/World.lua15
1 files changed, 0 insertions, 15 deletions
diff --git a/not/World.lua b/not/World.lua
index 4e5b52f..730f696 100644
--- a/not/World.lua
+++ b/not/World.lua
@@ -205,13 +205,6 @@ function World:addLayer (width, height)
end
-- TODO: Standardize `create*` methods with corresponding constructors. Pay attention to both params' order and names.
-function World:createPlatform (x, y, polygon, sprite, animations)
- local p = Platform(animations, polygon, x, y, self, sprite)
- table.insert(self.entities, p)
- p.layer = self.layers.platforms
- return p
-end
-
function World:createNaut (x, y, name)
local h = Player(name, x, y, self)
table.insert(self.entities, h)
@@ -219,14 +212,6 @@ function World:createNaut (x, y, name)
return h
end
--- TODO: Sprites' in general don't take actual Image in constructor. That is not only case of Decoration.
-function World:createDecoration (x, y, sprite)
- local d = Decoration(x, y, self, sprite)
- table.insert(self.entities, d)
- d.layer = self.layers.decorations
- return d
-end
-
function World:createEffect (name, x, y)
local e = Effect(name, x, y, self)
table.insert(self.entities, e)