fix powerups on web

This commit is contained in:
RandomityGuy 2023-03-16 23:52:53 +05:30
parent e8b8a422f7
commit 53a39a63c0

View file

@ -1765,7 +1765,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;