---
title: "Explosion effect for survival games | Spatial Compiler"
description: "Survival explosions are rare and often at night, from fuel barrels, gas tanks and raids. Use the 3.7 s fireball with a short light flash and a dust ring."
canonical: https://appliedmanifold.com/effects/survival-explosion-effect/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Effects](https://appliedmanifold.com/effects/)
3.  [VFX for games](https://appliedmanifold.com/effects/vfx-for-games/)
4.  Survival explosions

GAMES // SURVIVAL EXPLOSION

# Explosion effects for a survival game

Explosions in your survival game are rare and often happen at night, when a fuel barrel, a gas tank or a raid charge goes off near the player's base. Use a 3.7 s fuel fireball with a dust ring under it, and add a short, bright light flash so the blast lights the dark around it.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [See the examples →](https://appliedmanifold.com/docs/pyrofx/examples/)

-   Godot 4 Available
-   Unity Manual setup
-   Unreal Engine Manual setup
-   Roblox Studio Manual setup
-   three.js Available

A draft compile is from $0.05, and new accounts start with $5 of usage.

**FIREBALLFINAL**

![First frame of the fireball bake](/bakes/fireball/poster.webp)

Fireball, 9.4 x 13.4 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-fireball)

01 // AT NIGHT

## A blast that lights the dark

The fireball's flame is added as HDR light, so with `WorldEnvironment` glow it blooms against a night sky. To light the ground, the walls of the base and the trees nearby, spawn an `OmniLight3D` at the blast and fade it out over about a second.

blast\_light.gd

```
extends Node3D

func flash(at: Vector3) -> void:
	var light := OmniLight3D.new()
	light.light_color = Color(1.0, 0.6, 0.3)
	light.omni_range = 20.0
	light.light_energy = 8.0
	add_child(light)
	light.global_position = at + Vector3.UP * 3.0
	var tween := light.create_tween()
	tween.tween_property(light, "light_energy", 0.0, 1.2)
	tween.finished.connect(light.queue_free)
```

One light per blast is fine in a survival game, where explosions come one or two at a time.

02 // WHAT YOU GET

## A fuel explosion sized for barrels and vehicles

The fireball example is a fuel explosion that bursts from the ground and rolls upward, up to 9.4 m wide and 13.4 m tall over 3.7 s, which suits a vehicle or a fuel store. For a single barrel, scale the scene to about half.

The dust ring spreads 10.5 m along the ground in 2.1 s. Start it on the same frame and at the same point as the fireball; both scenes have their origin on the ground.

03 // HOW TO

## Set it off from a damage event in Godot 4

1.  Ask your agent to compile `fireball` and `dust_ring` at final quality into `res://fx/` and call `wire` on each.
2.  When the barrel's health reaches zero, hide the barrel and instance both scenes at its base.
3.  Spawn the light flash in the same function, and apply damage to anything inside your blast radius on that frame.
4.  Free the dust ring after its 3 s clip and the fireball after its 4 s clip.

04 // REAL OUTPUT

## Fireball and ground ring

Both are one-shots, 3.7 s and 2.1 s.

**DUST\_RINGFINAL**

![First frame of the dust\_ring bake](/bakes/dust_ring/poster.webp)

Dust ring, 10.5 x 2.2 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-dust_ring)

05 // RELATED

## Related pages

-   [Godot explosion Godot 4An explosion that plays once, a ground fireball or a shell impact, dropped into a Godot 4 scene by your agent.](https://appliedmanifold.com/effects/godot-explosion/)
-   [Shooter explosionsHow big the fireball and impact compiles read in a first-person shooter, and how to compile and trigger them for close range.](https://appliedmanifold.com/effects/shooter-explosion-effect/)
-   [Platformer explosionsScale the side-on fireball and impact to your platformer characters, and land each blast with hit pause and camera shake.](https://appliedmanifold.com/effects/platformer-explosion-effect/)
-   [Survival campfireTurn the fire compile into a survival campfire that holds up a meter away and lights the camp until its fuel runs out.](https://appliedmanifold.com/effects/survival-fire-effect/)
-   [HDR emissive fireHDR emissive fire stores flame brightness above white, so bloom makes the core glow while the smoke stays lit by the scene.](https://appliedmanifold.com/learn/hdr-emissive-fire/)
-   [One-shot explosion Godot 4Build a GPUParticles3D explosion in Godot 4 that plays once and frees itself, by hand or from a wired fireball scene.](https://appliedmanifold.com/guides/godot-one-shot-explosion/)
-   [Bake and wireCall `bake` with a `.pyro.toml` spec and an output folder, then `wire` to write a Godot 4 scene with the six-way shader. `check`, `schema` and `sweep` support the loop.](https://appliedmanifold.com/docs/pyrofx/bake-and-wire/)

[All pages in VFX for games →](https://appliedmanifold.com/effects/vfx-for-games/)

[← Survival smoke](https://appliedmanifold.com/effects/survival-smoke-effect/)[Tower defense explosions →](https://appliedmanifold.com/effects/tower-defense-explosion-effect/)

06 // FAQ

## Survival explosion questions

[All questions →](https://appliedmanifold.com/faq/)

**README.SURVIVAL\_EXPLOSION\_EFFECT**

### How do I make a single shot explosion effect with GPUParticles3D in Godot?

Enable one\_shot, set emitting to true when the barrel blows and connect finished to queue\_free or free a single scene after 4 s.

### How do I play a survival explosion sprite sheet on a billboard in Godot?

Set Billboard Mode to Particle Billboard and Particles Anim H and V Frames to 8 on StandardMaterial3D or use the generated scene.

### Is there a 3D fireball for a survival game in Godot?

Yes. The fireball example is a 3.7 s single shot fuel explosion written as a 3D scene lit by sun and ambient light.

### Do I need particles for a rare explosion in a survival game?

No. One precomputed quad carries the whole fireball, so you only need GPUParticles3D when many explosions play at once.

## Compile your first effect

You pay per compile and see the price before it runs. New accounts start with $5 of usage.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [Bake and wire →](https://appliedmanifold.com/docs/pyrofx/bake-and-wire/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
