maringetxway commited on
Commit
d5e4f71
·
verified ·
1 Parent(s): a576fde

Update stars.js

Browse files
Files changed (1) hide show
  1. stars.js +1 -1
stars.js CHANGED
@@ -20,7 +20,7 @@ function createStars(count) {
20
  }
21
 
22
  function moveStars() {
23
- const speed = 5; // Was 2 — now way faster!
24
  for (let i = 0; i < stars.length; i++) {
25
  stars[i].z -= speed;
26
  if (stars[i].z <= 0) {
 
20
  }
21
 
22
  function moveStars() {
23
+ const speed = 4; // speed
24
  for (let i = 0; i < stars.length; i++) {
25
  stars[i].z -= speed;
26
  if (stars[i].z <= 0) {