mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-20 11:09:21 +01:00
Хуй
This commit is contained in:
parent
cf2d25d229
commit
19e94a5702
@ -1 +0,0 @@
|
|||||||
{["dropAmount"]=50,["speed"]=0.4,["backgroundColor"]=986895,["dropColor"]=43775}
|
|
||||||
@ -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
|
||||||
|
|
||||||
@ -137,6 +137,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
|
||||||
i = i + 1
|
i = i + 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user