diff --git a/docs/followups.md b/docs/followups.md index e0051bc..3931117 100644 --- a/docs/followups.md +++ b/docs/followups.md @@ -106,6 +106,14 @@ UFO (#19): - Polish: a belly glow or tractor-beam cone during the dive; a synthesized UFO warble instead of the Kenney sweep. +Alien Ray beam (#18): +- Pierce 4 at ≈6.7 DPS per enemy is strong against crowds; lower the pierce or use a 0.2 s tick + (5 DPS, like the torch) if playtesting says so. +- The glow is subtle by day and the wall flare small; hit sparks where the beam touches an enemy + would help. +- The drawn beam follows the model's yaw, so it can trail the damage line by ~0.1 s in fast turns + (same as the torch flame). + South crop fields (#20): - The Radar minimap (`radar_hud.gd` `_to_map`, 190×190 square) now squashes the 60×80 map. - `README.md` (~lines 62, 499) and the `game_config.gd` radar comment (~line 313) still say 60×60. diff --git a/docs/tasks.md b/docs/tasks.md index b6cc244..4252852 100644 --- a/docs/tasks.md +++ b/docs/tasks.md @@ -217,7 +217,8 @@ parallel; wave 2 waits on the task named. ## Wave 2 -- [ ] **#18 Alien Ray fires a beam.** [user item 3] Blocked by #17. +- [x] **#18 Alien Ray fires a beam.** [user item 3] Blocked by #17. *(merged 0012b8c — `AlienBeam`, + `EnemySystem.path_hits()`; range 20 m, width 0.5 m, 1 dmg / 0.15 s, pierce 4)* Held beam, ticked damage, clipped at walls, pierces enemies along it; emissive beam mesh; config range/width/tick/pierce replace speed/lifetime. *Acceptance:* test_weapons same-step far hit, wall blocks, two-in-line both hit, beam visible diff --git a/game/scripts/farm_projectiles.gd b/game/scripts/farm_projectiles.gd index 1af6c01..fe4f4c4 100644 --- a/game/scripts/farm_projectiles.gd +++ b/game/scripts/farm_projectiles.gd @@ -31,7 +31,7 @@ var _dx := PackedFloat32Array() var _dz := PackedFloat32Array() var _life := PackedFloat32Array() ## Per-shot speed (m/s): cfg.projectile_speed unless fire() was given its own (Task #7's Potato -## Cannon, Shurikens, and Alien Ray fly at their own speeds). +## Cannon and Shurikens fly at their own speeds). var _speed := PackedFloat32Array() var _damage := PackedInt32Array() ## The avatar slot that fired each shot (EnemySystem.attacker when it was fired; -1 for the @@ -81,8 +81,8 @@ func clear() -> void: ## origin -> muzzle segment is tested first, so a barrel poking through a wall resolves there ## instead of spawning the shot on the far side. Returns false if the shot was skipped. ## speed/lifetime (<= 0: cfg.projectile_speed / cfg.projectile_lifetime) let a weapon's shot fly at -## its own pace (Task #7: the Potato Cannon's slow heavy shot, Shurikens, and the Alien Ray's fast -## one), with every other caller unchanged. +## its own pace (Task #7: the Potato Cannon's slow heavy shot and Shurikens), with every other +## caller unchanged. func fire(origin: Vector3, muzzle: Vector3, dir: Vector3, damage: int = 1, speed: float = -1.0, lifetime: float = -1.0) -> bool: if active_count >= capacity: exhausted += 1