FebGame/febfabgame/Scripts/slime.gd

9 lines
168 B
GDScript

class_name Slime extends Area2D
signal playerDamagSignal
func _on_body_entered(body: Node2D) -> void:
playerDamagSignal.emit(body, self)
print("bad guy yum yum")