feat(godot): drive the anim interpolator off FrameClock (paced spritesheet+glow)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -255,7 +255,7 @@ public partial class Main : Godot.Control
|
||||
double clockDur = System.Math.Max(1, _vm.Gfx.AnimClockDurationTicks) * GameTickSeconds;
|
||||
bool clockReset = clockGen != _lastClockGen;
|
||||
_lastClockGen = clockGen;
|
||||
foreach (var v in _vm.Gfx.SnapshotVisibleObjects()) // already ascending-handle = z-order
|
||||
foreach (var v in _vm.Gfx.SnapshotVisibleObjects(_clock.NowMs)) // interpolate at the throttled clock
|
||||
{
|
||||
float a = AlphaFor(v, clockReset, clockDur) * (v.Alpha / 255f);
|
||||
if (v.SurfaceResId == 0)
|
||||
|
||||
Reference in New Issue
Block a user