diff --git a/src/pong.ts b/src/pong.ts index cc1200b..89ed43a 100644 --- a/src/pong.ts +++ b/src/pong.ts @@ -122,7 +122,7 @@ class PongCore { // Simulate game logic simulate() { - if (this.ball.dx > 0) { + if (this.ball.dx < 0) { this.botInput(this.left); this.botIdle(this.right); } else {