set pixels of drops after each update

This commit is contained in:
Colin McMillen 2021-06-10 19:06:50 -04:00
parent c92508544f
commit c8235dea59

View File

@ -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