spaceship/enemies
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Loïc Wisniewski 1a2a27b6e8 #113: a wave converges on the nearest structure from any distance
A wave is an attack on what the player has built, not a hazard sitting in
space waiting to be flown near. Wave enemies now ignore the detection radius
their components otherwise respect and close on the nearest building from
wherever they arrived.

The flag is per INSTANCE rather than per definition: the same chaser is a
wave when the director launches it and a garrison when a map author places
it, and a planet garrison that chased the player across the system would be
a very different thing from what the editor is used to place. The test pins
both halves - a wave chaser 6000px out closed on a crafter, and an
identically built one nobody sent held its station.

What it fights on the way is unchanged: EnemyTargets already prefers a
vessel inside 520px over a building further off, and already searches the
player_ships group, so the fleet and an outpost's garrison both count.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-23 21:38:09 +02:00
..
ArtilleryEnemyDefinition.tres #101 (#97c): waves attack buildings 2026-08-23 13:53:17 +02:00
ArtilleryShell.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ArtilleryShell.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ArtilleryShell.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ChaserEnemyDefinition.tres #101 (#97c): waves attack buildings 2026-08-23 13:53:17 +02:00
Enemy.gd #113: a wave converges on the nearest structure from any distance 2026-08-23 21:38:09 +02:00
Enemy.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
Enemy.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyArtilleryComponent.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyArtilleryComponent.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyArtilleryComponent.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyBigLaserBeam.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyBigLaserBeam.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyBigLaserBeam.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyBigLaserComponent.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyBigLaserComponent.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyBigLaserComponent.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyDefinition.gd #101 (#97c): waves attack buildings 2026-08-23 13:53:17 +02:00
EnemyDefinition.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyDefinitions.gd #96: the lancer, a rammer that announces itself 2026-08-23 11:52:18 +02:00
EnemyDefinitions.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyLungeComponent.gd #115: the lancer winds up once, and leaves hard 2026-08-23 21:38:08 +02:00
EnemyLungeComponent.gd.uid Add the .uid files Godot generated for the new scripts 2026-08-23 19:23:50 +02:00
EnemyLungeComponent.tscn #96: the lancer, a rammer that announces itself 2026-08-23 11:52:18 +02:00
EnemyMarker.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyMarker.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyProjectile.gd #101 (#97c): waves attack buildings 2026-08-23 13:53:17 +02:00
EnemyProjectile.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyProjectile.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyPursuitComponent.gd #113: a wave converges on the nearest structure from any distance 2026-08-23 21:38:09 +02:00
EnemyPursuitComponent.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyPursuitComponent.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyPursuitComponentMothership.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyRangedWeaponComponent.gd #101 (#97c): waves attack buildings 2026-08-23 13:53:17 +02:00
EnemyRangedWeaponComponent.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyRangedWeaponComponent.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemySpawner.gd #113: a wave converges on the nearest structure from any distance 2026-08-23 21:38:09 +02:00
EnemySpawner.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemySpawnerComponent.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemySpawnerComponent.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemySpawnerComponent.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemySpawnerComponentArtillery.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemySpawnerComponentChaser.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyStandoffComponent.gd #113: a wave converges on the nearest structure from any distance 2026-08-23 21:38:09 +02:00
EnemyStandoffComponent.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyStandoffComponent.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
EnemyTargets.gd #113: a wave converges on the nearest structure from any distance 2026-08-23 21:38:09 +02:00
EnemyTargets.gd.uid Add the .uid files Godot generated for the new scripts 2026-08-23 19:23:50 +02:00
LancerEnemyDefinition.tres #101 (#97c): waves attack buildings 2026-08-23 13:53:17 +02:00
MothershipEnemyDefinition.tres #101 (#97c): waves attack buildings 2026-08-23 13:53:17 +02:00
SniperEnemyDefinition.tres #101 (#97c): waves attack buildings 2026-08-23 13:53:17 +02:00
TurretSpawnerEnemyDefinition.tres #101 (#97c): waves attack buildings 2026-08-23 13:53:17 +02:00