summaryrefslogtreecommitdiffstats
path: root/player.gd
diff options
context:
space:
mode:
Diffstat (limited to 'player.gd')
-rw-r--r--player.gd5
1 files changed, 5 insertions, 0 deletions
diff --git a/player.gd b/player.gd
index 28783bf..d91b0dc 100644
--- a/player.gd
+++ b/player.gd
@@ -74,6 +74,11 @@ func request_state_zooping(target: ZoopPoint) -> bool:
state = PlayerStateZooping.new(self, target)
return true
+func request_state_dead():
+ if state is PlayerStateDead: return false
+
+ state = PlayerStateDead.new(self)
+
func get_facing() -> int:
if anim_sp.flip_h:
return -1