feat: add direction button to qte

This commit is contained in:
Kazhnuz 2021-07-18 19:17:56 +02:00
parent 11503feac5
commit 3b53d62ca1

View file

@ -2,7 +2,7 @@ local Button = Object:extend()
local ButtonCircle = Object:extend()
local TweenManager = require "birb.classes.time"
local keys = {"A", "B", "C"}
local keys = {"A", "B", "C", "select", "up", "down", "left", "right"}
local BTN_SIZE = 21
local CANVAS_SIZE = 21+2
local SHAKETIME = 0.02
@ -40,7 +40,7 @@ function Button:getFrame()
return i
end
end
error("Non existing key " .. self.keys)
error("Non existing key " .. self.key)
end
function Button:update(dt, isFirst)