improve the laser animation, its a bit bland currently (a bit more light, more laser saber-ish, more animation when it goes out of the ship) #90

Closed
opened 2026-08-22 12:28:37 +00:00 by metaheavens · 1 comment
Owner
No description provided.
Author
Owner

Fixed in c8d4731.

The beam no longer appears fully formed for one frame. LaserController now
gives it an ignition: the bolt extends from the muzzle to the target over the
first 30% of a longer flash (0.34s, was 0.22s), on an ease-out curve, then
burns down. Layered on top of the beam are a white-hot core rod at 42% width,
a glowing cap at the travelling tip, and a flare at the emitter. Firing also
spawns muzzle sparks tinted to the beam colour (MuzzleSparkVFX now takes a
colour).

Damage is unchanged - it is still applied instantly at full range on the
firing frame, so the animation is purely visual and cannot cost you a hit.

Covered by tests/test_laser_animation.gd: the beam starts short, never
retracts, reaches full length over several frames and then clears, the far
target loses hp on the firing frame, and the sparks carry the beam colour.

Fixed in c8d4731. The beam no longer appears fully formed for one frame. `LaserController` now gives it an ignition: the bolt extends from the muzzle to the target over the first 30% of a longer flash (0.34s, was 0.22s), on an ease-out curve, then burns down. Layered on top of the beam are a white-hot core rod at 42% width, a glowing cap at the travelling tip, and a flare at the emitter. Firing also spawns muzzle sparks tinted to the beam colour (`MuzzleSparkVFX` now takes a colour). Damage is unchanged - it is still applied instantly at full range on the firing frame, so the animation is purely visual and cannot cost you a hit. Covered by `tests/test_laser_animation.gd`: the beam starts short, never retracts, reaches full length over several frames and then clears, the far target loses hp on the firing frame, and the sparks carry the beam colour.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
metaheavens/spaceship#90
No description provided.