summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-01-20 13:12:27 +0100
committerAki <nthirtyone@gmail.com>2017-01-20 13:12:27 +0100
commit444eaa53c31704186cf38dbadfab1a5f014b78b4 (patch)
tree1f97e37ff6f1560042d2a9d0122c1cf0f5d3aaa7
parent7b757c58f110a577ae4a24308a2e540731ab7211 (diff)
downloadroflnauts-444eaa53c31704186cf38dbadfab1a5f014b78b4.zip
roflnauts-444eaa53c31704186cf38dbadfab1a5f014b78b4.tar.gz
roflnauts-444eaa53c31704186cf38dbadfab1a5f014b78b4.tar.bz2
Decoration < Animated
-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