cd54242de0
Input.start_joy_vibration() is a documented engine no-op on Godot's HTML5 export (never wired to the browser side). Controls.vibrate() wraps it: native platforms go straight through as before, web drives the browser's Gamepad Haptic Actuator API directly via JavaScriptBridge. Gamepad movement/ability input already worked on desktop browsers via the standard Web Gamepad API, so only vibration needed a fix. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MXBNaEBmrYDSMcv4NgUWtV
15 lines
445 B
GDScript
15 lines
445 B
GDScript
extends Node3D
|
|
## Lobby geometry — watches the run state and raises the bear-gate grid once the arena has
|
|
## been cleared. The DP flag stays as a designer override for testing the animation.
|
|
|
|
var bear_gate_open := false
|
|
|
|
|
|
func _process(_delta: float) -> void:
|
|
if bear_gate_open:
|
|
return
|
|
if Run.bear_gate_open() or DP.b("gate_unlocked_bear"):
|
|
bear_gate_open = true
|
|
$AnimationPlayer.play("Gate_opening")
|
|
Controls.vibrate(0, 0.5, .5, 7)
|