homework
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(_delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
if body.is_in_group("Player"):
|
||||
if body.has_method("take_damage"):
|
||||
body.take_damage(1)
|
||||
|
||||
Reference in New Issue
Block a user