Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
RintaDev5792 authored Aug 25, 2024
1 parent 76c1d74 commit 7ca853e
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,12 @@ function collapseEmptyExpansions()
labels = newLabels
end
end
while gameGrid[#gameGrid] == ".empty" do
table.remove(gameGrid,#gameGrid)
end
while indexFromPos(cursorx,cursory) > #gameGrid do
moveLeft(true)
end
reloadIconsNextFrame = true
iconSaveNuclearOption()
end
Expand Down Expand Up @@ -793,7 +799,7 @@ function loadMusic()
music = playdate.sound.fileplayer.new("/Shared/FunnyOS/bgm")
if music ~= nil then
music:play()
music:setFinishCallback(function() playdate.timer.performAfterDelay(10000, function() if musicOn then loadMusic() end end ) end)
music:setFinishCallback(function() if musicOn then loadMusic() end end)
end
end

Expand All @@ -811,6 +817,10 @@ function moveUp(fast)
end
iconAnimationState = "highlighted"
if not fast then
if indexFromPos(cursorx,cursory) == #gameGrid and organizeMode then
table.insert(gameGrid,".empty")
reloadIconsNextFrame = true
end
startIconAnimation()
doLabelExpansionStuff()
end
Expand All @@ -832,6 +842,10 @@ function moveDown(fast)
end
iconAnimationState = "highlighted"
if not fast then
if indexFromPos(cursorx,cursory) == #gameGrid and organizeMode then
table.insert(gameGrid,".empty")
reloadIconsNextFrame = true
end
startIconAnimation()
doLabelExpansionStuff()
end
Expand All @@ -852,6 +866,10 @@ function moveRight(fast)
end
iconAnimationState = "highlighted"
if not fast then
if indexFromPos(cursorx,cursory) == #gameGrid and organizeMode then
table.insert(gameGrid,".empty")
reloadIconsNextFrame = true
end
startIconAnimation()
doLabelExpansionStuff()
end
Expand All @@ -875,6 +893,10 @@ function moveLeft(fast)
end
iconAnimationState = "highlighted"
if not fast then
if indexFromPos(cursorx,cursory) == #gameGrid and organizeMode then
table.insert(gameGrid,".empty")
reloadIconsNextFrame = true
end
startIconAnimation()
doLabelExpansionStuff()
end
Expand Down Expand Up @@ -2293,6 +2315,7 @@ function doLabelExpansionStuff()
iconSaveNuclearOption()
reloadIconsNextFrame = true
end

end
end

Expand Down

0 comments on commit 7ca853e

Please sign in to comment.