draw player last so ripples are always on bottom
This commit is contained in:
parent
481d14784d
commit
78a5df1684
@ -283,11 +283,12 @@ function doTick() {
|
||||
}
|
||||
}
|
||||
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
player.draw()
|
||||
drops.forEach(drop => drop.draw());
|
||||
drops = drops.filter(drop => !drop.canGC());
|
||||
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
drops.forEach(drop => drop.draw());
|
||||
player.draw()
|
||||
|
||||
if (gameState == 'play') currTick++;
|
||||
requestAnimationFrame(doTick);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user