Update stars.js
Browse files
stars.js
CHANGED
@@ -20,7 +20,7 @@ function createStars(count) {
|
|
20 |
}
|
21 |
|
22 |
function moveStars() {
|
23 |
-
const speed =
|
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) {
|