sonic-radiance/sonic-radiance.love/game/events/event/simpleMessage.lua

17 lines
396 B
Lua
Raw Permalink Normal View History

2021-03-20 21:08:54 +01:00
local StepParent = require "game.events.event.parent"
local SimpleMessageStep = StepParent:extend()
function SimpleMessageStep:new(controller, args)
SimpleMessageStep.super.new(self, controller, args)
end
function SimpleMessageStep:start()
self.events.scene:showMessage(self.arguments.message)
end
function SimpleMessageStep:update(dt)
self:finish()
end
return SimpleMessageStep;