Vǫrðr Forge Steam page

Art, Audio and Interface

Effects and Particles

Every effect is a named recipe. Spells, guns, combat, scripts and placed art all call effects by name. A spell or a gun naming an effect that does not exist simply shows nothing.

The engine ships 34 effects in its own particles.vfa: hit sparks, spell casts and hits for each school, gun smoke, dust, embers, loot beams and more. A project that writes its own assets/data/particles.vfa replaces it entirely.

The particles live on the graphics card, up to 65,536 alive at once.

A recipe

One fx row per effect, its numbers as fields:

comp fx hit_spark -1 -
field count 10
field life 0.35
field speed 240
field spread 360
field dir 0
field grav 500
field size 3
field c1 FFD870
field c2 C85818
count
Particles per burst (1 to 80).
life
Seconds each lives; each is a little shorter or longer.
speed
Launch speed in pixels per second; each is a little slower or faster.
spread
The width of the cone in degrees (360 is every direction).
dir
The cone's centre: 0 right, 90 down, 270 up.
grav
Pull per second; negative rises.
size
1 to 12 pixels. Particles shrink as they fade.
c1, c2
Hex colours; each particle fades from the first to the second. Without c2 it keeps c1.
lit
on when the effect catches light instead of being light (water, dust).
rise
on and the cone's up and down becomes height, so it climbs straight up in every view (the loot beams, item_burning).

Particles draw above the lighting, so at night they read as small lights: embers, sparks, magic. A lit effect wears the night like everything else.

Who fires them

Combat
hit_spark when a swing lands, death_puff when anything falls.
Spells
The spell's fx line.
Guns
The item's muzzlefx, trailfx and impactfx.
Scripts
fx <name> [x y | player | a villager | a tagged prop]. Without a place, at the player. fxon <tag> and fxoff <tag> light and put out every placed effect wearing that tag.
Art
an emit row in particles.vfa, fields image, fx and every: every placed copy of that picture breathes the effect on that clock.

The Effects window

Tools > Effects... lists the project's effects, each with its colour. + New adds one and Delete removes the picked one; click the name to rename it. Every number has a box to type in and - and + to step it, Shift for ten. rises and Lit switch those two, and the preview plays the effect as you change it.

Test in World fires it on the map, and Place on map puts one down where it keeps playing. Placed effects are listed in the Outliner. Save writes your changes, Revert drops them, and Get Library adds the engine's effects that your project's file does not have yet, without touching the ones it does.

The Effects window on cast_fire.
The Effects window on cast_fire.