This commit is contained in:
Smok1e 2024-01-21 19:06:44 +03:00
parent cf2d25d229
commit 19e94a5702
2 changed files with 17 additions and 2 deletions

View File

@ -1 +0,0 @@
{["dropAmount"]=50,["speed"]=0.4,["backgroundColor"]=986895,["dropColor"]=43775}

View File

@ -93,7 +93,7 @@ return {
screenDrawSemiPixelRectangle(wallpaper.x + x, wallpaper.y + wallpaper.height * 2 - stackHeight + 1, 1, stackHeight, config.snowflakeColor) screenDrawSemiPixelRectangle(wallpaper.x + x, wallpaper.y + wallpaper.height * 2 - stackHeight + 1, 1, stackHeight, config.snowflakeColor)
if stackHeight > config.maxStackHeight then if stackHeight > config.maxStackHeight then
stacks[x] = 0 stacks[x] = stackHeight - 2
end end
end end
@ -136,6 +136,22 @@ return {
if y >= doubleHeight - stackHeight then if y >= doubleHeight - stackHeight then
stacks[x] = stackHeight + 1 stacks[x] = stackHeight + 1
if x > 0 then
local leftStackHeight = stacks[x-1] or 0
if stacks[x] - leftStackHeight > 2 then
stacks[x-1] = leftStackHeight + 1
stacks[x] = stackHeight
end
end
if x < wallpaper.width-1 then
local rightStackHeight = stacks[x+1] or 0
if stacks[x] - rightStackHeight > 2 then
stacks[x+1] = rightStackHeight + 1
stacks[x] = stackHeight
end
end
tableRemove(snowflakes, i) tableRemove(snowflakes, i)
else else