mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-20 12:34:19 +02:00
remove insanity checking
This commit is contained in:
parent
3c56a883c6
commit
b728bfb047
1 changed files with 2 additions and 2 deletions
|
|
@ -60,9 +60,9 @@ function draw()
|
|||
for i, v in ipairs(squares) do
|
||||
v.x = v.x + v.vx
|
||||
v.y = v.y + v.vy
|
||||
if v.x <= 0 then v.vx = 1; v.color = math.random(0xFFFFFF) end
|
||||
if v.x == 0 then v.vx = 1; v.color = math.random(0xFFFFFF) end
|
||||
if v.x + SQUARE_WIDTH >= ly.width-1 then v.vx = -1; v.color = math.random(0xFFFFFF) end
|
||||
if v.y <= 0 then v.vy = 1; v.color = math.random(0xFFFFFF) end
|
||||
if v.y == 0 then v.vy = 1; v.color = math.random(0xFFFFFF) end
|
||||
if v.y + SQUARE_HEIGHT >= ly.height-1 then v.vy = -1; v.color = math.random(0xFFFFFF) end
|
||||
end
|
||||
timer = ly.clock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue