Procgen Effects Showcase
- ..
- .metadata419 B
- README.md1.4 KB
- graph.json127 KB
- init.luau25.0 KB
- preview.png37.2 KB
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" })
| Output | What it draws |
|---|---|
stone | The wall's blocks, the breach's blocks while they stand, and the debris |
fire | The fireball at the wall face |
sparks | Sparks thrown out with the debris |
shock | The shock ring on the ground |
smoke | Smoke rising from the breach |
dust | Dust rolling out across the ground |
light | The light of the blast |
The timeline has no end and plays at 60 fps.