]> Untitled Git - frog-ninja.git/blobdiff - player/player.gd
Added debug overlay to test scene
[frog-ninja.git] / player / player.gd
index 94283d90c2e81955bd8339a263dff350acdbc625..d00302d27df62c58c8efece5016250bc22a871ac 100644 (file)
@@ -68,6 +68,12 @@ func _unhandled_input(event: InputEvent) -> void:
 func _input(event: InputEvent):
        if event.is_action_pressed("player-dash"):
                _skin.transition_dash()
+       elif event.is_action_pressed("player-slash"):
+               _skin.sword_visible()
+               _skin.transition_slash()
+       elif event.is_action_pressed("player-shoot"):
+               _skin.gun_visible()
+               _skin.transition_gunfire()
 
 
 # Get the XZ input direction based on player's input relative to the camera