core: better card styling and var name cleaning
This commit is contained in:
+3
-1
@@ -89,9 +89,11 @@ function loop() {
|
||||
|
||||
if (ball.dx < 0) {
|
||||
BotMovesPaddle(leftPaddle);
|
||||
document.getElementById("leftPaddle").innerHTML = leftPaddle.y;
|
||||
}
|
||||
if (ball.dx > 0) {
|
||||
BotMovesPaddle(rightPaddle);
|
||||
BotMovesPaddle(rightPaddle);
|
||||
document.getElementById("rightPaddle").innerHTML = rightPaddle.y;
|
||||
}
|
||||
|
||||
// move paddles by their velocity
|
||||
|
||||
Reference in New Issue
Block a user