feat: add direction button to qte
This commit is contained in:
parent
11503feac5
commit
3b53d62ca1
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ local Button = Object:extend()
|
||||||
local ButtonCircle = Object:extend()
|
local ButtonCircle = Object:extend()
|
||||||
local TweenManager = require "birb.classes.time"
|
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 BTN_SIZE = 21
|
||||||
local CANVAS_SIZE = 21+2
|
local CANVAS_SIZE = 21+2
|
||||||
local SHAKETIME = 0.02
|
local SHAKETIME = 0.02
|
||||||
|
@ -40,7 +40,7 @@ function Button:getFrame()
|
||||||
return i
|
return i
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
error("Non existing key " .. self.keys)
|
error("Non existing key " .. self.key)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Button:update(dt, isFirst)
|
function Button:update(dt, isFirst)
|
||||||
|
|
Loading…
Reference in a new issue