Initial commit: SpaceshipTest, a top-down space RTS in Godot 4.7.1
A fleet of neon-outlined ships explores a procedurally generated, seeded
infinite world: tap/joystick steering, pinch zoom, formation pivoting,
planet landings, an ore economy with extractors and haulers, and player
built structures (mothership, ship crafter, command centre).
All art is hand-drawn with draw_* calls rather than textures, and the
backgrounds are camera-relative shaders so they stay precise at large
world coordinates.
Includes a 35-test headless suite (tests/run_tests.sh) plus screenshot
tooling that renders real frames through Xvfb and Mesa softpipe, since
--headless has no GPU.
Excluded from version control: .godot/ (import cache, and it holds
export credentials), builds/, android/build/ and packaged APKs - all
regenerable, and ~325 MB combined.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-10 18:41:58 +02:00
|
|
|
extends SceneTree
|
|
|
|
|
|
|
|
|
|
# Headless gameplay test: run with
|
|
|
|
|
# godot --headless -s res://tests/test_joystick_control.gd
|
|
|
|
|
# Verifies the virtual joystick steers the fleet: holding the stick in a
|
|
|
|
|
# direction flies the fleet that way, and releasing brings it to a stop
|
|
|
|
|
# rather than freezing it mid-flight. Replaces the old tap-to-move test,
|
|
|
|
|
# since tapping no longer issues move orders.
|
|
|
|
|
#
|
|
|
|
|
# Touch events are handed to the joystick directly rather than through
|
|
|
|
|
# Input.parse_input_event: headless mode's placeholder window rescales
|
|
|
|
|
# synthetic touch coordinates by an environment-specific factor, which
|
|
|
|
|
# would land them outside the joystick's rect for reasons that have nothing
|
|
|
|
|
# to do with the behaviour under test.
|
|
|
|
|
|
|
|
|
|
var main_scene: Node
|
|
|
|
|
var fleet: Node
|
|
|
|
|
var joystick: TouchJoystick
|
|
|
|
|
var stage: int = 0
|
|
|
|
|
var elapsed: float = 0.0
|
|
|
|
|
var start_centroid: Vector2
|
|
|
|
|
var moving_centroid: Vector2
|
|
|
|
|
var stop_check_frames: int = 0
|
Fix the stop stutter, and hide unresearched buildings from the menu
Forgejo #13: releasing the stick paused, then moved again before
settling. stop() aims each ship at a braking point ahead of it, but the
ship's own velocity was ~0 - the anchor had been carrying it - so it
started from REST, accelerated into its own stopping distance, and
halted a second time. Measured: 0 -> 45 -> 90 -> 135 -> 180 -> brake.
stop() now hands the fleet's motion to the ship, so the release is one
continuous decelerating coast (222 -> 0) to the identical endpoint.
test_joystick_control now asserts the speed one frame after release is a
real fraction of cruise, and never rises afterwards.
Forgejo #21: unresearched structures are no longer listed greyed out.
They are hidden, and the menu repacks around what is left - a fixed grid
with entries hidden would otherwise leave holes where they used to be.
An entry alone on its row is centred rather than hanging in the left
column. Researched-but-not-usable is still shown greyed: an extractor
with no planet under the fleet is "not now", not "not yet".
This reverses a documented decision (the old comment argued that always
listing everything stops the player wondering whether the game has it at
all), so test_skill_tree's matching assertion was updated from
greyed-but-listed to hidden. The gate itself is unchanged and still
refuses a build forced past the menu.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11 21:38:17 +02:00
|
|
|
# Release-coast tracking (Forgejo #13).
|
|
|
|
|
var released: bool = false
|
|
|
|
|
var speed_at_release: float = 0.0
|
|
|
|
|
var previous_speed: float = 0.0
|
|
|
|
|
var accelerated_after_release: bool = false
|
Initial commit: SpaceshipTest, a top-down space RTS in Godot 4.7.1
A fleet of neon-outlined ships explores a procedurally generated, seeded
infinite world: tap/joystick steering, pinch zoom, formation pivoting,
planet landings, an ore economy with extractors and haulers, and player
built structures (mothership, ship crafter, command centre).
All art is hand-drawn with draw_* calls rather than textures, and the
backgrounds are camera-relative shaders so they stay precise at large
world coordinates.
Includes a 35-test headless suite (tests/run_tests.sh) plus screenshot
tooling that renders real frames through Xvfb and Mesa softpipe, since
--headless has no GPU.
Excluded from version control: .godot/ (import cache, and it holds
export credentials), builds/, android/build/ and packaged APKs - all
regenerable, and ~325 MB combined.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-10 18:41:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
func _initialize() -> void:
|
|
|
|
|
var packed: PackedScene = load("res://Main.tscn")
|
|
|
|
|
main_scene = packed.instantiate()
|
|
|
|
|
root.add_child(main_scene)
|
|
|
|
|
fleet = main_scene.get_node("Fleet")
|
|
|
|
|
joystick = main_scene.get_node("UI/Joystick")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _press(local: Vector2) -> void:
|
|
|
|
|
var ev: InputEventScreenTouch = InputEventScreenTouch.new()
|
|
|
|
|
ev.index = 0
|
|
|
|
|
ev.pressed = true
|
|
|
|
|
ev.position = joystick.global_position + local
|
|
|
|
|
joystick.handle_touch(ev)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _drag(local: Vector2) -> void:
|
|
|
|
|
var ev: InputEventScreenDrag = InputEventScreenDrag.new()
|
|
|
|
|
ev.index = 0
|
|
|
|
|
ev.position = joystick.global_position + local
|
|
|
|
|
joystick.handle_drag(ev)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _release(local: Vector2) -> void:
|
|
|
|
|
var ev: InputEventScreenTouch = InputEventScreenTouch.new()
|
|
|
|
|
ev.index = 0
|
|
|
|
|
ev.pressed = false
|
|
|
|
|
ev.position = joystick.global_position + local
|
|
|
|
|
joystick.handle_touch(ev)
|
|
|
|
|
|
|
|
|
|
|
Fix the stop stutter, and hide unresearched buildings from the menu
Forgejo #13: releasing the stick paused, then moved again before
settling. stop() aims each ship at a braking point ahead of it, but the
ship's own velocity was ~0 - the anchor had been carrying it - so it
started from REST, accelerated into its own stopping distance, and
halted a second time. Measured: 0 -> 45 -> 90 -> 135 -> 180 -> brake.
stop() now hands the fleet's motion to the ship, so the release is one
continuous decelerating coast (222 -> 0) to the identical endpoint.
test_joystick_control now asserts the speed one frame after release is a
real fraction of cruise, and never rises afterwards.
Forgejo #21: unresearched structures are no longer listed greyed out.
They are hidden, and the menu repacks around what is left - a fixed grid
with entries hidden would otherwise leave holes where they used to be.
An entry alone on its row is centred rather than hanging in the left
column. Researched-but-not-usable is still shown greyed: an extractor
with no planet under the fleet is "not now", not "not yet".
This reverses a documented decision (the old comment argued that always
listing everything stops the player wondering whether the game has it at
all), so test_skill_tree's matching assertion was updated from
greyed-but-listed to hidden. The gate itself is unchanged and still
refuses a build forced past the menu.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11 21:38:17 +02:00
|
|
|
func _max_ship_speed() -> float:
|
|
|
|
|
var top: float = 0.0
|
|
|
|
|
for ship in fleet.ships:
|
|
|
|
|
top = maxf(top, ship.velocity.length())
|
|
|
|
|
return top
|
|
|
|
|
|
|
|
|
|
|
Initial commit: SpaceshipTest, a top-down space RTS in Godot 4.7.1
A fleet of neon-outlined ships explores a procedurally generated, seeded
infinite world: tap/joystick steering, pinch zoom, formation pivoting,
planet landings, an ore economy with extractors and haulers, and player
built structures (mothership, ship crafter, command centre).
All art is hand-drawn with draw_* calls rather than textures, and the
backgrounds are camera-relative shaders so they stay precise at large
world coordinates.
Includes a 35-test headless suite (tests/run_tests.sh) plus screenshot
tooling that renders real frames through Xvfb and Mesa softpipe, since
--headless has no GPU.
Excluded from version control: .godot/ (import cache, and it holds
export credentials), builds/, android/build/ and packaged APKs - all
regenerable, and ~325 MB combined.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-10 18:41:58 +02:00
|
|
|
func _process(delta: float) -> bool:
|
|
|
|
|
elapsed += delta
|
Fix the stop stutter, and hide unresearched buildings from the menu
Forgejo #13: releasing the stick paused, then moved again before
settling. stop() aims each ship at a braking point ahead of it, but the
ship's own velocity was ~0 - the anchor had been carrying it - so it
started from REST, accelerated into its own stopping distance, and
halted a second time. Measured: 0 -> 45 -> 90 -> 135 -> 180 -> brake.
stop() now hands the fleet's motion to the ship, so the release is one
continuous decelerating coast (222 -> 0) to the identical endpoint.
test_joystick_control now asserts the speed one frame after release is a
real fraction of cruise, and never rises afterwards.
Forgejo #21: unresearched structures are no longer listed greyed out.
They are hidden, and the menu repacks around what is left - a fixed grid
with entries hidden would otherwise leave holes where they used to be.
An entry alone on its row is centred rather than hanging in the left
column. Researched-but-not-usable is still shown greyed: an extractor
with no planet under the fleet is "not now", not "not yet".
This reverses a documented decision (the old comment argued that always
listing everything stops the player wondering whether the game has it at
all), so test_skill_tree's matching assertion was updated from
greyed-but-listed to hidden. The gate itself is unchanged and still
refuses a build forced past the menu.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11 21:38:17 +02:00
|
|
|
|
|
|
|
|
# Releasing the stick must be ONE continuous decelerating coast. It used
|
|
|
|
|
# to stop dead and then accelerate into its own stopping distance,
|
|
|
|
|
# halting a second time - felt in game as a pause followed by a small
|
|
|
|
|
# extra lurch (#13). The ships were being aimed at a braking point ahead
|
|
|
|
|
# while their own velocity was ~0, because the anchor had been carrying
|
|
|
|
|
# them, so they started from rest.
|
|
|
|
|
if released:
|
|
|
|
|
var now: float = _max_ship_speed()
|
|
|
|
|
if now > previous_speed + 1.0:
|
|
|
|
|
accelerated_after_release = true
|
|
|
|
|
previous_speed = now
|
Initial commit: SpaceshipTest, a top-down space RTS in Godot 4.7.1
A fleet of neon-outlined ships explores a procedurally generated, seeded
infinite world: tap/joystick steering, pinch zoom, formation pivoting,
planet landings, an ore economy with extractors and haulers, and player
built structures (mothership, ship crafter, command centre).
All art is hand-drawn with draw_* calls rather than textures, and the
backgrounds are camera-relative shaders so they stay precise at large
world coordinates.
Includes a 35-test headless suite (tests/run_tests.sh) plus screenshot
tooling that renders real frames through Xvfb and Mesa softpipe, since
--headless has no GPU.
Excluded from version control: .godot/ (import cache, and it holds
export credentials), builds/, android/build/ and packaged APKs - all
regenerable, and ~325 MB combined.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-10 18:41:58 +02:00
|
|
|
match stage:
|
|
|
|
|
0:
|
|
|
|
|
main_scene.get_node("AsteroidField").set_process(false)
|
|
|
|
|
main_scene.get_node("EnemySpawner").set_process(false)
|
|
|
|
|
start_centroid = fleet.get_centroid()
|
|
|
|
|
|
|
|
|
|
# The joystick receives touches via GameController's
|
|
|
|
|
# _unhandled_input, which never fires for a Control that
|
|
|
|
|
# consumes them through the GUI system first. With Godot's
|
|
|
|
|
# default mouse_filter (STOP) the stick silently does nothing
|
|
|
|
|
# on a real device - it must be IGNORE. Checked structurally
|
|
|
|
|
# because the rest of this test drives handle_touch() directly
|
|
|
|
|
# and so cannot catch it.
|
|
|
|
|
if joystick.mouse_filter != Control.MOUSE_FILTER_IGNORE:
|
|
|
|
|
print("joystick mouse_filter=%d (needs IGNORE=%d)" % [
|
|
|
|
|
joystick.mouse_filter, Control.MOUSE_FILTER_IGNORE
|
|
|
|
|
])
|
|
|
|
|
print("TEST_JOYSTICK_CONTROL: FAIL (stick would swallow its own touches)")
|
|
|
|
|
quit(1)
|
|
|
|
|
return true
|
|
|
|
|
|
|
|
|
|
# Push the stick hard to the right.
|
|
|
|
|
var centre: Vector2 = joystick.size / 2.0
|
|
|
|
|
_press(centre)
|
|
|
|
|
_drag(centre + Vector2(joystick.max_radius, 0.0))
|
|
|
|
|
if joystick.direction.x < 0.9:
|
|
|
|
|
print("joystick direction wrong: %s" % joystick.direction)
|
|
|
|
|
print("TEST_JOYSTICK_CONTROL: FAIL (stick did not register)")
|
|
|
|
|
quit(1)
|
|
|
|
|
return true
|
|
|
|
|
elapsed = 0.0
|
|
|
|
|
stage = 1
|
|
|
|
|
return false
|
|
|
|
|
1:
|
|
|
|
|
if elapsed < 1.5:
|
|
|
|
|
return false
|
|
|
|
|
moving_centroid = fleet.get_centroid()
|
|
|
|
|
var moved_right: bool = moving_centroid.x - start_centroid.x > 100.0
|
|
|
|
|
var stayed_level: bool = abs(moving_centroid.y - start_centroid.y) < 80.0
|
|
|
|
|
print("moved from %s to %s (right=%s level=%s)" % [
|
|
|
|
|
start_centroid, moving_centroid, moved_right, stayed_level
|
|
|
|
|
])
|
|
|
|
|
if not (moved_right and stayed_level):
|
|
|
|
|
print("TEST_JOYSTICK_CONTROL: FAIL (fleet did not follow the stick)")
|
|
|
|
|
quit(1)
|
|
|
|
|
return true
|
|
|
|
|
|
|
|
|
|
_release(joystick.size / 2.0)
|
Fix the stop stutter, and hide unresearched buildings from the menu
Forgejo #13: releasing the stick paused, then moved again before
settling. stop() aims each ship at a braking point ahead of it, but the
ship's own velocity was ~0 - the anchor had been carrying it - so it
started from REST, accelerated into its own stopping distance, and
halted a second time. Measured: 0 -> 45 -> 90 -> 135 -> 180 -> brake.
stop() now hands the fleet's motion to the ship, so the release is one
continuous decelerating coast (222 -> 0) to the identical endpoint.
test_joystick_control now asserts the speed one frame after release is a
real fraction of cruise, and never rises afterwards.
Forgejo #21: unresearched structures are no longer listed greyed out.
They are hidden, and the menu repacks around what is left - a fixed grid
with entries hidden would otherwise leave holes where they used to be.
An entry alone on its row is centred rather than hanging in the left
column. Researched-but-not-usable is still shown greyed: an extractor
with no planet under the fleet is "not now", not "not yet".
This reverses a documented decision (the old comment argued that always
listing everything stops the player wondering whether the game has it at
all), so test_skill_tree's matching assertion was updated from
greyed-but-listed to hidden. The gate itself is unchanged and still
refuses a build forced past the menu.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11 21:38:17 +02:00
|
|
|
released = true
|
|
|
|
|
speed_at_release = _max_ship_speed()
|
|
|
|
|
previous_speed = speed_at_release
|
Initial commit: SpaceshipTest, a top-down space RTS in Godot 4.7.1
A fleet of neon-outlined ships explores a procedurally generated, seeded
infinite world: tap/joystick steering, pinch zoom, formation pivoting,
planet landings, an ore economy with extractors and haulers, and player
built structures (mothership, ship crafter, command centre).
All art is hand-drawn with draw_* calls rather than textures, and the
backgrounds are camera-relative shaders so they stay precise at large
world coordinates.
Includes a 35-test headless suite (tests/run_tests.sh) plus screenshot
tooling that renders real frames through Xvfb and Mesa softpipe, since
--headless has no GPU.
Excluded from version control: .godot/ (import cache, and it holds
export credentials), builds/, android/build/ and packaged APKs - all
regenerable, and ~325 MB combined.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-10 18:41:58 +02:00
|
|
|
if joystick.direction != Vector2.ZERO:
|
|
|
|
|
print("TEST_JOYSTICK_CONTROL: FAIL (direction not cleared on release)")
|
|
|
|
|
quit(1)
|
|
|
|
|
return true
|
|
|
|
|
elapsed = 0.0
|
|
|
|
|
stage = 2
|
|
|
|
|
return false
|
|
|
|
|
2:
|
|
|
|
|
# After release the fleet should coast to a halt, not freeze
|
|
|
|
|
# instantly and not keep flying.
|
|
|
|
|
if elapsed < 4.0:
|
|
|
|
|
return false
|
|
|
|
|
var speed: float = 0.0
|
|
|
|
|
for ship in fleet.ships:
|
|
|
|
|
speed = max(speed, ship.velocity.length())
|
Fix the stop stutter, and hide unresearched buildings from the menu
Forgejo #13: releasing the stick paused, then moved again before
settling. stop() aims each ship at a braking point ahead of it, but the
ship's own velocity was ~0 - the anchor had been carrying it - so it
started from REST, accelerated into its own stopping distance, and
halted a second time. Measured: 0 -> 45 -> 90 -> 135 -> 180 -> brake.
stop() now hands the fleet's motion to the ship, so the release is one
continuous decelerating coast (222 -> 0) to the identical endpoint.
test_joystick_control now asserts the speed one frame after release is a
real fraction of cruise, and never rises afterwards.
Forgejo #21: unresearched structures are no longer listed greyed out.
They are hidden, and the menu repacks around what is left - a fixed grid
with entries hidden would otherwise leave holes where they used to be.
An entry alone on its row is centred rather than hanging in the left
column. Researched-but-not-usable is still shown greyed: an extractor
with no planet under the fleet is "not now", not "not yet".
This reverses a documented decision (the old comment argued that always
listing everything stops the player wondering whether the game has it at
all), so test_skill_tree's matching assertion was updated from
greyed-but-listed to hidden. The gate itself is unchanged and still
refuses a build forced past the menu.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11 21:38:17 +02:00
|
|
|
# Carrying the fleet's cruise speed, not starting from a standstill.
|
|
|
|
|
if speed_at_release < fleet.cruise_speed * 0.5:
|
|
|
|
|
print("speed one frame after release: %.1f (cruising at %.1f)" % [
|
|
|
|
|
speed_at_release, fleet.cruise_speed
|
|
|
|
|
])
|
|
|
|
|
print("TEST_JOYSTICK_CONTROL: FAIL (the fleet stopped dead on release instead of coasting)")
|
|
|
|
|
quit(1)
|
|
|
|
|
return true
|
|
|
|
|
if accelerated_after_release:
|
|
|
|
|
print("TEST_JOYSTICK_CONTROL: FAIL (the fleet sped up again after release - pause then lurch, #13)")
|
|
|
|
|
quit(1)
|
|
|
|
|
return true
|
|
|
|
|
print("release coast: %.1f -> 0 with no re-acceleration" % speed_at_release)
|
|
|
|
|
|
Initial commit: SpaceshipTest, a top-down space RTS in Godot 4.7.1
A fleet of neon-outlined ships explores a procedurally generated, seeded
infinite world: tap/joystick steering, pinch zoom, formation pivoting,
planet landings, an ore economy with extractors and haulers, and player
built structures (mothership, ship crafter, command centre).
All art is hand-drawn with draw_* calls rather than textures, and the
backgrounds are camera-relative shaders so they stay precise at large
world coordinates.
Includes a 35-test headless suite (tests/run_tests.sh) plus screenshot
tooling that renders real frames through Xvfb and Mesa softpipe, since
--headless has no GPU.
Excluded from version control: .godot/ (import cache, and it holds
export credentials), builds/, android/build/ and packaged APKs - all
regenerable, and ~325 MB combined.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-10 18:41:58 +02:00
|
|
|
var stopped: bool = speed < 1.0
|
Skill tree, node-based building animation, bigger UI, and a 19x faster test suite
Gameplay and UI
- Research tree at the mothership gates which structures can be built and
grants permanent fleet-capacity upgrades (GameState.SKILL_TREE,
SkillTreeView). Node depth is derived from prerequisites, so the layout
cannot drift out of step with the dependencies.
- Building info popup before committing to a build, with per-building cost
and description.
- Ship crafter redrawn as a space factory with an assembly animation;
mothership redrawn as a radial flagship; command centre as a plotting hub.
- Keyboard and mouse support (WASD, Q/E pivot, wheel zoom) for the web build.
- UI and font scaled up for phone use, via a custom Theme resource -
gui/theme/default_font_size does not reach the default theme.
- Asteroids no longer spawn on top of the fleet's start position.
- Fleet formation origin derived from the layout's own offsets rather than
the centroid, fixing the lurch when a lopsided formation started moving.
- Fleet.stop() brakes from the ship's TRUE motion (velocity +
fleet_velocity). Ship zeroes its velocity when seated in its slot even
while the anchor drags that slot forward, so braking from velocity alone
stopped the fleet dead instead of coasting - and whether it did depended
on the frame rate.
Animation architecture (issue #10)
- Buildings, projectiles and explosion VFX no longer animate by redrawing.
Static geometry is rasterised once in _draw(); moving parts are NeonPiece
children animated through node properties, which reuse the cached
geometry. Every NeonDraw call expands into four antialiased polylines, so
redrawing to move something re-tessellated all of it.
Test suite (issue #8): 1075s -> ~55s
- Runs from a copy on Termux's own filesystem. The project lives on
Android's FUSE bridge, read through proot, where load("res://Main.tscn")
alone cost 8.5s per test against ~2s natively - and nearly every test
loads it.
- Runs 6 tests at a time, in a single proot-distro login, with output
buffered per test and printed only on failure.
- --fixed-fps 60 pins delta instead of measuring the wall clock, so a test's
result no longer depends on how busy the machine is. Without it,
parallelism made two tests fail on 2 of 3 runs.
- A test passes only if it both exits 0 and prints ": PASS".
- 38 tests, green on three consecutive runs.
Bundles Carrois Gothic SC (Apache 2.0) with its licence text.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11 15:00:41 +02:00
|
|
|
# Not merely "moved forward at all": the fleet cruises at
|
|
|
|
|
# cruise_speed and brakes at Ship.acceleration, so the coast is
|
|
|
|
|
# cruise_speed^2 / (2 * acceleration) ~ 75 units. Asserting a
|
|
|
|
|
# real distance is what makes this a test of coasting - the old
|
|
|
|
|
# `> moving_centroid.x` was satisfied by any float wobble, and
|
|
|
|
|
# passed happily while the fleet stopped dead.
|
|
|
|
|
var coast: float = fleet.get_centroid().x - moving_centroid.x
|
|
|
|
|
var coasted: bool = coast > 40.0
|
|
|
|
|
print("after release: max_speed=%.3f stopped=%s coasted=%.1f units (expected ~%.0f)" % [
|
|
|
|
|
speed, stopped, coast,
|
|
|
|
|
(fleet.cruise_speed * fleet.cruise_speed) / (2.0 * fleet.ships[0].acceleration)
|
Initial commit: SpaceshipTest, a top-down space RTS in Godot 4.7.1
A fleet of neon-outlined ships explores a procedurally generated, seeded
infinite world: tap/joystick steering, pinch zoom, formation pivoting,
planet landings, an ore economy with extractors and haulers, and player
built structures (mothership, ship crafter, command centre).
All art is hand-drawn with draw_* calls rather than textures, and the
backgrounds are camera-relative shaders so they stay precise at large
world coordinates.
Includes a 35-test headless suite (tests/run_tests.sh) plus screenshot
tooling that renders real frames through Xvfb and Mesa softpipe, since
--headless has no GPU.
Excluded from version control: .godot/ (import cache, and it holds
export credentials), builds/, android/build/ and packaged APKs - all
regenerable, and ~325 MB combined.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-10 18:41:58 +02:00
|
|
|
])
|
|
|
|
|
if stopped and coasted:
|
|
|
|
|
print("TEST_JOYSTICK_CONTROL: PASS")
|
|
|
|
|
quit(0)
|
|
|
|
|
else:
|
|
|
|
|
print("TEST_JOYSTICK_CONTROL: FAIL (did not coast to a stop)")
|
|
|
|
|
quit(1)
|
|
|
|
|
return true
|
|
|
|
|
return false
|