BlueGit

timfa questward

Define melee swipe fade and jitter constants.

timfa Tim Falken · pushed by timfa

Authored 2026-08-31 · 2 months ago

Hash
3697a6d3aecc2ae1a7a9679f828155b8ce6c30d7
Parent
14b7a207
1 file changed +4 −0
client/src/render/worldView.js +4 −0
@@ -48,6 +48,10 @@ const SHOVE_TILE_FRACTION = 0.25;
48 48 const SHOVE_MS = 280;
49 49 /** Soft reflow when stack circle targets change (join/leave a shared tile). */
50 50 const STACK_SPREAD_LERP_MS = 280;
51 /** Melee swipe fade: full opacity → transparent over this duration, then remove. */
52 const MELEE_SWIPE_MS = 500;
53 /** Extra random yaw (±deg) on top of aim rotation. */
54 const MELEE_SWIPE_JITTER_DEG = 10;
51 55 /** Hold gather-tool equip overlay slightly past swing interval so it stays visible between swings. */
52 56 const GATHER_TOOL_HOLD_MS = 1100;
53 57 const DAMAGE_FLASH_MS = 180;
@@ -48,6 +48,10 @@ const SHOVE_TILE_FRACTION = 0.25;
48const SHOVE_MS = 280;
48const SHOVE_MS = 280;
49/** Soft reflow when stack circle targets change (join/leave a shared tile). */
49/** Soft reflow when stack circle targets change (join/leave a shared tile). */
50const STACK_SPREAD_LERP_MS = 280;
50const STACK_SPREAD_LERP_MS = 280;
51/** Melee swipe fade: full opacity → transparent over this duration, then remove. */
52const MELEE_SWIPE_MS = 500;
53/** Extra random yaw (±deg) on top of aim rotation. */
54const MELEE_SWIPE_JITTER_DEG = 10;
51/** Hold gather-tool equip overlay slightly past swing interval so it stays visible between swings. */
55/** Hold gather-tool equip overlay slightly past swing interval so it stays visible between swings. */
52const GATHER_TOOL_HOLD_MS = 1100;
56const GATHER_TOOL_HOLD_MS = 1100;
53const DAMAGE_FLASH_MS = 180;
57const DAMAGE_FLASH_MS = 180;