package shadow
import "github.com/nsgo-dev/game/pkg/pixelfx/shadow"Overview
Package shadow is pixelfx's shadow category: black holes, curses, dark explosions, eclipses, grasping hands, hex sigils, life steal, necro skulls, shadow flames, shadow tendrils, soul drain and void orbs, each a pixelfx.Effect registered as "shadow/<name>" when the package is imported.
Index
Variables
var BlackHole = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Black hole",
Desc: "A tilted disk of banded rings turns round a black hole, its far side bent up over the top and under the bottom; debris spirals in, stretches and is swallowed.",
Tags: []string{"shadow", "black-hole", "void", "space", "gravity", "dark", "magic", "loop"},
Size: [2]int{184, 132},
Origin: [2]int{92, 124},
Duration: 4,
Loop: true,
FPS: 30,
BG: "ground",
Options: []pixelfx.Option{
{Name: "palette", Default: voidPalette()},
{Name: "rock", Default: pixelfx.Palette("#120d1c", "#2e2440", "#544468", "#857399")},
{Name: "seed", Default: pixelfx.Num(4)},
},
},
New: newBlackHole,
}BlackHole is a tilted disk of banded rings turning round a black hole, its far side bent up over the top and under the bottom; debris spirals in, stretches and is swallowed. It is registered as "shadow/black-hole".
var Curse = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Curse",
Desc: "Wisps gather over the head, a skull stamps down with a flash, its eyes burn as the curse floods the body violet, then it cracks and crumbles.",
Tags: []string{"shadow", "curse", "debuff", "skull", "status", "dark", "magic", "one-shot"},
Size: [2]int{112, 124},
Origin: [2]int{56, 108},
Duration: 3.4,
Loop: false,
FPS: 30,
BG: "ground",
Actor: 2,
Options: []pixelfx.Option{
{Name: "palette", Default: voidPalette()},
{Name: "bone", Default: pixelfx.Palette("#170f26", "#4a3a6e", "#7f6ea6", "#b3a4d4", "#e2d8f6")},
{Name: "seed", Default: pixelfx.Num(9)},
},
},
Act: &pixelfx.Act{
OnBody: true,
Poses: []pixelfx.Key{
{T: -0.2, Pose: pixelfx.Ready},
{T: 0.3, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(0.9), pixelfx.HY.Is(-1), pixelfx.FX.Is(-9), pixelfx.FY.Is(-19), pixelfx.BX.Is(10), pixelfx.BY.Is(-19), pixelfx.FFX.Is(-3), pixelfx.FBX.Is(4))},
{T: 0.55, Pose: curseCower, How: "snap"},
{T: 0.8, Pose: curseCower.With(pixelfx.Crouch.Is(7))},
{T: 1.2, Pose: curseCower.With(pixelfx.Crouch.Is(6), pixelfx.Lean.Is(3))},
{T: 1.72, Pose: curseCower.With(pixelfx.Crouch.Is(7), pixelfx.Lean.Is(2))},
{T: 2.1, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(1), pixelfx.Crouch.Is(4), pixelfx.Lean.Is(3), pixelfx.HY.Is(2), pixelfx.FX.Is(-8), pixelfx.FY.Is(-15), pixelfx.BX.Is(9), pixelfx.BY.Is(-15), pixelfx.FFX.Is(-4), pixelfx.FBX.Is(5))},
{T: 2.9, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(1), pixelfx.Crouch.Is(3), pixelfx.Lean.Is(1), pixelfx.FX.Is(-8), pixelfx.FY.Is(-16), pixelfx.BX.Is(9), pixelfx.BY.Is(-16), pixelfx.FFX.Is(-3), pixelfx.FBX.Is(4))},
{T: 3.4, Pose: pixelfx.Ready},
},
Hits: []pixelfx.Hit{
{T: 0.55, Stop: 0.09, Shake: 0.2, Amp: pixelfx.Val(2)},
},
},
New: newCurse,
}Curse gathers wisps over the head, stamps a skull down with a flash, burns its eyes as the curse floods the body violet, then cracks and crumbles. It is registered as "shadow/curse".
var DarkExplosion = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Dark explosion",
Desc: "Motes swirl into a pulsing core, a black star cuts across a violet-white flash, and a black sphere burns at the rim, throws lit shards and smoke, then collapses.",
Tags: []string{"shadow", "explosion", "void", "dark", "magic", "impact", "one-shot"},
Size: [2]int{280, 248},
Origin: [2]int{140, 206},
Duration: 3.8,
Loop: false,
FPS: 30,
BG: "ground",
Options: []pixelfx.Option{
{Name: "palette", Default: voidPalette()},
{Name: "seed", Default: pixelfx.Num(6)},
},
},
New: newDarkExplosion,
}DarkExplosion swirls motes into a pulsing core, cuts a black star across a violet-white flash, and burns a black sphere at the rim that throws lit shards and smoke before collapsing. It is registered as "shadow/dark-explosion".
var Eclipse = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Eclipse",
Desc: "A black moon over the sun: a breathing pearl corona with long streamers, a thin white rim, and one diamond bead blazing on its edge.",
Tags: []string{"shadow", "eclipse", "moon", "sun", "corona", "sky", "magic", "loop"},
Size: [2]int{160, 144},
Origin: [2]int{80, 72},
Duration: 4,
Loop: true,
FPS: 30,
BG: "sky",
Options: []pixelfx.Option{
{Name: "palette", Default: voidPalette()},
{Name: "pearl", Default: pixelfx.Palette("#5a4f8a", "#a99be0", "#e6defa", "#fffaf2")},
{Name: "seed", Default: pixelfx.Num(3)},
},
},
New: newEclipse,
}Eclipse is a black moon over the sun: a breathing pearl corona with long streamers, a thin white rim, and one diamond bead blazing on its edge. It is registered as "shadow/eclipse".
var GraspingHands = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Grasping hands",
Desc: "Shadow arms burst up out of a dark pool with a splash, clench their hands into claws, strain, and are dragged back under, fingers clawing at the air.",
Tags: []string{"shadow", "hands", "arms", "grab", "ground", "dark", "magic", "one-shot"},
Size: [2]int{200, 116},
Origin: [2]int{100, 100},
Duration: 3.1,
Loop: false,
FPS: 30,
BG: "ground",
Options: []pixelfx.Option{
{Name: "palette", Default: voidPalette()},
{Name: "seed", Default: pixelfx.Num(5)},
},
},
New: newGraspingHands,
}GraspingHands bursts shadow arms up out of a dark pool with a splash, clenches their hands into claws, strains, and drags them back under. It is registered as "shadow/grasping-hands".
var HexSigil = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Hex sigil",
Desc: "A burning pen traces a cursed sigil in the air, its glyphs pop in one by one, then it flares white and crumbles into falling embers.",
Tags: []string{"shadow", "hex", "sigil", "rune", "curse", "magic", "circle", "one-shot"},
Size: [2]int{168, 128},
Origin: [2]int{84, 112},
Duration: 4.2,
Loop: false,
FPS: 30,
BG: "ground",
Options: []pixelfx.Option{
{Name: "palette", Default: voidPalette()},
{Name: "seed", Default: pixelfx.Num(7)},
},
},
New: newHexSigil,
}HexSigil traces a cursed sigil in the air with a burning pen, pops its glyphs in one by one, then flares white and crumbles into falling embers. It is registered as "shadow/hex-sigil".
var LifeSteal = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Life steal",
Desc: "A target on the right is struck and bleeds red orbs; they hang a moment, then whip home as comet streaks and flood the caster crimson.",
Tags: []string{"shadow", "life-steal", "drain", "blood", "heal", "directional", "magic", "one-shot"},
Size: [2]int{184, 100},
Origin: [2]int{36, 92},
Duration: 2.2,
Loop: false,
FPS: 30,
BG: "ground",
Actor: 2,
Options: []pixelfx.Option{
{Name: "palette", Default: pixelfx.Palette("#14040a", "#3a0a14", "#6a101c", "#a01824", "#d42a30", "#ff5a50", "#ff9a8a", "#ffe6de")},
{Name: "dark", Default: pixelfx.Color("#2a1040")},
{Name: "seed", Default: pixelfx.Num(11)},
},
},
Act: &pixelfx.Act{
OnBody: true,
Follow: pixelfx.Val(0),
Targets: []float64{104},
Poses: []pixelfx.Key{
{T: -0.46, Pose: pixelfx.Ready},
{T: -0.2, Pose: pixelfx.Ready.With(pixelfx.Crouch.Is(4), pixelfx.Lean.Is(-2), pixelfx.FX.Is(3), pixelfx.FY.Is(-27), pixelfx.BX.Is(8), pixelfx.BY.Is(-20))},
{T: 0, Pose: lsGrasp, How: "snap"},
{T: 0.4, Pose: lsGrasp},
{T: 0.7, Pose: lsGrasp.With(pixelfx.FX.Is(13), pixelfx.FY.Is(-26), pixelfx.Lean.Is(1))},
{T: 0.8, Pose: lsFed.With(pixelfx.Crouch.Is(2)), How: "snap"},
{T: 1.22, Pose: lsFed},
{T: 1.7, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(1), pixelfx.Crouch.Is(2), pixelfx.FX.Is(-11), pixelfx.FY.Is(-26), pixelfx.BX.Is(12), pixelfx.BY.Is(-26), pixelfx.FFX.Is(-3), pixelfx.FBX.Is(4))},
{T: 2.2, Pose: pixelfx.Ready},
},
Hits: []pixelfx.Hit{
{T: 0.01, Stop: 0.07, Shake: 0.12, Amp: pixelfx.Val(1), Push: pixelfx.Val(1.6), Straw: pixelfx.Val(12), Skin: "red", Y: pixelfx.Val(-24)},
{T: 1.6, Push: pixelfx.Val(0), Straw: pixelfx.Val(0), Flash: pixelfx.Val(0), Skin: pixelfx.SkinNone},
},
},
New: newLifeSteal,
}LifeSteal strikes a target on the right so it bleeds red orbs, hangs a moment, then whips them home as comet streaks to flood the caster crimson. It is registered as "shadow/life-steal".
var NecroSkulls = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Necro skulls",
Desc: "Spectral skulls circle a cold green flame on a tilted orbit, passing behind and before it, eyes lit, trailing curls of ghost smoke.",
Tags: []string{"shadow", "necromancy", "skull", "orbit", "ghost", "spectral", "magic", "loop"},
Size: [2]int{136, 116},
Origin: [2]int{68, 108},
Duration: 3,
Loop: true,
FPS: 30,
BG: "ground",
Options: []pixelfx.Option{
{Name: "palette", Default: pixelfx.Palette("#040e10", "#0a2228", "#0f3d44", "#16615f", "#23907f", "#45c4a0", "#9af0c8", "#e8fff4")},
{Name: "bone", Default: pixelfx.Palette("#0c1a1c", "#2c4a4a", "#5c847c", "#a6cdb8", "#e4fff0")},
{Name: "seed", Default: pixelfx.Num(6)},
},
},
New: newNecroSkulls,
}NecroSkulls orbits spectral skulls around a cold green flame on a tilted path, passing behind and before it, eyes lit, trailing curls of ghost smoke. It is registered as "shadow/necro-skulls".
var ShadowFlames = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Shadow flames",
Desc: "Inside-out fire on the floor: a black heart wrapped in violet flame with pale skin and tips, shedding embers and dark smoke.",
Tags: []string{"shadow", "fire", "flame", "ground", "dark", "magic", "loop"},
Size: [2]int{104, 112},
Origin: [2]int{52, 102},
Duration: 2.4,
Loop: true,
FPS: 30,
BG: "ground",
Options: []pixelfx.Option{
{Name: "palette", Default: voidPalette()},
{Name: "seed", Default: pixelfx.Num(12)},
},
},
New: newShadowFlames,
}ShadowFlames burns inside-out fire on the floor: a black heart wrapped in violet flame with pale skin and tips, shedding embers and dark smoke. It is registered as "shadow/shadow-flames".
var ShadowTendrils = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Shadow tendrils",
Desc: "A dark pool opens on the floor; tentacles with lit rims and hooked tips lash up out of it with a splash, writhe, and sink back as it closes.",
Tags: []string{"shadow", "tentacle", "tendril", "ground", "dark", "magic", "one-shot"},
Size: [2]int{208, 130},
Origin: [2]int{104, 106},
Duration: 3.2,
Loop: false,
FPS: 30,
BG: "ground",
Options: []pixelfx.Option{
{Name: "palette", Default: voidPalette()},
{Name: "seed", Default: pixelfx.Num(3)},
},
},
New: newShadowTendrils,
}ShadowTendrils opens a dark pool on the floor; tentacles with lit rims and hooked tips lash up out of it with a splash, writhe, and sink back as it closes. It is registered as "shadow/shadow-tendrils".
var SoulDrain = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Soul drain",
Desc: "Pale souls are torn loose on the right and dragged down a funnel of streaks into a black crystal vessel, which flares violet as each one lands.",
Tags: []string{"shadow", "soul", "drain", "necromancy", "funnel", "directional", "magic", "loop"},
Size: [2]int{208, 120},
Origin: [2]int{40, 110},
Duration: 3.2,
Loop: true,
FPS: 30,
BG: "ground",
Options: []pixelfx.Option{
{Name: "palette", Default: voidPalette()},
{Name: "soul", Default: pixelfx.Palette("#2c3f66", "#7d9fd0", "#cfe6ff", "#ffffff")},
{Name: "seed", Default: pixelfx.Num(8)},
},
},
New: newSoulDrain,
}SoulDrain tears pale souls loose on the right and drags them down a funnel of streaks into a black crystal vessel, which flares violet as each one lands. It is registered as "shadow/soul-drain".
var VoidOrb = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Void orb",
Desc: "A black orb hangs in the air, a pale rim crawling round it; a dark vortex winds into it, motes and streaks are pulled in, and light bends round its edge.",
Tags: []string{"shadow", "void", "orb", "vortex", "dark", "magic", "loop"},
Size: [2]int{168, 160},
Origin: [2]int{84, 150},
Duration: 3.2,
Loop: true,
FPS: 30,
BG: "ground",
Options: []pixelfx.Option{
{Name: "palette", Default: voidPalette()},
{Name: "seed", Default: pixelfx.Num(5)},
},
},
New: newVoidOrb,
}VoidOrb hangs a black orb in the air with a pale rim crawling round it; a dark vortex winds into it, motes and streaks are pulled in, and light bends round its edge. It is registered as "shadow/void-orb".