Skip to content

1681-engine / index / hurtFlashMs

Function: hurtFlashMs() ​

ts
function hurtFlashMs(
   heavy, 
   impact, 
   reduce
): number;

Defined in: src/fx/hitStop.ts:37

How long the body struck flashes white (ms), 0 for none: 70, a crit of one's own 140 (the impact frame), nothing with reduce (a "reduce flashes" setting). A heavy body (a boss, anything drawn large) flashes only for the local player's own crit, 60 ms, HEAVY_FLASH_GAP_MS apart: a sheet covering most of the screen turning white on every blow, beat and tick is a strobe. Sparks, numbers and the recoil still mark every blow.

Parameters ​

ParameterType
heavyboolean
impactboolean
reduceboolean

Returns ​

number

Released under the MIT License.