Shadow Kingdom 3D: Rebuilding the Game in Godot 4 in Four Days

December 1, 2026

shadow-kingdom
godot
game-development
3d
ai

Shadow Kingdom 3D: Rebuilding the Game in Godot 4 in Four Days

December 1, 2026

It has been a while since my last post here. Over the past four days (November 27 to December 1, 2026), I rebuilt Shadow Kingdom as a 3D action RPG in Godot 4. The repository is currently at 250 commits and roughly 44,800 lines of GDScript, covering a five-level campaign, a hub area, 14 companion expeditions, 38 rigged 3D character models, a visual novel dialogue system, and a generative adaptive music engine.

This post is a factual overview of how the project got here, why moving to 3D unblocked development, and what is currently implemented.

From Text Adventure and 2D Pixel Art to 3D

Shadow Kingdom has gone through three distinct versions:

  1. 2025 — Text Adventure: A Node.js and TypeScript text adventure using AI-driven region-based world generation.
  2. Last year — Prep Work and 2D GameMaker: Months of worldbuilding, character sheets, dialogue rules, companion kit designs, and a 2D implementation in GameMaker (Shadow Work).
  3. November 27, 2026 — Godot 4 3D Pivot: A top-down 3D tabletop-diorama rebuild in Godot 4 (shadow-kingdom-3d).

The main bottleneck on the 2D version was pixel art. Producing directional sprite sheets, walk cycles, attack frames, and consistent silhouettes for dozens of characters by hand was too time-consuming. Generating usable 2D pixel art with AI proved nearly impossible to keep consistent across poses and animations.

Switching to 3D removed that bottleneck. A single rigged 3D mesh can be viewed from any angle, animated with shared skeletal clips, lit dynamically, and outfitted with bone-attached equipment. In practice, 3D has been much easier to produce and iterate on than 2D sprites.

The 3D Character and Equipment Pipeline

To avoid blocking gameplay on art, the initial proof of concept used parametric wooden-peg figures (PegFigure3D) modeled after tabletop pawns. Gameplay entities (player.gd, companion.gd, enemy.gd) were kept decoupled from their visual rigs, with stats and model paths defined in a single configuration file (actor_config.gd).

Day 1 Greenwood proof of concept with PegFigure3D wooden-peg figures

Once the core movement, combat, and companion loop worked, I locked in a hybrid pipeline for replacing peg figures with rigged chibi 3D models (~2.6-head proportions so silhouettes stay readable from a high-angle ¾ camera):

  1. 2D A-Pose Reference (Local ComfyUI): Generate a clean open A-pose chibi reference using Qwen Image 2.1, anchored to each character's existing canonical reference sheet.
  2. 3D Mesh Generation (Sorceress): Convert the 2D A-pose into a textured 3D mesh with hunyuan3d-3.1.
  3. Local Optimization: Decimate the mesh locally from ~1.5M triangles down to ~30k triangles and resize embedded PBR textures to 1024×1024 (~5–7 MB per .glb).
  4. Auto-Rigging: Upload the decimated mesh for auto-rigging onto a 24-bone Mixamo skeleton, paired with lightweight armature-only walk and run clips (~80 KB each).

Because the visual layer is decoupled, swapping any character from a peg figure to a rigged .glb requires changing a single model_path entry. The game currently has 38 rigged 3D character models across the player, 11 companions, bosses, guardians, and enemy archetypes.

Armor and shields use the same mesh generation and decimation steps without rigging, then get bone-fitted onto the player skeleton in Blender. The player rig includes helmet_tuck, torso_tuck, and legs_tuck blend shapes so hair and base clothing do not clip through equipped armor.

Current Greenwood Clearing gameplay with 3D chibi cast, hammered-brass HUD, and party medallions

Campaign and Gameplay Scope

Over four days of development, the project expanded from a single Greenwood clearing into the full campaign structure:

Cleansed Temple Hub with Queen Rose, Ell, War Table, Armory Rack, and cloister artisans

The core gameplay systems currently in place include:

Visual Novel Dialogue, Portraits, and Audio

Narrative scenes use a native YarnRunner implementation in GDScript rather than an external plugin, reading 89 .yarn dialogue scripts across the main story, companion affinity branches, and Hub expeditions.

When encountering an unrecruited companion, guardian, or boss for the first time, the camera performs a smooth zoom onto the 3D character before opening the controller-navigable VN overlay. The dialogue UI pairs typewriter text and affinity heart meters with 35 looping .ogv animated video portraits. Main-story encounters across Levels 1–6 currently include 362 voiced lines generated via Qwen3-TTS through my local PromptForge tooling.

Visual Novel dialogue overlay with Canopy portrait, affinity hearts, and controller-navigable choices

For audio, the game uses a custom generative adaptive music engine isolated onto a dedicated background thread via Godot's AudioStreamGenerator. It handles distinct musical suites for all five campaign levels, boss themes, a dynamic heavy-combat stem layer, regional affliction layers, and a proximity-based musical garden in the Temple Hub. Sound effects are backed by 104 WAV assets.

Working with Gemini 4 Neon

The speed of the past four days came down to two things: having months of written design material already finished, and using Gemini 4 Neon to implement it.

Because the lore, character bios, companion aura kits, level layouts, and tone guidelines were already documented from last year's prep work, Gemini 4 Neon was able to read those specs and translate them directly into working Godot 4 systems with minimal back-and-forth. Instead of spending sessions explaining what a zone or companion was supposed to do, I could point it at an existing spec and get a functional, data-driven implementation wired into the game.

There is more to cover on the day-to-day workflow and tooling setup, which I plan to write up in a separate post.

What's Next

The project is still in alpha and under active development. The remaining milestones on the roadmap include: