set pixels of drops after each update
This commit is contained in:
parent
c92508544f
commit
c8235dea59
@ -146,10 +146,14 @@ function update_drops()
|
|||||||
new_drops = {}
|
new_drops = {}
|
||||||
for i=1,#drops do
|
for i=1,#drops do
|
||||||
d = drops[i]
|
d = drops[i]
|
||||||
|
oldx = d.x
|
||||||
|
oldy = d.y
|
||||||
update_drop(d)
|
update_drop(d)
|
||||||
if d.y < 128 then
|
if d.y < 128 then
|
||||||
add(new_drops, d)
|
add(new_drops, d)
|
||||||
end
|
end
|
||||||
|
pset(oldx, oldy, bg)
|
||||||
|
pset(d.x, d.y, white)
|
||||||
end
|
end
|
||||||
drops = new_drops
|
drops = new_drops
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user