diff options
-rw-r--r-- | not/Sprite.lua | 1 | ||||
-rw-r--r-- | not/World.lua | 15 |
2 files changed, 1 insertions, 15 deletions
diff --git a/not/Sprite.lua b/not/Sprite.lua index 33b8ac8..ec23eac 100644 --- a/not/Sprite.lua +++ b/not/Sprite.lua @@ -11,6 +11,7 @@ Sprite.frame = 1 Sprite.delay = .1 -- Constructor of `Sprite`. +-- TODO: Sprites' in general don't take actual Image in constructor. That is not only case of Decoration. function Sprite:new (imagePath) if type(imagePath) == "string" then self:setImage(Sprite.newImage(imagePath)) 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) |