The game engine for AI agents

Ask your agent for a game. Play it today.

Gamesteel is the engine your agent builds with: 2D games with their art, 3D models, sound, music, levels and servers, playing in the browser and ready for the stores. 2.5D and 3D are in beta.

The engine

Not a plugin.
A whole game engine.

MCP is only the door your agent comes in by. Behind it is an engine built for agents to drive: its own game language, a sandboxed runtime that plays the same on every device, renderers, a 3D model builder, a synthesizer and a test rig.

Your agent Claude Code or Codex, Gemini CLI and 26 more.
Gamesteel engine0.11 · 16 tools · 8 parts

Making the game

1 file
the whole game, readable
2,048
live things at once
2D · 2.5D · 3D
one format for all three; 2.5D and 3D in beta

A game is one plain-text file in Gamesteel’s own language: its types, tiles, levels, rules and the contract that says how it is won.

Under the hood

  • Its own language: a tokenizer, a 1,600-line parser, a static analyzer and exact decimal numbers.
  • 2.5D is the same game tick for tick as 2D, drawn in 3D; 3D is a world of blocks, pieces and things. Both are in beta.
  • Built-in mechanics: platformer, patrol, chase, projectiles, doors, crates, springs and more.
  • Levels up to 512 tiles a side; 3D worlds up to 128 blocks high.
  • The docs’ sample game is loaded by the engine in a test, so the docs can’t drift from the language.

moss.gamewritten by your agent

game "Moss Tower" { space 3d grid 64x24x64 gravity 25 }
camera { rig third distance 6 height 2 pitch 20 fov 60 }
block Glass { solid color "#bfe6ff" material glass }
entity Crate {
  body { dynamic shape box size 1x1x1 mass 2 bounce 0.1 }
  look "crate"
}
level 1 "Courtyard" {
  blocks { Stone 0-63, 0, 0-63
           Ramp  15, 1, 12-14 facing east }
  spawn Player hero at block 5, 1, 5 facing 90
}
contract { win Player.coins >= 1 }
60 / s
fixed ticks, every device
32.32
fixed-point physics in 2D
32 MB
sandbox, no clock, seeded random

Scripts are TypeScript the engine type-checks on every edit, then runs sixty times a second in a sandbox that plays the same on every device.

Under the hood

  • Checked by a real TypeScript 5.9 language service against the engine’s API, on every edit.
  • Run in a sandboxed JavaScript engine compiled to WebAssembly: the same interpreter in the browser and on the server. No Date; Math.random is the engine’s seeded one.
  • Bit-exact by the compiler: 2D positions are 32.32 fixed-point numbers with table trig; 3D runs a deterministic physics engine, clamped to Float32.
  • A whole game state hashes to one digest, so a replay shows it played the same.
  • Edits land all or none, versioned, with undo and redo and a log of every change.

scripts/turret.tswritten by your agent

export default class Turret extends Behaviour {
  cooldown = 0
  update(dt: number) {
    this.cooldown -= dt
    const player = this.find('Player')
    if (player === null || this.cooldown > 0) return
    if (this.distanceTo(player) < 12) {
      this.spawn('Bullet', { towards: player, speed: 10 })
      this.cooldown = 1.4
      this.game.sound.play('own:shoot')
    }
  }
}
17
named colour roles
14
open-licence fonts
Contrast
enforced, by rule

One style for the whole game: from a few choices, the engine builds the palette, the light and the type everything is drawn in.

Under the hood

  • A style is a few choices: hue, a colour harmony, saturation, light direction, shading, outline, pixel size.
  • From them the engine builds a palette of 17 roles: ground, sky, hero, danger, metal, water… and keeps colours set by hand.
  • It enforces contrast: ground against sky, outlines, hero against danger.
  • 3D models are rendered in the style, and recoloured when it changes.
  • Text is measured from a per-letter table, so it lays out the same on every machine.

style setwritten by your agent

style set {
  game,
  mood: 'warm, dusty, a long way down',
  hue: 25,
  harmony: 'complementary',
  saturation: 0.6,
  light: 315,
  shading: 'banded',
  outline: 'thin',
  pixel: true, pixelsPerTile: 32
}
2,048 px
a frame; long animations on several sheets
SDF
blended shapes, meshed
1 call
per material, merged

Every picture is painted by a script, and every 3D model is built by one, in Gamesteel’s own model engine. No stock art.

Under the hood

  • Pictures get the full 2D canvas: paths, every gradient, filters, blend modes, seeded noise, layers. Drawn natively in a sandbox on its own thread.
  • Animations are frames with named clips; a tileset paints all 16 neighbour pieces.
  • Models: organic shapes blended as signed-distance fields, meshed by marching cubes, smoothed by Loop subdivision.
  • Surfaces drawn on the GPU with no UV unwrapping: panels, rivets, wear, grime, rust.
  • Skeletons are made for you; still parts merge to one draw call per material, repeats are instanced.

models/panel.tswritten by your agent

export default function model(m: Model): void {
  const surface = m.metal('metal', {
    panels: 3, rivets: 0.5, wear: 0.4, grime: 0.3
  })
  m.box(1, 1, 0.2).at(0, 0.5, 0).material(surface)
  m.view('front')
}

Hearing, playing and shipping it

48 kHz
rendered, WAV and MP3
BS.1770
loudness, in LUFS
PolyBLEP
band-limited oscillators

Every sound effect is a script the engine synthesises, levels to a broadcast loudness, and then measures, so the agent can hear it in numbers.

Under the hood

  • Band-limited oscillators (PolyBLEP), FM, white, pink and brown noise, unison, LFOs, drive.
  • Levelled to ITU-R BS.1770 loudness, with a lookahead peak limiter.
  • listen returns its loudness, peaks and spectrum, a loop’s seam, warnings in words, and a spectrogram.
  • Two sounds can be compared side by side.
  • A sound can come in variants, so a step or a hit never repeats exactly.

sounds/bell.tswritten by your agent

export default function sound(s: Sound): void {
  s.length(1)
  s.layer(
    s.fm('E5', { ratio: 2.4, index: 5, indexTo: 0.5, over: 0.7 }),
    { env: { attack: 0.003, decay: 0.8, sustain: 0 }, volume: 0.6 }
  )
  s.master(s.reverb({ size: 0.5, mix: 0.2 }))
}
157
instruments, 16 families
8 + 4
effects a track, buses
On the beat
scripts sync to the music

Songs are composed in code on 157 instruments and the engine’s own synthesizer, mixed like a studio, and kept in time with the game.

Under the hood

  • A General MIDI set, Gamesteel’s own sampled players chosen in blind listening, and a synthesizer.
  • The synth: up to 3 oscillators and 4 FM operators, a ladder filter, two LFOs and a modulation matrix.
  • Convolution reverb in generated rooms and halls; a master limiter at −1 dBTP.
  • Songs come in layers a script fades, or sections it moves between on the bar line.
  • A music clock counts in game ticks, so attacks land on the beat, even in a replay.

music/theme.tswritten by your agent

m.tempo(84)
m.form({ loop: 4 })
m.track('church-organ', { volume: 0.5, reverb: 0.4 })
  .chords('Dm7 G7 Cmaj7 A7', { beats: 4 })
m.track('acoustic-bass', { volume: 0.8 })
  .play('D2 E2 F2 F#2 | G2 A2 B2 G2 | C2 D2 E2 C#2 | A1 B1 C#2 E2')

// in a script: hit on the beat
if (this.game.music.passed(14)) this.slam()
Per tick
exact input, 60 a second
44 px
buttons checked, and contrast
300
draw calls: the phone budget

The agent plays the game itself, headless, with exact input or a script of its own, then looks at it the way a player would.

Under the hood

  • Tracks give exact input per tick; a script of the agent’s can choose each tick’s keys instead, and another flag a broken rule after every tick.
  • Run until an event, the player gone, a win or a loss, a value crossing a line, or a script error.
  • Looks: frame strips, phone, tablet and desktop layouts, and a UI audit: overflow, overlap, contrast, 44 px buttons.
  • 3D looks report draw calls, triangles and lights against a phone budget.
  • Snapshots and replays are cheap, because the game plays the same every time. A game’s server runs locally for the test.

playtestwritten by your agent

playtest play { game, track: 'r*14 rj*6 r*30' }

playtest until {
  game,
  hold: 'r',
  until: { crosses: { of: 'Player', property: 'y', value: 400 } },
  seconds: 60
}

playtest look { game, frames: 4 }
APK · AAB
and an Xcode project
4K60
H.264 films, tick by tick
2
stores, uploaded

The finished game becomes store apps and its films become video, built on your machine.

Under the hood

  • An Android debug APK, a signed Google Play release, or an Xcode project, built on your machine.
  • Uploads to Google Play testing and App Store Connect, with listings and review status.
  • Films render one frame per tick to H.264 and AAC in the browser, up to 4K60, with a 1080p copy for phones.
  • The video plays while it downloads.

film · appwritten by your agent

level 3 "Arrival" { film tiles "m" }

film render { game }
app build { game, target: 'android' }
WebGL2
your own GLSL shaders
7 settings
of the picture, set by your game
¾ · ½ · ¼
a slow shader’s own resolution

What every part stands on: the renderers, the physics and your own shaders, tuned to each device without changing how the game plays.

Under the hood

  • A 2D renderer on the GPU; the agent’s screenshots are painted on the server, call for call.
  • A 3D renderer with ambient occlusion, bloom, colour grading, toon light, outlines, fog and stars.
  • Your own shaders: shaded boxes, passes over the picture, kept results. Integer noise keeps them identical on every GPU.
  • A slow shader drops to ¾, ½ or ¼ resolution by itself.
  • A 3D game sets its own quality: pixels, shadows, lights, surfaces and how far it draws, each kind fading out at its own distance. Gameplay is identical at every setting.

shaders/heat.glslwritten by your agent

uniform sampler2D under;
uniform float amount;

void main() {
  vec2 shift = vec2(sin(uv.y * 40.0 + time * 3.0), 0.0)
             * amount / screen;
  color = texture(under, uv + shift);
}
Your game Plays in the browser Sixty ticks a second, the same on every device. 2D2.5D3D 2.5D and 3D in beta.

Open any part to see how it works under the hood.

Read the engine docs

Gamesteel services

From your game to its players.

What we run for your game once it’s made, so you set nothing up.

See the plans
20 to 20,000
events a second, by size
100,000
players connected, at the largest
1 to 200 GB
a database of its own

A game can have a server of its own: its code on servers at the edge, live rooms, and a database, sized to its players.

  • The server is TypeScript on servers at the edge, with one ordered process per live room.
  • Four sizes, from Small (20 events a second, 100 connected) to Extra Large (20,000 a second, 100,000 connected).
  • Test and live are kept apart.
  • Each game gets its own database, from 1 to 200 GB, and room for its players’ files.
  • A player’s “Delete my online data” removes every row of theirs.
0%
Gamesteel’s cut of a purchase
60 s
at least, between ad breaks

In the store apps, a game can sell things and show ads; its server checks each purchase and reward before it counts.

  • Apple purchases are checked against Apple’s own root certificate.
  • Ad rewards are checked by their signature before they pay out.
  • Gamesteel takes no cut of purchases: the stores keep their share, the rest is yours.
  • An ad that would break store rules is refused, such as a break less than 60 seconds after the last.
  • The apps themselves are built and uploaded by the engine: see Ship.
4
roles, owner to viewer
7
permissions between them
30 min
idle, and a claim lapses

A workspace can be shared: people and their agents work on the same game, each with a role.

  • Roles are owner, admin, member and viewer, across 7 permissions from playing to billing.
  • A task board, and claims on parts of the game, so two agents don’t change the same thing.
  • A claim lapses after 30 minutes idle, so nobody is blocked for good.
  • Teammates’ agents work on the same game, with the same tools.

Made with Gamesteel

Games made from zero, by an agent.

  • Coreward's title screen: the Earth cut open layer by layer, down to its glowing core, under the game's name in pixel letters. Coreward 2D · a pixel-art dig to the Earth's core Play on gamesteel.online
    1. The brief

      “Our objective is to get to the core of the earth, and we need to keep upgrading our tools, relics, teams.”

      That was the whole request. The agent planned a mining game through eight real layers of the Earth, with an economy, upgrades and relics, and built the first playable version through Gamesteel's tools.

    2. Pixel art

      “I wanted a pixel art game.”

      Three rounds of art followed: a fine pixel world, ground that breaks into flying chips, then the whole interface in the same pixels, laid out to stay put on every screen.

    3. Chance

      “Relics should be rarer… a random event, not a scripted one.”

      Relic caches now glint in the shaft wall by chance, rare ones rarer still, and gas pockets in the drill's path can be vented for money or blow out.

    4. The Machine Shop

      “I want a separate scene only for the drill.”

      The drill got its own steel workshop: a crane, a furnace, lamps and two welding robots that fit every new part you buy.

    5. The wagon and the town

      “If the wagon goes to the land on top, I receive the money.”

      Ore became money only once a cage carries it up the shaft. Above it grew a town, upgraded through its Town Hall, from a camp to a metropolis.

    6. Scale

      “The buildings are the same height as the people.”

      The agent repainted every building at the people's scale, each with its own sign.

    7. The checks

      The economy was tuned by simulation, to about 14 minutes to the core. The layout checker ran at four screen shapes, and the agent looked at every screen it changed.

    8. The core

      Two days, 5 to 7 November 2026: one person and one agent. The agent made 38 pictures with 394 animation frames, 20 sound effects in 39 takes, 2 pieces of music, 3,576 lines of TypeScript and a shader. We did not count the agent's tokens or tool calls for this game; the next games will.

      Play on gamesteel.online
All the games

Start with a free week.

Then plans from $14.99 a month.