extends Area2D
@onready var timer: Timer = $Timer

func _on_body_entered(body) -> void:
	print("You died!")
	Engine.time_scale = 0.7
	body.get_node("CollisionShape2D").queue_free()
	body.velocity.y = -2000.0
	timer.start()
	
func _on_timer_timeout() -> void:
	Engine.time_scale = 1.0
	get_tree().reload_current_scene()
