pong: fix which bot should idle

This commit is contained in:
Trianta 2024-12-30 17:11:37 -06:00
parent be4eb906c5
commit 51ec729979

View File

@ -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 {