diff options
author | Aki <nthirtyone@gmail.com> | 2017-01-20 13:12:27 +0100 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-01-20 13:12:27 +0100 |
commit | 444eaa53c31704186cf38dbadfab1a5f014b78b4 (patch) | |
tree | 1f97e37ff6f1560042d2a9d0122c1cf0f5d3aaa7 | |
parent | 7b757c58f110a577ae4a24308a2e540731ab7211 (diff) | |
download | roflnauts-444eaa53c31704186cf38dbadfab1a5f014b78b4.zip roflnauts-444eaa53c31704186cf38dbadfab1a5f014b78b4.tar.gz roflnauts-444eaa53c31704186cf38dbadfab1a5f014b78b4.tar.bz2 |
Decoration < Animated
-rw-r--r-- | decoration.lua | 3 |
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 |