Status
SteamPeaks
ChartsSalesUpcomingPatchesNewsCalculator
New on SteamEvery app, DLC and depot the minute Steam creates itAppsEvery app on Steam, newest change firstPackagesSubs and bundles, and what each containsDepotsDepots, manifests and install sizesTagsSteam's user tags and the games under themDevelopers & publishersCompanies and their cataloguesTechnologiesEngines, SDKs and anti-cheat found in the filesChange historyEvery PICS changelist as it lands
SignalsNineteen readings of the whole catalogueCompareAny games side by sideRecordsAll-time peaks and the days they were setReportsWeekly and monthly write-upsAlerts & newsroomWatch a game, get told when it movesSteam statusIs Steam up, right nowWeb API explorerTry the endpoints in the browser
NewsSteam's own announcements and the sales calendarCalculatorWhat a Steam account is worth, and its pile of shame
/
Sign in
/
SteamPeaks
The ultimate resource for Steam data.
ExploreChartsSalesSales and festsUpcomingPatchesNewsRecordsTrendingSignals
DatabaseAppsPackagesDepotsTagsDevelopersTechnologiesChange history
ToolsCalculatorCompareSearchAlertsSteam statusAPI
SiteMethodologyFAQDiscordSupportSign in via Steam
Not affiliated with Valve or Steam. Game names and artwork belong to their owners. All times UTC.
PrivacyCookiesFair useStatus
Painted Kingdoms: Tower Defense & FirefightingNewsDev Diary - Burning Down the House: Fire as Gameplay
Community

Dev Diary - Burning Down the House: Fire as Gameplay

Painted Kingdoms: Tower Defense & Firefighting · published 7 Apr 2026, 15:04 UTC

All newsPlayers around this dateRead on Steam

We get this question a lot: why build the whole game around fire? Honestly, we needed something that would mess with the player's plans. Enemies alone weren't enough , you learn their patterns and eventually you're just optimizing a build order. Fire doesn't care about your build order. It shows up, it spreads, and you have to deal with it now. Making that actually work at 60fps on a world made of paper was a different problem entirely

The Problem: Tower Defense Needs an Edge

Early on, we knew we wanted to make a tower defense game that didn't feel like every other tower defense game. Enemies are predictable. You learn their patterns, optimize your build, and eventually the challenge flattens out. We needed something unpredictable and relentless; something that forced you to react, not just plan.

Fire solved that problem, and then created about twelve new ones: how do you simulate fire spreading across an entire map in real-time without destroying performance?

Stock fire particle systems couldn't handle it. Unity's terrain tools weren't built for dynamic, spreading burn states. And we needed the fire to look as good as it felt organic and unsettling

The Solution: Two Systems Working Together

System 1: The Fire Grid (Gameplay Interactions)

The fire simulation runs on a coarse grid, think of it like a chessboard overlay on the world. Each cell tracks three things: heat, fuel remaining, and temperature. This is just gameplay data. It tells us where fire should be positioned.

This grid is the interface with fire for most of the gameplay systems:

  • Buildings heat up and ignite based on nearby cells

  • Burnt ground speeds up fire spread (chain reaction mechanic)

  • Water from towers or the player's hose directly affects cell temperature

  • Enemies react to fire zones (they heal in flames, move faster on burnt ground)

The trick: Only cells that change get recalculated each frame. If a section of the map isn't heating up or cooling down, the system ignores it. This keeps performance stable even when half the map is on fire.

System 2: The Fire Particle System

The grid tells us where the fire is. Particles tell us how it moves. Fire particles represent the active front the leading edge of the blaze. They're not simulating every flame; they're simulating the shape of the fire as it spreads.

Here's where it gets interesting:

  • Particles start out from predefined patterns (circles expanding from buildings, lines advancing like a wildfire front, arcs curving around obstacles)

  • If the front gets too stretched out, particles split to fill gaps; this keeps the fire front cohesive

  • Particles heat both the grid and buildings directly

Some examples:

  • A building on fire spawns a circular fire pattern that expands outward

  • Enemy fire attacks can create targeted fire lines that target specific buildings or even follow the player

  • Wave-based fire events can spawn custom shapes (fronts, curves, clusters)

The result: Fire feels alive. It doesn't just tick boxes on a grid, it moves like it's looking for something to burn

From Prototype to Product

Everything in gaming requires iteration. The first fire prototype was a basic shader that turned paper brown when it "burnt." It looked okay, but it didn't feel threatening.

Then we added the particle system. Suddenly, fire had direction. You could see it coming. You could predict where it would go next, but only if you were paying attention.

The last thing we added was lighting. Fire particles generate light based on how dense they are in an area, so as the fire grows, that whole section of the map starts glowing. It actually makes it harder to keep track of what's happening, shadows move around, the battlefield looks different than it did ten seconds ago. We didn't plan for that but it ended up being one of the best parts. You catch yourself watching the fire instead of playing

We cluster light sources dynamically. If 20 particles are close together, we spawn one bright light instead of 20 dim ones. It looks better and runs faster. Little optimizations like that add up.

Why This Matters to You

Here's what this system enables in actual gameplay:

Control It Early, or Lose Control Entirely

Fire spreads through chain reactions. One burning building can create a new fire wavefront around it. This can ignite other buildings, and burns the ground. Even if you extinguish the fire, that burnt ground speeds up the next fire. If you don't extinguish threats early, they compound very fast.

Meaningful Trade-Offs

  • Do you defend your economy buildings or your Paint Wells?

  • Do you paint terrain to slow fire or build more water collectors?

  • Do you risk to let a section burn to trigger special bonuses? For example, some buildings generate more resources when surrounded by burnt ground.

The Tools We Use

For anyone curious about the tech stack:

  • Unity Jobs System for grid and particle calculations (parallel processing keeps frame rates stable)

  • Compute shaders for visual texture generation (the burnt paper effect, edge smoothing, noise)

  • Custom visual particle pooling (thousands of fire particles = one memory-efficient system)

  • Dynamic light clustering (performance trick that makes fire glow without tanking FPS)

The fire grid updates at ~20ms intervals. Visual updates happen every frame, but only for dirty cells. The particle system runs independently at the same interval and syncs with the grid for gameplay effects.

What's Next

We're still tuning fire behaviour for different biomes. In desert regions, sunlight and shadow will affect spread rates (fire moves faster in direct sun). In mountainous areas, slope and wind will create unpredictable patterns.

If you want to see fire in action, stay tuned for our next demo.

Wishlist Painted Kingdoms if this kind of systems-driven design sounds interesting and comment if you want to know of other systems.

Thanks for reading. Don't let your Painted Kingdoms burn.

More from Painted Kingdoms: Tower Defense & Firefighting

Other announcements

All news
Game update31 Jul 2026Hotfix - 0.9.18Gameplay · Issue that caused biome to evolve at weird times, even if you were not painting with this color. · Issue with rally points during the night. · Issue with dens not respawning units if the ground under it was burnt but the building was still alive. · Issue with Retry from last wave that could removed some buildings. Levels · Remove some inaccessible trees that were messing with units s…Game update27 Jul 2026Demo Update - 0.9.12Changes Menus/UI · Improved biome descriptions when close to a Paint Well. · Improved readability of biome evolution conditions. · Improved information in the Level selection about what can be unlocked in the demo. · Links to join us or leave feedback have been made more consistent. We need your feedbacks to make a better game. · Cleaned up some menus (Pause, end game, etc.) · You can now see t…Game update3 Jul 2026Hotfix - 0.8.9Gameplay · Fix a blocking issue when picking up Meadow "Rabbits Fighters" evolution.