removed lag
This commit is contained in:
@@ -238,7 +238,9 @@ function spawnRandomBullet(){
|
|||||||
for (let i = 0; i < 86; i++) {
|
for (let i = 0; i < 86; i++) {
|
||||||
bullets.push(new bullet(0, 100, radius, shotSpeed, shotPosX, shotPosY, hasMoved, angle));
|
bullets.push(new bullet(0, 100, radius, shotSpeed, shotPosX, shotPosY, hasMoved, angle));
|
||||||
angle -= 360 / 3;
|
angle -= 360 / 3;
|
||||||
}
|
bulletsspliced = bullets.splice(i);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user