Browse Source

Add extension .js to Air Hockey

michtang 3 years atrás
parent
commit
dc4cfa0d63
2 changed files with 1 additions and 1 deletions
  1. 1 1
      01-white/04-03-air-hockey
  2. 0 0
      02-yellow/03-01-hiding-ninjas.js

+ 1 - 1
01-white/04-03-air-hockey

@@ -33,7 +33,7 @@ if ( rightPaddle.y() < getMouseY() ) {
 **/
 
 
-if (ball.isTouchingRightWall() ) {
+if ( ball.isTouchingRightWall() ) {
     leftPaddle.score += 1;
     leftScoreLabel.text(leftPaddle.score);
     ball.x(400);

02-yellow/03-01 → 02-yellow/03-01-hiding-ninjas.js