summaryrefslogtreecommitdiffhomepage
path: root/not/Effect.lua
diff options
context:
space:
mode:
Diffstat (limited to 'not/Effect.lua')
-rw-r--r--not/Effect.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/not/Effect.lua b/not/Effect.lua
index 82d6819..6c0dad0 100644
--- a/not/Effect.lua
+++ b/not/Effect.lua
@@ -1,11 +1,6 @@
-require "not.Decoration"
-
--- `Effect`
-- Short animation with graphics that plays in various situation.
--- TODO: animation is currently slower than it used to be, check if it is ok; if not then make it possible to change it to 0.06 delay.
-Effect = Decoration:extends()
-
-Effect.finished = false
+Effect = require "not.Decoration":extends()
-- Constructor of `Effect`.
function Effect:new (name, x, y, world)
@@ -14,6 +9,7 @@ function Effect:new (name, x, y, world)
Effect:setImage(Sprite.newImage("assets/effects.png"))
end
Effect.__super.new(self, x, y, world, nil)
+ self.finished = false
self:setAnimationsList(require("config.animations.effects"))
self:setAnimation(name)
end