Godot Destruction Core – Godot 4 2D destruction, collapse & chain reaction kit

Blow it up, watch it fall, let it burn: deterministic 2D destruction for Godot 4.

Godot Destruction Core: deterministic 2D destruction for Godot 4 in typed GDScript: destructible cell terrain, structural collapse, chain reactions and fire. Free MIT Lite on GitHub (82 headless tests), Pro on itch.io (142 headless tests).

Godot Destruction Core – Godot 4 2D destruction kit cover
Built with Godot Destruction Core — footage from Toonforce (in development)

Get it

Engine: Godot 4.6+ (tested on 4.7.2) · Language: typed GDScript · Version 0.2.2 · Run tests: bash tools/run_tests.sh

Lite vs Pro

FeatureLite (free, MIT)Pro (EULA)
Cell grid, materials (integer hp, resistances, anchors, rubble), damage shapes with falloff✅✅
Single detonations, budgeted scheduler, signals✅✅
Determinism: integer state, SHA-256 digest, snapshot/restore, per-player instigator credit✅✅
Structural collapse: resumable support check (no size cap), falling pieces, rubble, crush damage✅✅
Debris pool, basic feel (shake, once-per-chain hitstop, reduced motion)✅✅
TileMapLayer renderer, per-chunk merged collision✅✅
Demo UI kit: own pixel font, styled HUD, comic callouts (MIT)✅✅
Chain reactions (DKChainReactor): fuses, merging, per-tick budget, runaway caps, barrels/triggers, explosive materials–✅
Fire (DKFire): deterministic spread, burn-out to ash/charcoal, burnt supports collapse, flames light barrels–✅
Load-based stress (DKStress): shear and crush failure, budgeted sweeps, analysis-only heat map–✅
Image/mask import (DKMaskAdapter): alpha or palette images to the grid, mask carve stamps, grid to image–✅
Debug overlays: chain graph, stress heat map, "why did this fall?" inspector, frame-budget HUD–✅
Command log and replay (DKCommandLog): record, replay to an identical hash, checkpoints, save/load–✅
Demos"Collapse" (2 local players)+ "Fire Sale" run-and-gun demo (O = debug overlays)
Web builds (HTML5 export presets)Collapse+ Fire Sale
Headless tests82142 (82 Lite + 60 Pro)
LicenceMITCommercial per-seat EULA

Features

Not included

Preview

Godot Destruction Core Fire Sale demo: barrel chain reaction

Screenshots

Godot Destruction Core screenshot: toonforce chain finale
Built with Godot Destruction Core — footage from Toonforce (in development)
Godot Destruction Core screenshot: toonforce domino row
Built with Godot Destruction Core — footage from Toonforce (in development)
Godot Destruction Core screenshot: fire sale depot tank chain
Godot Destruction Core screenshot: fire sale barrel chain boardwalk
Godot Destruction Core screenshot: fire sale barn fire
Godot Destruction Core screenshot: fire sale water tower collapse
Godot Destruction Core screenshot: fire sale cabin crash
Godot Destruction Core screenshot: debug overlays why did this fall
Godot Destruction Core screenshot: lite collapse keep blown
Godot Destruction Core screenshot: lite collapse watchtower crash

Assets & licence

All demo art is original procedural pixel art and all demo sound is synthesised in code; no third-party or AI-generated assets. Toonforce footage shows the kit in use and is not part of the download.

Lite is free under the MIT License. Pro is sold under a commercial per-seat EULA: you can ship unlimited commercial and non-commercial games; you may not resell or redistribute the kit's source or assets as a template.

Code and docs written with AI coding agents. Machine-readable summary: llms.txt.