1
0

final commit

This commit is contained in:
2026-07-26 18:54:03 +02:00
parent 4438d9d886
commit c818fba5e9
45 changed files with 1791 additions and 67 deletions
+5 -4
View File
@@ -21,9 +21,8 @@ func _physics_process(delta: float) -> void:
move_and_collide(velocity * delta)
func _on_area_entered(area: Area2D) -> void:
print("yes")
queue_free()
if not area.get_parent().has_meta("dontKillUrselfPlease"):
queue_free()
func _on_body_entered(body: Node2D) -> void:
@@ -31,7 +30,7 @@ func _on_body_entered(body: Node2D) -> void:
#body.get_node("explode").emitting = true
#body.get_node("explode").reparent(body.geat_parent())
body.health -= dmgtotal
body.health -= dmgtotal * player.damage_stack
body.knockback = Vector2(velocity.x * 0.5, velocity.y * 0.5)
body.hitsfx.play()
#AnimationPlayer.new().stop()
@@ -47,4 +46,6 @@ func _on_body_entered(body: Node2D) -> void:
#player.heal(randi_range(3,5))
#body.queue_free()
print(body.name)
queue_free()