adjusted frame count to not have a visible despawn

This commit is contained in:
8BitBiscotti
2024-12-12 14:58:44 +01:00
parent a95942ebd1
commit 515cc107ab
+1 -1
View File
@@ -231,7 +231,7 @@ function animateSynthWave() {
ctx.clearRect(0, 0, canvas.width, canvas.height) ctx.clearRect(0, 0, canvas.width, canvas.height)
if (iters >= iterToNewHill) { if (iters >= iterToNewHill) {
let hillInstance = new Hill(canvas.width / 2, canvas.height / 3 * 2, [0, 180, 240], canvas.width, 325) let hillInstance = new Hill(canvas.width / 2, canvas.height / 3 * 2, [0, 180, 240], canvas.width, 350)
hillInstance.generate(25, canvas.height / 24, 100, 15) hillInstance.generate(25, canvas.height / 24, 100, 15)
hills.unshift(hillInstance) hills.unshift(hillInstance)
iters = 0 iters = 0