Files
tidewall/test/capture/camera_scene.gd
T
claudeandClaude Opus 5.5 8142e39ab3 A13: Gamepad and accessibility
Gamepad: PadInput reads pad events in one fixed layout (sticks move and
look, triggers aim and fire, bumpers step slots and build pieces, Start
pauses), fed through ClientInput alongside the keys and mouse. Menus take
South to choose and East or Start to go back. The tutorial names pad
buttons once the pad is used.

Aim assist (option, on by default, pad only): friction across an
opponent in plain sight near the look, and a pull of at most 9 deg/s
while aiming. Client look only; never through cover.

Accessibility (new Access tab): colour-vision sets for the signal colours
(red-green, blue-yellow), checked by simulated colour vision in
test_palette; interface size 90-130%, with the HUD hotbar refitting at the
larger sizes; captions for key sounds with direction; reduce motion
(calmer aim zoom and hurt flash).

Tests for the pad, aim assist, captions, palettes, settings, the menus
driven from a pad, and a pad playing through a real offline session.
make access-captures renders the new screens and options.

Closes #53

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:53:30 -05:00

30 lines
1.0 KiB
GDScript

## Capture scenario for the third-person camera: the shore scene with a stand-in player,
## viewed through PlayerCamera and CameraRig as in the game.
extends "res://test/capture/smoke_scene.gd"
@export var feet: Vector3 = Vector3(1.0, 0.0, 0.5)
@export var yaw_degrees: float = 0.0
@export var pitch_degrees: float = -8.0
@export var aiming: bool = false
## A13: the calmer aim zoom of the reduce-motion setting.
@export var reduce_motion: bool = false
func _add_camera() -> void:
var body: CapsuleMesh = CapsuleMesh.new()
body.radius = Tuning.PLAYER_RADIUS
body.height = Tuning.PLAYER_HEIGHT
_place(body, feet + Vector3.UP * Tuning.PLAYER_HEIGHT * 0.5, Color(0.2, 0.42, 0.36))
var camera: PlayerCamera = PlayerCamera.new()
camera.ground = ground
camera.target_feet = feet
camera.yaw = deg_to_rad(yaw_degrees)
camera.pitch = deg_to_rad(pitch_degrees)
camera.aiming = aiming
camera.rig.reduce_motion = reduce_motion
if aiming:
camera.rig.aim_blend = 1.0
add_child(camera)
camera.make_current()
camera.snap()