summaryrefslogtreecommitdiff
path: root/Scenes/Player.gd
diff options
context:
space:
mode:
authorVictor Andrade de Almeida <vct.a.almeida@gmail.com>2022-07-17 13:20:01 -0300
committerVictor Andrade de Almeida <vct.a.almeida@gmail.com>2022-07-17 13:23:46 -0300
commit379205c19719b7b91ac518edc3cf3603cc21f233 (patch)
tree60ff9c301610bb040704ba48a1888f02c26c235a /Scenes/Player.gd
parentd82ead0125167f3288804dc19cafd40c17bd05d8 (diff)
downloadgamejam-gmtk-2022-379205c19719b7b91ac518edc3cf3603cc21f233.tar.gz
gamejam-gmtk-2022-379205c19719b7b91ac518edc3cf3603cc21f233.tar.bz2
gamejam-gmtk-2022-379205c19719b7b91ac518edc3cf3603cc21f233.zip
Add damage sfx
Diffstat (limited to 'Scenes/Player.gd')
-rw-r--r--Scenes/Player.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/Scenes/Player.gd b/Scenes/Player.gd
index 0e05204..7ffb1dd 100644
--- a/Scenes/Player.gd
+++ b/Scenes/Player.gd
@@ -154,3 +154,7 @@ func cor_shake(args : Array):
break
yield(get_tree(), "idle_frame")
+
+func cor_damage(args : Array):
+ $Damage.play()
+ yield(cor_shake(args), "completed")