GarGerry commited on
Commit
80b756c
·
verified ·
1 Parent(s): d0aa82e

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -41,7 +41,7 @@
41
  let ballPosition = { top: 0, left: Math.random() * 90 }; // Bola muncul secara acak.
42
  let isCaught = false; // Apakah bola ditangkap.
43
  let score = 0; // Skor awal.
44
- let fallSpeed = 0.5; // Kecepatan bola yang konsisten
45
 
46
  // Fungsi untuk memindahkan platform ke kiri
47
  function movePlatformLeft() {
@@ -118,7 +118,7 @@
118
  ball.style.top = ballPosition.top + '%';
119
  platform.style.left = platformPosition + '%';
120
  isCaught = false;
121
- // Kecepatan bola tetap konsisten (0.5)
122
  fallSpeed = 0.5;
123
  }
124
 
 
41
  let ballPosition = { top: 0, left: Math.random() * 90 }; // Bola muncul secara acak.
42
  let isCaught = false; // Apakah bola ditangkap.
43
  let score = 0; // Skor awal.
44
+ let fallSpeed = 0.5; // Kecepatan bola yang tetap
45
 
46
  // Fungsi untuk memindahkan platform ke kiri
47
  function movePlatformLeft() {
 
118
  ball.style.top = ballPosition.top + '%';
119
  platform.style.left = platformPosition + '%';
120
  isCaught = false;
121
+ // Set kecepatan bola ke nilai default
122
  fallSpeed = 0.5;
123
  }
124