Log inGet started
World

Procgen Effects Showcase

Branchmain
Branchesmain
Commit99ff90d12c

README.md

wall_blast

A charge blowing a breach through a stone block wall, on a 9.6 s loop. The wall stands whole, a fireball bursts from its face a second in, the blocks around the breach are thrown out as tumbling, glowing debris with a spray of sparks, a shock ring runs out across the ground, and dust and smoke roll out and settle. Over the first fifth of a second of the next loop the breach knits back in.

Everything is a function of the graph clock modulo the loop, so it repeats with no solver ever restarting. The wall runs along x at z = 8 in the generator's own space, and its blocks and debris are drawn with the blast_stone shader, the fire, smoke and dust with blast_puff, the sparks with blast_spark and the shock ring with blast_shock.

-- `graph` is this graph's reference: the AssetRef `asset.resolve` or a search returns for it.
local e = entity.spawn("wall_blast", { position = { 0, 0, 0 } })
e.component.add("Generator", { graph = graph, playOn = "load", ending = "loop" })
OutputWhat it draws
stoneThe wall's blocks, the breach's blocks while they stand, and the debris
fireThe fireball at the wall face
sparksSparks thrown out with the debris
shockThe shock ring on the ground
smokeSmoke rising from the breach
dustDust rolling out across the ground
lightThe light of the blast

The timeline has no end and plays at 60 fps.