Added multiple skills

This commit is contained in:
2024-02-13 21:04:35 +01:00
parent 7937645028
commit cf155d9aab
5 changed files with 43 additions and 23 deletions

View File

@ -29,6 +29,7 @@ func _unhandled_input(event):
if event.is_action_pressed("dash"):
player.dash()
if event.is_action_pressed("attack"):
player.attack()
for i in range(4):
if event.is_action_pressed("skill_%d" % (i + 1)):
player.use_skill(i)