thrustEffect top-level property
SimulatedEffect
thrustEffect
final
Implementation
final SimulatedEffect thrustEffect = SimulatedEffect(
meta: const EffectMeta(
id: 'melee/thrust',
name: 'Thrust',
desc:
'A piercing stab: a bundle of streaks shoots out from the hand to a point, a long four-point star flares at the tip with a pierce ring, sparks and speed lines.',
category: 'melee',
tags: [
'melee',
'thrust',
'stab',
'spear',
'rapier',
'pierce',
'combat',
'directional',
'one-shot',
],
size: (196, 76),
origin: (34, 62),
duration: 0.75,
loop: false,
fps: 30,
bg: BackdropKind.ground,
actorScale: 2,
defaultOptions: {
'palette': [
'#2a1608',
'#6b3c10',
'#b8701a',
'#f0b42e',
'#ffe27a',
'#fff6cf',
'#ffffff',
],
'sparks': ['#fff3a6', '#ffe26b', '#ff8a2a', '#f2561d'],
'reach': 66,
'seed': 4,
},
),
act: ActSpec(
target: const TargetSpec(x: 80),
poses: [
PoseKey(-0.46, _stance),
PoseKey(-0.24, _back),
PoseKey(-0.05, _back.copyWith(crouch: 6, fx: -5)),
PoseKey(0.0, _lunge.copyWith(ghost: 1), PoseEase.snap),
PoseKey(0.07, _lunge, PoseEase.snap),
PoseKey(0.3, _lunge.copyWith(crouch: 5, lean: 5)),
PoseKey(0.7, _stance),
],
hits: const [
HitSpec(
t: 0.07,
stop: 0.12,
shake: 0.14,
amp: 2,
push: 2.8,
straw: 16,
y: -26,
),
],
dust: const [
DustSpec(t: 0.0, x: -24, n: 6, dir: -1),
DustSpec(t: 0.07, x: 1, n: 6, dir: 1),
],
),
onCreate: (o) => _ThrustSim(o),
);