Backglass development
The Pinball CTL vector sample lives in media/backglass/sample/. It includes eight scenes for attract mode, menus, high scores, live play and short cues. Follow the Godot Backglass tutorial to preview the sample or build a menu and scoreboard from a blank project.
Preview and validate the sample
Open media/backglass/sample/project.godot in Godot 4.6 or run these commands from the repository root.
godot --path media/backglass/sample
godot --headless --path media/backglass/sample --editor --import --quit
godot --headless --path media/backglass/sample --script res://tests/smoke.gd
Use Left and Right as flippers and Enter or Space as Start. The sample smoke test checks scene entry points, menu actions, live value updates and timed cues. Before using the pack in a cabinet, check cabinet input mapping, display scaling and playback on the target device.
Export and integrate
Export the sample with its Linux preset.
godot --headless --path media/backglass/sample --export-pack Linux /absolute/path/pinballctl-sample.pck
Upload the pack in Media and select an entry under res://ctl_sample/entries/. Keep new sample resources under res://ctl_sample/ to avoid collisions with the host project. The tutorial covers cabinet button mappings and live values and cue queues. See Godot media runtime for the host, display lifecycle and event interface.
See Backglass asset provenance for the vector artwork and animation sources.