fix(game:) fixed infinite boost glitch
parent
256ee77f1f
commit
f22f19590d
|
@ -351,7 +351,7 @@ export const PlayerController = () => {
|
||||||
setCurrentSpeed(boostSpeed);
|
setCurrentSpeed(boostSpeed);
|
||||||
effectiveBoost.current -= 1 * delta * 144;
|
effectiveBoost.current -= 1 * delta * 144;
|
||||||
targetZPosition = 10;
|
targetZPosition = 10;
|
||||||
turboSound.current.play();
|
if(!turboSound.current.isPlaying) turboSound.current.play();
|
||||||
driftTwoSound.current.play();
|
driftTwoSound.current.play();
|
||||||
driftBlueSound.current.stop();
|
driftBlueSound.current.stop();
|
||||||
driftOrangeSound.current.stop();
|
driftOrangeSound.current.stop();
|
||||||
|
@ -442,7 +442,7 @@ export const PlayerController = () => {
|
||||||
|
|
||||||
if(shootPressed && item === "mushroom") {
|
if(shootPressed && item === "mushroom") {
|
||||||
setIsBoosting(true);
|
setIsBoosting(true);
|
||||||
boostDuration.current = 300;
|
effectiveBoost.current = 300;
|
||||||
actions.useItem();
|
actions.useItem();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue