From e87dd76626c7b5b512fafbdfe720fc32c668499b Mon Sep 17 00:00:00 2001 From: Antonio Ledebuhr Date: Wed, 21 Jan 2026 18:52:03 +0100 Subject: [PATCH] add ball with click but remove oldest dot when limit reached --- src/app/components/dot-background/dot-background.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/dot-background/dot-background.ts b/src/app/components/dot-background/dot-background.ts index bf89089..0f42501 100644 --- a/src/app/components/dot-background/dot-background.ts +++ b/src/app/components/dot-background/dot-background.ts @@ -96,7 +96,7 @@ export class DotBackground implements OnDestroy { private spawnDot(): Dot { const dotId = this.ballSpawnId++; let dot; - if (this.ballSpawnId < this.MAX_DOT_COUNT) { + if (dotId < this.MAX_DOT_COUNT) { dot = { x: 0, y: 0,