Fixed christmas BF and key rebinding

This commit is contained in:
entar 2025-06-05 10:48:21 +07:00
parent 26ce959302
commit 3a1478fb47
2 changed files with 11 additions and 15 deletions

View File

@ -20,7 +20,7 @@
"fps": 24,
"anim": "singLEFT",
"indices": [],
"name": "BF NOTE LEFT0"
"name": "BF NOTE LEFT"
},
{
"loop": false,
@ -31,7 +31,7 @@
"fps": 24,
"anim": "singDOWN",
"indices": [],
"name": "BF NOTE DOWN0"
"name": "BF NOTE DOWN"
},
{
"loop": false,
@ -42,7 +42,7 @@
"fps": 24,
"anim": "singUP",
"indices": [],
"name": "BF NOTE UP0"
"name": "BF NOTE UP"
},
{
"loop": false,
@ -53,7 +53,7 @@
"fps": 24,
"anim": "singRIGHT",
"indices": [],
"name": "BF NOTE RIGHT0"
"name": "BF NOTE RIGHT"
},
{
"loop": false,

View File

@ -94,17 +94,13 @@ function love.keypressed(key, un, is)
curDiff = curDiffList[1]
curDiffInd = 1
end
elseif key == "1" then
gettingKey = 1
elseif key == "2" then
gettingKey = 2
elseif key == "3" then
gettingKey = 3
elseif key == "4" then
gettingKey = 3
elseif key == "0" then
settings.Downscroll = not settings.Downscroll
files.write_file("settings.json", json.stringify(settings))
elseif tonumber(key) and tonumber(key) < 5 then
if key == "0" then
settings.Downscroll = not settings.Downscroll
files.write_file("settings.json", json.stringify(settings))
else
gettingKey = tonumber(key)
end
end
else
keybinds[gettingKey] = key