From 444eaa53c31704186cf38dbadfab1a5f014b78b4 Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 20 Jan 2017 13:12:27 +0100 Subject: Decoration < Animated --- decoration.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.1