summaryrefslogtreecommitdiffhomepage
path: root/decoration.lua
diff options
context:
space:
mode:
Diffstat (limited to 'decoration.lua')
-rw-r--r--decoration.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/decoration.lua b/decoration.lua
index 609983a..3ca6f76 100644
--- a/decoration.lua
+++ b/decoration.lua
@@ -4,10 +4,11 @@ Decoration = {
x = 0,
y = 0
}
+Decoration.__index = Decoration
+setmetatable(Decoration, Animated)
function Decoration:new(x, y, sprite)
local o = {}
setmetatable(o, self)
- self.__index = self
o.sprite = love.graphics.newImage(sprite)
o:setPosition(x,y)
return o