Fortress AI: Natural-language castle building & artillery combat
How Make A Block engineered Fortress AI (fortressbattle.com), a real-time multiplayer artillery game combining Gemini natural-language castle generation with Matter.js physics.
Quick answer
What is Fortress AI and how does AI castle generation work?
Fortress AI (fortressbattle.com) is a real-time multiplayer artillery game engineered by Make A Block. Players describe a castle in plain English and Gemini translates the prompt into a structured fortress made from five physics materials—wood, stone, ice, rubber, and steel—before turn-based, server-authoritative Matter.js cannon battles begin.
- Natural-language fortress generation powered by Gemini
- Server-authoritative Matter.js 2D destruction physics
- Five structural materials (wood, stone, ice, rubber, steel) across best-of-3 rounds
- Solo vs Bot, private room codes, and live PvP matchmaking
Architecture overview
How is Fortress AI engineered?
| Layer | Technology / Implementation | Engineering Role |
|---|---|---|
| AI Castle Generation | Google Gemini structured output | Converts natural-language fortress prompts into balanced, gravity-stable block layouts |
| Physics & Destruction | Server-authoritative Matter.js | Simulates projectile arcs, wind force, material density, bounce, and structural collapse fairly |
| Multiplayer Transport | Socket.io rooms & matchmaking | Synchronizes turn timers, barrel angles, shots, and block wreckage across clients in real time |
| Frontend & Art Pipeline | React 19 + custom canvas battlefield | Renders hand-painted royal UI, 5 block materials, charge bars, and responsive touch/mouse aiming |
01 · AI-to-Physics Bridge
How does Gemini build a structurally valid fortress from plain English?
Fortress AI constrains Gemini's response to a strict block-placement schema respecting budget limits, ground-pedestal bounds, King protection rules, and material properties.
Players can either place blocks manually or type prompts such as 'reinforced stone keep with rubber deflection roof,' generating a playable layout that settles cleanly under gravity before combat starts.
02 · Fair Multiplayer Destruction
Why is Fortress AI physics server-authoritative?
Running Matter.js on the server guarantees both players see identical cannon trajectories, ricochets, collapses, and King HP damage—preventing desynchronization or client tampering.
Each of the five materials behaves distinctly under impact: wood splinters lightly, stone resists blasts with high mass, ice slides and shatters, rubber rebounds cannonballs, and steel provides heavy armor at higher build cost.
03 · Modes & Playability
How do matches work in Fortress AI?
Matches play in best-of-3 rounds combining a timed build phase with turn-based wind-affected artillery duels until one rival King falls.
Players can launch immediately in Solo mode against difficulty-scaled bots, share a room code for private matches with friends, or queue into live PvP rooms directly in the browser.
Key concepts
Technical definitions
- Server-Authoritative Physics
- Executing rigid-body collision and destruction math (Matter.js) on the game server and broadcasting verified state updates to clients over Socket.io to ensure fair, synced gameplay.
- Structured LLM Level Generation
- Prompting an AI model (Gemini) to emit schema-validated coordinates, shapes, and material types that directly instantiate playable game-engine physics bodies.
FAQ
Frequently asked questions about Fortress AI
Who made Fortress AI?
Fortress AI (fortressbattle.com) was designed and engineered by Make A Block, demonstrating real-time multiplayer networking combined with structured Gemini AI generation.
What five materials are available when building a fortress?
Players and the Gemini AI builder compose castles from five physics materials—wood, stone, ice, rubber, and steel—each with distinct mass, durability, and bounce properties.
Can I play Fortress AI solo or with friends?
Yes. Fortress AI supports Solo matches against a training bot across difficulty tiers, private room codes for friends, and live PvP matchmaking directly in any modern browser.
Do I need to install anything to play Fortress AI?
No. Fortress AI runs directly in desktop and mobile web browsers at fortressbattle.com with zero downloads.
Building something similar?
Fortress AI was designed and engineered by Make A Block (led by Guilherme Bianeck). Tell us about your product goals and we'll reply within one business day.