fixed marble powerups on web touch

This commit is contained in:
RandomityGuy 2023-03-16 23:58:04 +05:30
parent 516a18ce71
commit 422577404f

View file

@ -1511,7 +1511,7 @@ class Marble extends GameObject {
|| Gamepad.isDown(Settings.gamepadSettings.jump)) {
move.jump = true;
}
if (Key.isDown(Settings.controlsSettings.powerup)
if ((!Util.isTouchDevice() && Key.isDown(Settings.controlsSettings.powerup))
|| (Util.isTouchDevice() && MarbleGame.instance.touchInput.powerupButton.pressed)
|| Gamepad.isDown(Settings.gamepadSettings.powerup)) {
move.powerup = true;