tasks: check off #18; drop stale Alien Ray projectile comments

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Forrest 2026-10-06 13:42:09 -04:00
parent 0012b8c098
commit fe308d2b72
3 changed files with 13 additions and 4 deletions

View file

@ -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.

View file

@ -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

View file

@ -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