2021-04-02 19:33:56 +02:00
|
|
|
local TransitionParent = require "core.modules.transitions.parent"
|
|
|
|
local DefaultTransition = TransitionParent:extend()
|
|
|
|
|
|
|
|
function DefaultTransition:new(func, ox, oy, fadeOut)
|
2021-04-02 22:24:14 +02:00
|
|
|
DefaultTransition.super.new(self, func, ox, oy, fadeOut, "inQuad", "outQuad", 0.35, 0.1)
|
2021-04-02 19:33:56 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
function DefaultTransition:draw()
|
|
|
|
love.graphics.setColor(0,0,0,self.value)
|
|
|
|
love.graphics.rectangle("fill", 0, 0, 424, 240)
|
|
|
|
utils.graphics.resetColor()
|
|
|
|
end
|
|
|
|
|
|
|
|
return DefaultTransition
|