feat: Implement the new Stop N Go game mode with dedicated managers, models, and UI.
This commit is contained in:
@@ -90,22 +90,22 @@ func handle_unhandled_input(event):
|
||||
if event is InputEventKey and event.pressed and not event.echo:
|
||||
match event.keycode:
|
||||
KEY_KP_1, KEY_1, KEY_KP_2, KEY_2, KEY_KP_3, KEY_3, KEY_KP_4, KEY_4:
|
||||
var is_sng = LobbyManager.game_mode == "Stop n Go"
|
||||
var is_restricted = LobbyManager.game_mode == "Stop n Go" or LobbyManager.game_mode == "Tekton Doors"
|
||||
match event.keycode:
|
||||
KEY_KP_1, KEY_1:
|
||||
player.activate_powerup(0) # FASTER_SPEED
|
||||
KEY_KP_2, KEY_2:
|
||||
if is_sng:
|
||||
player.activate_powerup(1) # AREA_FREEZE (StopNGo)
|
||||
if is_restricted:
|
||||
player.activate_powerup(1) # AREA_FREEZE (Restricted)
|
||||
else:
|
||||
player.activate_powerup(2) # BLOCK_FLOOR (Free)
|
||||
KEY_KP_3, KEY_3:
|
||||
if is_sng:
|
||||
player.activate_powerup(3) # INVISIBLE_MODE (StopNGo)
|
||||
if is_restricted:
|
||||
player.activate_powerup(3) # INVISIBLE_MODE (Restricted)
|
||||
else:
|
||||
player.activate_powerup(1) # AREA_FREEZE (Free)
|
||||
KEY_KP_4, KEY_4:
|
||||
if not is_sng:
|
||||
if not is_restricted:
|
||||
player.activate_powerup(3) # INVISIBLE_MODE (Free)
|
||||
# KEY_R:
|
||||
# player.auto_put_item()
|
||||
|
||||
Reference in New Issue
Block a user