diff options
author | Aki <nthirtyone@gmail.com> | 2017-09-20 13:27:03 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-09-20 13:27:03 +0200 |
commit | f2979320625eceeaadd594ccf6bad6c6b2543aff (patch) | |
tree | 2ffdf0063467986cb01d43c4839d5e72e8077714 /not/World.lua | |
parent | 03ccc9890c2b349eb939b0d9fcaa982ead98f0cd (diff) | |
download | roflnauts-f2979320625eceeaadd594ccf6bad6c6b2543aff.zip roflnauts-f2979320625eceeaadd594ccf6bad6c6b2543aff.tar.gz roflnauts-f2979320625eceeaadd594ccf6bad6c6b2543aff.tar.bz2 |
Added fadein and fadeout methods to Trap
Diffstat (limited to 'not/World.lua')
-rw-r--r-- | not/World.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/not/World.lua b/not/World.lua index 3eec9fd..9a37965 100644 --- a/not/World.lua +++ b/not/World.lua @@ -92,11 +92,8 @@ function createFlame (self, x, y, direction, timerIn, timerOut) trap.layer = self.layers.platforms - timerIn:register(trap.setBodyActive, trap, true) - timerIn:register(trap.setAnimation, trap, "fadein") - timerIn:register(function (self) trap.hidden = false end, trap) - timerOut:register(trap.setBodyActive, trap, false) - timerOut:register(trap.setAnimation, trap, "fadeout") + timerIn:register(trap.fadeIn, trap) + timerOut:register(trap.fadeOut, trap) self:insertEntity(trap) end |