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 = {}
for i=1,#drops do
d = drops[i]
oldx = d.x
oldy = d.y
update_drop(d)
if d.y < 128 then
add(new_drops, d)
end
pset(oldx, oldy, bg)
pset(d.x, d.y, white)
end
drops = new_drops
end