feat: integrated some assets and made a hitbox and damage reaction system
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 5s
Create tag and build when new code gets to main / Export (push) Successful in 2m5s

This commit is contained in:
2025-08-01 17:17:00 +02:00
parent 44f083fbce
commit 6e017197f6
26 changed files with 484 additions and 449 deletions

9
damageable/hitbox.gd Normal file
View File

@ -0,0 +1,9 @@
extends Area2D
@export var damage = 0
@export var hitback_direction = Vector2.UP
func _on_body_entered(body: Node2D) -> void:
for child in body.get_children():
if is_instance_of(child, Damageable):
child.damage(damage, hitback_direction)