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,