diff options
Diffstat (limited to 'Hazard.gd')
| -rw-r--r-- | Hazard.gd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Hazard.gd b/Hazard.gd new file mode 100644 index 0000000..fa0b01f --- /dev/null +++ b/Hazard.gd @@ -0,0 +1,21 @@ +extends Area2D + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass + + +func _on_Hazard_body_entered(body): + if body.has_method("die"): + body.die() |
