Files
Bullosseum/levels/to_the_bear_level.gd
T
richard 34dc5b026e Lobby barrel-smash reward + roll/slam barrel destruction
Bull's boulder roll now homes on and ploughs through lobby barrels, and
the slam shockwave bursts them within its radius. HUD tallies barrels on
load and fires a confetti "WOooOoW!" + two gold bonus HP pips when the
last one breaks; gates open from run state as fights are cleared.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-03 01:38:57 +03:00

17 lines
514 B
GDScript

extends Area3D
## Lobby gate into the Bear's Den. Shut until the arena is cleared (Run.bear_gate_open()),
## which is also what plays the grid-opening animation — so the trigger only fires once the
## gate has actually risen.
func _ready() -> void:
body_entered.connect(_on_body_entered)
func _on_body_entered(body: Node3D) -> void:
if not body.is_in_group("player"):
return
if not Run.bear_gate_open():
return
Run.choose_level(&"bear")
get_tree().change_scene_to_file(Run.active_level().scene_path)