added Graphics and sound Effects and more overhauls

This commit is contained in:
Exobyt 2025-08-03 20:56:32 +02:00
parent c887a2168c
commit b9d4288900
214 changed files with 3378 additions and 198 deletions

View file

@ -1,8 +1,15 @@
extends Area2D
#
#@export var damage: int
#
@export var damage: int
#func _on_area_entered(area: Area2D) -> void:
#if area.is_in_group("hurtArea"):
#area.hurt.emit(damage)
func _on_area_entered(area: Area2D) -> void:
if area.is_in_group("healthArea"):
area.hurt.emit(damage)
func damageHurtArea(_area: Area2D, _damage: int):
if get_parent().is_in_group("timeGhost") and _area.get_parent() == Globals.getPlayer():
print("time")
return
if _area.is_in_group("hurtArea"):
_area.hurt.emit(_damage)