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

17 lines
396 B
Lua
Raw Permalink Normal View History

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;