---
title: "Explosion effect for tower defense games"
description: "A tower defense explosion shows the splash radius. Scale the fireball so its width matches the damage area, and play late-wave blasts from one node."
canonical: https://appliedmanifold.com/effects/tower-defense-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.  Tower defense explosions

GAMES // TOWER DEFENSE EXPLOSION

# Explosion effects for a tower defense game

In tower defense, an explosion tells your player how far a tower's splash damage reaches, so size the blast to the damage radius. Use a 3.7 s fireball for heavy towers and a boss's death, scale it so its width matches the splash area, and emit late-wave blasts from one particle node.

[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 // SPLASH RADIUS

## Match the blast to the damage area

The fireball compile is 9.4 m wide at its widest. For a mortar tower with a 3 m splash radius (6 m across), scale the scene to about 0.64 so the burst covers the ground the damage covers. Players learn tower ranges from what they see.

splash.gd

```
extends Node3D

const FIREBALL := preload("res://fx/fireball.tscn")
const BAKED_WIDTH_M := 9.4

func show_splash(at: Vector3, radius_m: float) -> void:
	var fx: Node3D = FIREBALL.instantiate()
	add_child(fx)
	fx.global_position = at
	fx.scale = Vector3.ONE * (radius_m * 2.0 / BAKED_WIDTH_M)
	get_tree().create_timer(4.0).timeout.connect(fx.queue_free)
```

The scene's origin sits on the ground, so it scales around the hit point.

02 // LATE WAVES

## When thirty blasts land in a second

Late waves bunch enemies together, and several splash towers fire into the same crowd. Ask your agent to call `wire` with `set: ["node=particles"]` for a `GPUParticles3D` and emit each blast from it. Cap how many fireballs play at once, and use the smaller impact compile past the cap.

Blasts over one crowd overlap, and every overlapping transparent pixel is drawn again (overdraw). A fireball scaled to 0.64 and seen from 30 m is about 140 px wide on a 1080p screen, so thirty in one spot still cost real frame time. At that size `export.tile_px = 128` is close to the screen size and cuts each sheet to 1024 px.

03 // BIG MOMENTS

## Boss deaths and a lost base

Keep the full-size fireball, 13.4 m tall, for moments the player should notice: a boss dying on the path or the base taking its last hit. Add the 10.5 m dust ring under it, on the same origin, for the ground shock.

04 // REAL OUTPUT

## The fireball and its ground shock

The full-size fireball stands 13.4 m tall over a dust ring 10.5 m wide.

**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/)
-   [Strategy explosionsSize strategy explosions for a far camera with smaller tiles, and play a whole battle's blasts from one particle node with few real lights.](https://appliedmanifold.com/effects/strategy-explosion-effect/)
-   [Tower defense impactsPool tower defense projectile hits in one particle node per tower, with the impact compile sized for the camera and the shell.](https://appliedmanifold.com/effects/tower-defense-impact-effect/)
-   [Tower defense firePlay the 2 s fire loop for exactly as long as a tower defense burn zone lasts, and keep the fire whirl for big attacks.](https://appliedmanifold.com/effects/tower-defense-fire-effect/)
-   [Particle systemA particle system spawns and updates many small sprites or meshes from an emitter to make sparks, smoke, rain and fire.](https://appliedmanifold.com/learn/particle-system/)
-   [Particle performance Godot 4Find and cut the real costs of particle effects in Godot 4: overdraw, shadows, off-screen work and oversized sprite sheets.](https://appliedmanifold.com/guides/godot-particle-performance/)
-   [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 explosions](https://appliedmanifold.com/effects/survival-explosion-effect/)[Tower defense impacts →](https://appliedmanifold.com/effects/tower-defense-impact-effect/)

06 // FAQ

## Tower defense explosion questions

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

**README.TOWER\_DEFENSE\_EXPLOSION\_EFFECT**

### Should a tower defense explosion use a particle effect?

Yes when late waves trigger many blasts at once. One GPUParticles3D draws every explosion cheaper than spawning a scene per blast.

### How should frames be arranged in a tower defense VFX sprite sheet?

Frames are arranged row by row from the top left, 8 across and 8 down for 64 frames, as recorded in layout.json.

### What frame rate should I use for a scaled down tower defense explosion?

Start with the frame times in layout.json over 4 s or play it faster to make a small splash tower blast feel lighter.

### How do I size a tower defense explosion to a tower's splash damage?

Divide the splash diameter by the fireball's 9.4 m width and use that ratio as the scale, such as 0.64 for a 3 m radius.

## 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/)
