6dff45c659
Defeating the bear (the run's final boss) now plays a dedicated "Thank You For Playing" clip on the completion screen instead of the generic bull-win video, with the run's finish time shown in place of the usual "Bull Won!" title. A run clock also starts when the player enters the arena (the run's first fight), shown top-left on desktop only, and freezes the instant the bear falls. Re-entering the arena after finishing a run restarts the clock instead of leaving it stuck on the previous run's time. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MXBNaEBmrYDSMcv4NgUWtV
14 lines
373 B
GDScript
14 lines
373 B
GDScript
extends Area3D
|
|
## Lobby gate into the arena fight. Always open — the arena is the run's first door.
|
|
|
|
func _ready() -> void:
|
|
body_entered.connect(_on_body_entered)
|
|
|
|
|
|
func _on_body_entered(body: Node3D) -> void:
|
|
if not body.is_in_group("player"):
|
|
return
|
|
Run.start_run_timer()
|
|
Run.choose_level(&"arena")
|
|
get_tree().change_scene_to_file(Run.active_level().scene_path)
|