mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
added the game
This commit is contained in:
5
Scripts/Parts/DeathPit.gd
Executable file
5
Scripts/Parts/DeathPit.gd
Executable file
@@ -0,0 +1,5 @@
|
||||
extends Area2D
|
||||
|
||||
func area_entered(area: Area2D) -> void:
|
||||
if area.owner is Player and area.owner.state_machine.state.name != "Dead":
|
||||
area.owner.die(true)
|
Reference in New Issue
Block a user