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>
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
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:
|
||||
# Connect the signal via code
|
||||
body_entered.connect(_on_body_entered)
|
||||
|
||||
|
||||
func _on_body_entered(body: Node3D) -> void:
|
||||
print("Something entered the trigger: ", body.name)
|
||||
# Check if the colliding object is the player
|
||||
if body.is_in_group("player"):
|
||||
#CHANGE TO BEAR LEVEL
|
||||
print("go to bear level")
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user