mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-08 22:47:49 +02:00
Update max fireworks in pitching.js to be 10
This commit is contained in:
parent
4d5ed2efcf
commit
6ae4ef78dd
1 changed files with 2 additions and 4 deletions
|
@ -464,10 +464,8 @@ Baseball.prototype = {
|
||||||
this.state = BASEBALL_STATE.HIT_LANDED;
|
this.state = BASEBALL_STATE.HIT_LANDED;
|
||||||
if (this.distanceTravelled > FIREWORK_SHOW_DISTANCE_FEET) {
|
if (this.distanceTravelled > FIREWORK_SHOW_DISTANCE_FEET) {
|
||||||
print("PLAYING SHOW")
|
print("PLAYING SHOW")
|
||||||
var numberOfFireworks = Math.floor(this.distanceTraveled / 100);
|
var numberOfFireworks = Math.floor(this.distanceTravelled / 200);
|
||||||
if (this.wasHighScore) {
|
numberOfFireworks = Math.min(10, numberOfFireworks);
|
||||||
numberOfFireworks = 20;
|
|
||||||
}
|
|
||||||
playFireworkShow(numberOfFireworks, 2000);
|
playFireworkShow(numberOfFireworks, 2000);
|
||||||
}
|
}
|
||||||
print("Ball took " + this.timeSinceHit.toFixed(3) + " seconds to land");
|
print("Ball took " + this.timeSinceHit.toFixed(3) + " seconds to land");
|
||||||
|
|
Loading…
Reference in a new issue