sonic-bluestreak/sonic-bluestreak.love/scenes/battlesystem/choregraphy/qte/simpleprompt.lua

17 lines
422 B
Lua
Raw Normal View History

2021-11-25 10:57:13 +01:00
local Parent = require "scenes.battlesystem.choregraphy.qte.parent"
local SimplePrompt = Parent:extend()
function SimplePrompt:start()
self:setTimer(self.arguments.duration)
for i, keyData in ipairs(self.arguments.key) do
self.prompts:add(keyData[1], keyData[2])
end
end
function SimplePrompt:promptSuccess()
if (self.prompts:isOver()) then
self:success()
end
end
return SimplePrompt