split color functions
This commit is contained in:
parent
1e877f2b39
commit
d2f7af607a
2 changed files with 15 additions and 15 deletions
24
main.lua
24
main.lua
|
@ -5,21 +5,21 @@ function love.load()
|
|||
local Button = require "button"
|
||||
--movement keys
|
||||
movement = {
|
||||
Button(25, 40, 29, "dpleft"),
|
||||
Button(90, 40, 29, "dpdown"),
|
||||
Button(147, 71, 29, "dpright"),
|
||||
Button(168, 180, 36, "dpup"),
|
||||
Button(25, 40, 29, "dpleft", {255/255, 179/255, 102/255}),
|
||||
Button(90, 40, 29, "dpdown", {255/255, 179/255, 102/255}),
|
||||
Button(147, 71, 29, "dpright", {255/255, 179/255, 102/255}),
|
||||
Button(168, 180, 36, "dpup", {255/255, 179/255, 102/255}),
|
||||
}
|
||||
--attack keys, add {x,x,x} value to change color of button
|
||||
attack = {
|
||||
Button(207, 43, 29, "x"),
|
||||
Button(265, 17, 29, "y"),
|
||||
Button(330, 22, 29, "rightshoulder"),
|
||||
Button(395, 38, 29, "leftshoulder"),
|
||||
Button(202, 110, 29, "a"),
|
||||
Button(263, 86, 29, "b"),
|
||||
Button(330, 88, 29, "triggerright"),
|
||||
Button(394, 105, 29, "triggerleft"),
|
||||
Button(207, 43, 29, "x", {150/255, 109/255, 209/255}),
|
||||
Button(265, 17, 29, "y", {150/255, 109/255, 209/255}),
|
||||
Button(330, 22, 29, "rightshoulder", {150/255, 109/255, 209/255}),
|
||||
Button(395, 38, 29, "leftshoulder", {150/255, 109/255, 209/255}),
|
||||
Button(202, 110, 29, "a", {150/255, 109/255, 209/255}),
|
||||
Button(263, 86, 29, "b", {150/255, 109/255, 209/255}),
|
||||
Button(330, 88, 29, "triggerright", {150/255, 109/255, 209/255}),
|
||||
Button(394, 105, 29, "triggerleft", {150/255, 109/255, 209/255}),
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue