Справочник API собран из Go doc-комментариев в исходном коде и написан на английском языке.
package holy
import "github.com/nsgo-dev/game/pkg/pixelfx/holy"Обзор
Package holy is pixelfx's holy category: blessings, divine shields, feather bursts, halos, heals and healing rings, holy pillars, resurrections, smites and sunbursts, each a pixelfx.Effect registered as "holy/<name>" when the package is imported.
Указатель
Переменные
var Blessing = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Blessing",
Desc: "A soft cone of light rests on the character from above; sparkles drift down through it, twinkling, and wink out where they land on the head and shoulders.",
Tags: []string{"holy", "blessing", "buff", "light", "sparkle", "character", "loop"},
Size: [2]int{80, 128},
Origin: [2]int{40, 108},
Duration: blessingT,
Loop: true,
FPS: 30,
BG: "ground",
Actor: 2,
Options: []pixelfx.Option{
{Name: "palette", Default: goldPalette()},
{Name: "seed", Default: pixelfx.Num(7)},
},
},
Act: &pixelfx.Act{
OnBody: true,
Poses: []pixelfx.Key{
{T: 0, Pose: blessingOpen},
{T: 0.75, Pose: blessingOpen.With(pixelfx.FY.Is(-33), pixelfx.BY.Is(-33))},
{T: 1.5, Pose: blessingOpen.With(pixelfx.Crouch.Is(-1), pixelfx.FY.Is(-35), pixelfx.BY.Is(-35))},
{T: 2.25, Pose: blessingOpen.With(pixelfx.FY.Is(-33), pixelfx.BY.Is(-33))},
{T: 3, Pose: blessingOpen},
},
},
New: newBlessing,
}Blessing is a soft cone of light resting on the character from above; sparkles drift down through it, twinkling, and wink out where they land on the head and shoulders. It is registered as "holy/blessing".
var DivineShield = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Divine shield",
Desc: "A bubble of gold light round the character: a bright rim and a thin gold film, meridians turning like a slow globe, a sheen sweeping across and sparkles winking on it.",
Tags: []string{"holy", "shield", "bubble", "barrier", "buff", "character", "loop"},
Size: [2]int{88, 84},
Origin: [2]int{44, 68},
Duration: shieldT,
Loop: true,
FPS: 30,
BG: "ground",
Actor: 2,
Options: []pixelfx.Option{
{Name: "palette", Default: goldPalette()},
{Name: "radius", Default: pixelfx.Num(29)},
{Name: "seed", Default: pixelfx.Num(8)},
},
},
Act: &pixelfx.Act{
OnBody: true,
Poses: []pixelfx.Key{
{T: 0, Pose: shieldBrace},
{T: 0.6, Pose: shieldBrace.With(pixelfx.Crouch.Is(4))},
{T: 1.2, Pose: shieldBrace.With(pixelfx.FY.Is(-35), pixelfx.Crouch.Is(3))},
{T: 1.8, Pose: shieldBrace.With(pixelfx.Crouch.Is(4))},
{T: 2.4, Pose: shieldBrace},
},
},
New: newDivineShield,
}DivineShield is a bubble of gold light round the character: a bright rim and a thin gold film, meridians turning like a slow globe, a sheen sweeping across and sparkles winking on it. It is registered as "holy/divine-shield".
var FeatherBurst = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Feather burst",
Desc: "A white puff pops and throws feathers that brake hard, then rock from side to side as they sink and fade, with down drifting after them.",
Tags: []string{"holy", "feather", "burst", "poof", "angel", "bird", "one-shot"},
Size: [2]int{160, 160},
Origin: [2]int{80, 60},
Duration: 3,
Loop: false,
FPS: 30,
BG: "dark",
Options: []pixelfx.Option{
{Name: "palette", Default: pixelfx.Palette("#4a4560", "#7a7494", "#aaa5c2", "#d6d3e6", "#f4f3fa", "#ffffff")},
{Name: "glow", Default: pixelfx.Color("#fff0c0")},
{Name: "seed", Default: pixelfx.Num(4)},
},
},
New: newFeatherBurst,
}FeatherBurst is a white puff that pops and throws feathers that brake hard, then rock from side to side as they sink and fade, with down drifting after them. It is registered as "holy/feather-burst".
var Halo = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Halo",
Desc: "A ring of gold light floats over the head with a glint running round it; fine dust sifts down from it and the head catches its light.",
Tags: []string{"holy", "halo", "saint", "buff", "glow", "character", "loop"},
Size: [2]int{56, 80},
Origin: [2]int{28, 70},
Duration: haloT,
Loop: true,
FPS: 30,
BG: "ground",
Actor: 2,
Options: []pixelfx.Option{
{Name: "palette", Default: goldPalette()},
{Name: "seed", Default: pixelfx.Num(5)},
},
},
Act: &pixelfx.Act{
OnBody: true,
Poses: []pixelfx.Key{
{T: 0, Pose: haloPray},
{T: 0.5, Pose: haloPray.With(pixelfx.Crouch.Is(1))},
{T: 1, Pose: haloPray.With(pixelfx.Crouch.Is(1), pixelfx.HY.Is(2))},
{T: 1.5, Pose: haloPray.With(pixelfx.Crouch.Is(1))},
{T: 2, Pose: haloPray},
},
},
New: newHalo,
}Halo is a ring of gold light floating over the head with a glint running round it; fine dust sifts down from it and the head catches its light. It is registered as "holy/halo".
var Heal = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Heal",
Desc: "Petals of light bloom under the feet, a hoop of light rises up the body restoring its colour and leaving sparkles, and motes spiral up and pop into tiny hearts.",
Tags: []string{"holy", "heal", "restore", "buff", "petals", "hearts", "character", "one-shot"},
Size: [2]int{80, 104},
Origin: [2]int{40, 92},
Duration: 1.9,
Loop: false,
FPS: 30,
BG: "ground",
Actor: 2,
Options: []pixelfx.Option{
{Name: "palette", Default: pixelfx.Palette("#3d2027", "#7d3f35", "#c97a4a", "#f2b46a", "#ffd994", "#fff0cf", "#fffaf2", "#ffffff")},
{Name: "seed", Default: pixelfx.Num(2)},
},
},
Act: &pixelfx.Act{
OnBody: true,
Poses: []pixelfx.Key{
{T: -0.3, Pose: healHurt},
{T: 0.16, Pose: healHurt.With(pixelfx.Crouch.Is(6))},
{T: 0.5, Pose: healHurt.With(pixelfx.Crouch.Is(3), pixelfx.Lean.Is(1), pixelfx.HY.Is(0))},
{T: 0.78, Pose: healUp},
{T: 1.2, Pose: healUp.With(pixelfx.Crouch.Is(0), pixelfx.FY.Is(-30), pixelfx.BY.Is(-30), pixelfx.HY.Is(0))},
{T: 1.9, Pose: pixelfx.Ready},
},
},
New: newHeal,
}Heal is petals of light blooming under the feet, a hoop of light rising up the body restoring its colour and leaving sparkles, and motes spiralling up to pop into tiny hearts. It is registered as "holy/heal".
var HealAoe = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Healing ring",
Desc: "A seed of green light sinks into the floor and a soft ring rolls out from it; the floor glows where it passes and plus signs sprout and float up.",
Tags: []string{"holy", "heal", "aoe", "ring", "plus", "ground", "one-shot"},
Size: [2]int{256, 136},
Origin: [2]int{128, 104},
Duration: 2.9,
Loop: false,
FPS: 30,
BG: "ground",
Options: []pixelfx.Option{
{Name: "palette", Default: greenPalette()},
{Name: "reach", Default: pixelfx.Num(104)},
{Name: "seed", Default: pixelfx.Num(6)},
},
},
New: newHealAoe,
}HealAoe is a healing ring: a seed of green light sinks into the floor and a soft ring rolls out from it; the floor glows where it passes and plus signs sprout and float up. It is registered as "holy/heal-aoe".
var HolyPillar = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Holy pillar",
Desc: "Light breaks through from above: a sun opens at the top and a fan of shafts converges on the mark, pulsing, while a sigil burns on the floor; then the fan folds shut.",
Tags: []string{"holy", "pillar", "light", "rays", "aoe", "sigil", "ground", "one-shot"},
Size: [2]int{192, 232},
Origin: [2]int{96, 204},
Duration: 3.5,
Loop: false,
FPS: 30,
BG: "ground",
Options: []pixelfx.Option{
{Name: "palette", Default: goldPalette()},
{Name: "shafts", Default: pixelfx.Num(7)},
{Name: "seed", Default: pixelfx.Num(3)},
},
},
New: newHolyPillar,
}HolyPillar is light breaking through from above: a sun opens at the top and a fan of shafts converges on the mark, pulsing, while a sigil burns on the floor; then the fan folds shut. It is registered as "holy/holy-pillar".
var Resurrection = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Resurrection",
Desc: "Light pours down on the fallen and life climbs back up the body; wings of light unfold, a halo forms, one great wingbeat, then the wings scatter into feathers.",
Tags: []string{"holy", "revive", "resurrect", "wings", "halo", "light", "character", "one-shot"},
Size: [2]int{192, 160},
Origin: [2]int{96, 140},
Duration: 4.8,
Loop: false,
FPS: 30,
BG: "ground",
Actor: 2,
Options: []pixelfx.Option{
{Name: "palette", Default: goldPalette()},
{Name: "ash", Default: ashPalette()},
{Name: "seed", Default: pixelfx.Num(5)},
},
},
Act: &pixelfx.Act{
OnBody: true,
Follow: pixelfx.Val(0.6),
Poses: []pixelfx.Key{
{T: 0, Pose: resDown},
{T: 0.5, Pose: resDown},
{T: 0.85, Pose: resDown.With(pixelfx.Crouch.Is(6), pixelfx.Lean.Is(4), pixelfx.HY.Is(1))},
{T: 1.15, Pose: resKneel},
{T: 1.5, Pose: resRisen.With(pixelfx.Y.Is(-2))},
{T: 1.95, Pose: resRisen.With(pixelfx.Y.Is(-3))},
{T: 2.1, Pose: resRisen.With(pixelfx.Y.Is(-2), pixelfx.Crouch.Is(1), pixelfx.FY.Is(-37), pixelfx.BY.Is(-37))},
{T: 2.3, Pose: resRisen.With(pixelfx.Y.Is(-9), pixelfx.FX.Is(-15), pixelfx.FY.Is(-38), pixelfx.BX.Is(16), pixelfx.BY.Is(-38))},
{T: 2.95, Pose: resRisen.With(pixelfx.Y.Is(-6))},
{T: 3.8, Pose: resKneel.With(pixelfx.Y.Is(0))},
{T: 4.3, Pose: pixelfx.Ready},
{T: 4.8, Pose: pixelfx.Ready},
},
Dust: []pixelfx.DustKick{{T: 3.8, X: 0, N: 5}},
},
New: newResurrection,
}Resurrection is light pouring down on the fallen while life climbs back up the body; wings of light unfold, a halo forms, one great wingbeat, then the wings scatter into feathers. It is registered as "holy/resurrection".
var Smite = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Smite",
Desc: "A glint marks the spot, then a bolt of light drops like a hammer: a white flash, a shockwave over the floor, stone chips flying and cracks that glow and cool.",
Tags: []string{"holy", "smite", "strike", "impact", "light", "ground", "one-shot"},
Size: [2]int{224, 176},
Origin: [2]int{112, 148},
Duration: 2.8,
Loop: false,
FPS: 30,
BG: "ground",
Options: []pixelfx.Option{
{Name: "palette", Default: goldPalette()},
{Name: "stone", Default: pixelfx.Color("#5a5066")},
{Name: "seed", Default: pixelfx.Num(9)},
},
},
New: newSmite,
}Smite is a glint marking the spot, then a bolt of light dropping like a hammer: a white flash, a shockwave over the floor, stone chips flying and cracks that glow and cool. It is registered as "holy/smite".
var Sunburst = &pixelfx.Effect{
Meta: pixelfx.Meta{
Name: "Sunburst",
Desc: "A white-hot core in a gold corona; long and short rays turn slowly round it, breathing, with glints running out along them that wink at the tips.",
Tags: []string{"holy", "sun", "radiant", "rays", "light", "glow", "loop"},
Size: [2]int{128, 128},
Origin: [2]int{64, 64},
Duration: sunburstT,
Loop: true,
FPS: 30,
BG: "dark",
Options: []pixelfx.Option{
{Name: "palette", Default: goldPalette()},
{Name: "rays", Default: pixelfx.Num(8)},
{Name: "seed", Default: pixelfx.Num(3)},
},
},
New: newSunburst,
}Sunburst is a white-hot core in a gold corona; long and short rays turn slowly round it, breathing, with glints running out along them that wink at the tips. It is registered as "holy/sunburst".