Documentation
¶
Overview ¶
Package nature is pixelfx's nature category: acid splashes, boulders, earth spikes, healing blooms, leaf storms, poison clouds, quakes, root snares, spore bursts, thorns, tornadoes, toxic puddles and vine whips, each a pixelfx.Effect registered as "nature/<name>" when the package is imported.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AcidSplash = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Acid splash", Desc: "A gob of acid bursts into a crown and spatters; it eats a glowing, smoking pit into the floor and boils down into it, spitting bright beads, pale steam curling off.", Tags: []string{"nature", "acid", "poison", "splash", "liquid", "ground", "one-shot"}, Size: [2]int{184, 116}, Origin: [2]int{92, 100}, Duration: acidSplashDuration, Loop: false, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#0e140a", "#1c3010", "#2c5214", "#457e18", "#6aae1c", "#a0dc2a", "#dcff6a", "#f8ffd0")}, {Name: "seed", Default: pixelfx.Num(6)}, }, }, New: newAcidSplash, }
AcidSplash is a gob of acid bursting into a crown and eating a smoking pit into the floor. It is registered as "nature/acid-splash".
var Boulder = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Boulder", Desc: "A spinning boulder arcs right shedding dust and pebbles, smashes into the floor in a white flash and bursts into tumbling chunks, gravel and rolling dust.", Tags: []string{"nature", "earth", "rock", "projectile", "impact", "directional", "one-shot"}, Size: [2]int{264, 120}, Origin: [2]int{40, 104}, Duration: boulderDuration, Loop: false, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#100e12", "#1e1a22", "#302a36", "#463e4c", "#5e5464", "#7c7080", "#a0949e", "#cec4c8")}, {Name: "sparks", Default: pixelfx.Palette("#fff3a6", "#ffe26b", "#ff8a2a", "#f2561d")}, {Name: "size", Default: pixelfx.Num(11)}, {Name: "seed", Default: pixelfx.Num(11)}, }, }, New: newBoulder, }
Boulder is a spinning boulder that arcs right, smashes into the floor in a white flash and bursts into tumbling chunks, gravel and rolling dust. It is registered as "nature/boulder".
var EarthSpike = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Earth spike", Desc: "The floor cracks with light and heaves, a faceted stone spike rams up with two side shards in a burst of chips, grit and dust; rubble rains, then it splits and crumbles.", Tags: []string{"nature", "earth", "stone", "spike", "ground", "attack", "one-shot"}, Size: [2]int{272, 150}, Origin: [2]int{136, 132}, Duration: earthSpikeDuration, Loop: false, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#120c0c", "#251917", "#3b2a24", "#553d31", "#715440", "#8f6e52", "#b8966e", "#e6d0a8")}, {Name: "glow", Default: pixelfx.Palette("#4a1a0c", "#a8401a", "#ff8a2a", "#ffd27a", "#fff4d0")}, {Name: "height", Default: pixelfx.Num(62)}, {Name: "seed", Default: pixelfx.Num(5)}, }, }, New: newEarthSpike, }
EarthSpike is a faceted stone spike that erupts from a cracking, glowing floor with two side shards, then splits and crumbles into rubble. It is registered as "nature/earth-spike".
var HealingBloom = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Healing bloom", Desc: "A sprout pushes up and unfurls, a bud swells and opens round a glowing golden heart in a flare of healing light; its petals lift away one by one as motes.", Tags: []string{"nature", "heal", "flower", "plant", "buff", "ground", "one-shot"}, Size: [2]int{124, 120}, Origin: [2]int{62, 108}, Duration: bloomDuration, Loop: false, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#0c1a10", "#173a1a", "#24582a", "#357a34", "#52a03e", "#86c84e", "#c4ec7a", "#f4ffd0")}, {Name: "petal", Default: pixelfx.Palette("#4a1a3a", "#a8406e", "#ec8ab0", "#ffd8e8")}, {Name: "heart", Default: pixelfx.Palette("#a8641a", "#f0b42e", "#ffe680", "#fffbe0")}, {Name: "seed", Default: pixelfx.Num(4)}, }, }, New: newHealingBloom, }
HealingBloom is a sprout that pushes up and opens into a glowing golden flower in a flare of healing light, then lifts away as petals and motes. It is registered as "nature/healing-bloom".
var LeafStorm = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Leaf storm", Desc: "Leaves tumble up a rising spiral round the character, passing behind and in front, turning and flipping, wrapped in bright bands of wind; litter swirls at their feet.", Tags: []string{"nature", "wind", "leaves", "buff", "aura", "actor", "loop"}, Size: [2]int{112, 104}, Origin: [2]int{56, 92}, Duration: leafStormDuration, Loop: true, FPS: 30, BG: "ground", Actor: 2, Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#1a2420", "#2e4038", "#4a6656", "#7a9a84", "#b4d0b8", "#eef8e8")}, {Name: "leaves", Default: pixelfx.Palette("#123818", "#2f7a2a", "#6cb83a", "#c8f070", "#4a2a08", "#a8701c", "#e8b42e", "#fff09a", "#3a1010", "#9a2e1c", "#e0642a", "#ffb070")}, {Name: "seed", Default: pixelfx.Num(5)}, }, }, Act: &pixelfx.Act{ Poses: []pixelfx.Key{ {T: 0, Pose: leafStormUp}, {T: 0.6, Pose: leafStormUp.With(pixelfx.Lean.Is(2), pixelfx.FY.Is(-40), pixelfx.BY.Is(-33))}, {T: 1.2, Pose: leafStormUp.With(pixelfx.Crouch.Is(-1))}, {T: 1.8, Pose: leafStormUp.With(pixelfx.Lean.Is(-2), pixelfx.FY.Is(-33), pixelfx.BY.Is(-40))}, {T: 2.4, Pose: leafStormUp}, }, }, New: newLeafStorm, }
LeafStorm is a rising spiral of tumbling leaves and wind bands around a character, with swirling litter at their feet. It is registered as "nature/leaf-storm".
var PoisonCloud = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Poison cloud", Desc: "A miasma hugging the floor: ragged sheets of gas lit yellow-green from within, fading to violet, creep out in tongues that curl over at their tips; plumes twist up as ribbons.", Tags: []string{"nature", "poison", "gas", "cloud", "miasma", "toxic", "area", "ground", "loop"}, Size: [2]int{256, 100}, Origin: [2]int{128, 86}, Duration: poisonCloudDuration, Loop: true, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#0e0816", "#24123a", "#3e2056", "#5a3a62", "#6a6a3a", "#96aa30", "#cce040", "#f4ffa0")}, {Name: "spread", Default: pixelfx.Num(1)}, {Name: "seed", Default: pixelfx.Num(3)}, }, }, New: newPoisonCloud, }
PoisonCloud is a miasma hugging the floor: ragged sheets of gas lit yellow-green from within, fading to violet, with curling tongues and twisting ribbon plumes. It is registered as "nature/poison-cloud".
var Quake = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Quake", Desc: "The ground jolts three times: a rift tears out along the floor glowing deep inside, slabs of floor heave up and drop back askew, pebbles hop and dust bursts out of the split.", Tags: []string{"nature", "earth", "quake", "rift", "aoe", "ground", "one-shot"}, Size: [2]int{288, 104}, Origin: [2]int{144, 88}, Duration: quakeDuration, Loop: false, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#0e0c14", "#1a1724", "#211d2d", "#2b2639", "#3a3450", "#4a4263", "#6a6088", "#8e86a8")}, {Name: "glow", Default: pixelfx.Palette("#4a1a0c", "#a8401a", "#ff8a2a", "#ffd27a", "#fff4d0")}, {Name: "reach", Default: pixelfx.Num(118)}, {Name: "seed", Default: pixelfx.Num(12)}, }, }, New: newQuake, }
Quake is three ground jolts that tear a glowing rift along the floor, heave up slabs and shower pebbles and dust. It is registered as "nature/quake".
var RootSnare = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Root snare", Desc: "The floor cracks and roots burst up round the character, spiralling round its legs; they cinch tight with a snap, hold, then crack and crumble into bark and dust.", Tags: []string{"nature", "roots", "plant", "snare", "root", "status", "actor", "one-shot"}, Size: [2]int{128, 96}, Origin: [2]int{64, 78}, Duration: rootSnareDuration, Loop: false, FPS: 30, BG: "ground", Actor: 2, Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#140c08", "#2a1a10", "#46301e", "#64462a", "#86623a", "#a8824e", "#ccaa70", "#ecd6a0")}, {Name: "glow", Default: pixelfx.Palette("#123818", "#2f7a2a", "#6cb83a", "#c8f070")}, {Name: "seed", Default: pixelfx.Num(7)}, }, }, Act: &pixelfx.Act{ Poses: []pixelfx.Key{ {T: -0.24, Pose: pixelfx.Ready.With(pixelfx.FFX.Is(-2), pixelfx.FBX.Is(3))}, {T: 0.3, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(0.9), pixelfx.Lean.Is(-1), pixelfx.Crouch.Is(2), pixelfx.FX.Is(-10), pixelfx.FY.Is(-24), pixelfx.BX.Is(11), pixelfx.BY.Is(-24), pixelfx.FFX.Is(-2), pixelfx.FBX.Is(3))}, {T: 0.62, Pose: rootSnareGrab, How: "snap"}, {T: 0.86, Pose: rootSnareGrab.With(pixelfx.Lean.Is(-3), pixelfx.FY.Is(-37), pixelfx.BY.Is(-27))}, {T: 1.1, Pose: rootSnareGrab.With(pixelfx.Lean.Is(3), pixelfx.FY.Is(-27), pixelfx.BY.Is(-37))}, {T: 1.34, Pose: rootSnareGrab.With(pixelfx.Lean.Is(-3), pixelfx.FY.Is(-37), pixelfx.BY.Is(-27))}, {T: 1.58, Pose: rootSnareGrab.With(pixelfx.Lean.Is(3), pixelfx.FY.Is(-27), pixelfx.BY.Is(-37))}, {T: 1.75, Pose: rootSnareGrab.With(pixelfx.Crouch.Is(6))}, {T: 1.8, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(1.1), pixelfx.Crouch.Is(-1), pixelfx.Y.Is(-3), pixelfx.FX.Is(-14), pixelfx.FY.Is(-36), pixelfx.BX.Is(15), pixelfx.BY.Is(-36), pixelfx.FFX.Is(-3), pixelfx.FFY.Is(-6), pixelfx.FBX.Is(4), pixelfx.FBY.Is(-6)), How: "snap"}, {T: 2.05, Pose: pixelfx.Ready.With(pixelfx.Y.Is(0), pixelfx.Crouch.Is(5))}, {T: 2.7, Pose: pixelfx.Ready.With(pixelfx.FFX.Is(-2), pixelfx.FBX.Is(3))}, }, Hits: []pixelfx.Hit{ {T: 0.62, Stop: 0.05, Shake: 0.1, Amp: pixelfx.Val(1)}, {T: 1.75, Stop: 0.04, Shake: 0.14, Amp: pixelfx.Val(2)}, }, }, New: newRootSnare, }
RootSnare is roots that burst from a cracking floor, spiral round a character's legs, cinch tight, hold, then crumble into bark and dust. It is registered as "nature/root-snare".
var SporeBurst = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Spore burst", Desc: "A toadstool pushes up, swells and trembles as its gills glow, then squashes and puffs a lumpy cloud of glowing spores that billows up and drifts down twinkling.", Tags: []string{"nature", "mushroom", "spores", "poison", "cloud", "ground", "one-shot"}, Size: [2]int{212, 132}, Origin: [2]int{106, 118}, Duration: sporeBurstDuration, Loop: false, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#06141c", "#0c2a34", "#11484e", "#17706a", "#22a08a", "#4cd0a8", "#a8f4d0", "#f0fff6")}, {Name: "cap", Default: pixelfx.Palette("#1a0c1e", "#3a1438", "#62204e", "#8e3462", "#bc5276", "#e88a96")}, {Name: "stem", Default: pixelfx.Palette("#2a2230", "#5a4e5e", "#9a8e98", "#d8ccd0", "#f6eeee")}, {Name: "seed", Default: pixelfx.Num(9)}, }, }, New: newSporeBurst, }
SporeBurst is a toadstool that swells, trembles as its gills glow, then squashes and puffs a lumpy cloud of glowing spores. It is registered as "nature/spore-burst".
var Thorns = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Thorns", Desc: "A seam races along the floor and hooked thorns punch up out of it one after another, each bigger than the last, in bursts of dirt and green light; they hold, then sink.", Tags: []string{"nature", "thorns", "plant", "spikes", "ground", "attack", "one-shot"}, Size: [2]int{232, 92}, Origin: [2]int{48, 78}, Duration: thornsDuration, Loop: false, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#160c0e", "#2e1418", "#4e2224", "#743a30", "#9a5a3e", "#c08458", "#e2b484", "#fbe8c8")}, {Name: "glow", Default: pixelfx.Palette("#123818", "#2f7a2a", "#6cb83a", "#c8f070")}, {Name: "soil", Default: pixelfx.Palette("#120c0c", "#251917", "#3b2a24", "#553d31", "#715440", "#8f6e52", "#b8966e", "#e6d0a8")}, {Name: "count", Default: pixelfx.Num(6)}, {Name: "seed", Default: pixelfx.Num(8)}, }, }, New: newThorns, }
Thorns is a wave of hooked thorns that punch up one after another from a glowing floor seam, hold, and sink back down. It is registered as "nature/thorns".
var Tornado = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Tornado", Desc: "A snaking funnel of spinning wind bands under a flared, churning top that flickers with lightning; leaves and debris whirl round it front and back, dust boils at its foot.", Tags: []string{"nature", "wind", "tornado", "storm", "hazard", "ground", "loop"}, Size: [2]int{196, 168}, Origin: [2]int{98, 152}, Duration: tornadoDuration, Loop: true, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#141221", "#231f33", "#36314a", "#4d4762", "#68617d", "#8a839e", "#b3adc4", "#e2def0")}, {Name: "dust", Default: pixelfx.Palette("#2a2018", "#4e3e2e", "#76624a", "#a08a6a", "#cbb894")}, {Name: "leaves", Default: pixelfx.Palette("#4a200c", "#a8541c", "#e8962e", "#ffd27a", "#123818", "#2f7a2a", "#6cb83a", "#c8f070")}, {Name: "height", Default: pixelfx.Num(112)}, {Name: "seed", Default: pixelfx.Num(4)}, }, }, New: newTornado, }
Tornado is a snaking funnel of spinning wind bands under a churning cloud crown flickering with lightning, whirling leaves, debris and boiling floor dust. It is registered as "nature/tornado".
var ToxicPuddle = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Toxic puddle", Desc: "Black tar lit from inside by chartreuse veins and a glowing rim, an oily sheen drifting on it; glossy bubbles dome, stretch and pop, vapour curls up in fraying ribbons.", Tags: []string{"nature", "poison", "toxic", "sludge", "tar", "puddle", "hazard", "ground", "loop"}, Size: [2]int{176, 100}, Origin: [2]int{88, 86}, Duration: toxicPuddleDuration, Loop: true, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#06070a", "#0c100c", "#141a10", "#1e2814", "#2e3c18", "#5a7a1c", "#a6d42a", "#ecff86")}, {Name: "sheen", Default: pixelfx.Palette("#2a1648", "#5a2e8e", "#1e7a86", "#6adccc")}, {Name: "width", Default: pixelfx.Num(42)}, {Name: "seed", Default: pixelfx.Num(2)}, }, }, New: newToxicPuddle, }
ToxicPuddle is black tar lit from inside by chartreuse veins and a glowing rim, with an oily sheen, glossy popping bubbles and curling vapour ribbons. It is registered as "nature/toxic-puddle".
var VineWhip = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Vine whip", Desc: "A thorny vine bursts from the floor, rears back coiled, then lashes out right in a whip crack that sprays sap and tears off leaves, before sliding back into the ground.", Tags: []string{"nature", "vine", "plant", "whip", "melee", "directional", "one-shot"}, Size: [2]int{216, 128}, Origin: [2]int{60, 114}, Duration: vineWhipDuration, Loop: false, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#0c1a10", "#173a1a", "#24582a", "#357a34", "#52a03e", "#86c84e", "#c4ec7a", "#f4ffd0")}, {Name: "thorn", Default: pixelfx.Palette("#2a1410", "#5e2a1a", "#a04c2e", "#e89a6a")}, {Name: "soil", Default: pixelfx.Palette("#120c0c", "#251917", "#3b2a24", "#553d31", "#715440", "#8f6e52", "#b8966e", "#e6d0a8")}, {Name: "seed", Default: pixelfx.Num(3)}, }, }, New: newVineWhip, }
VineWhip is a thorny vine that bursts from the floor, rears back coiled, lashes out right with a whip crack that sprays sap and tears off leaves, then slides back into the ground. It is registered as "nature/vine-whip".
Functions ¶
This section is empty.
Types ¶
This section is empty.