About MONSTERA

The idea behind it

MONSTERA started with a question: could we take a game idea, describe it in a structured format, and turn it into a real, editable native mobile game without tying the developer to a single fixed template or a cross-platform game runtime?

I wanted to explore a different approach to game development. Rather than having a coding assistant generate a large collection of files and treating that output as the finished product, I wanted the game itself to have a clear, structured source of truth. The generated code should be reproducible, understandable and something a developer could continue working on independently.

That became MONSTERA: a specification-driven foundry for native 2D mobile games.

How it was built

At the centre of MONSTERA is a canonical JSON game specification. It describes the game, its world, entities, gameplay rules, spawners, collisions, input, presentation and sprites.

A Python specification engine validates this contract and generates native projects for two platforms:

  • Android: Kotlin and Jetpack Compose.
  • iOS: Swift, SwiftUI and SpriteKit.

These are separate native applications, not web games wrapped inside mobile shells.

MONSTERA also includes a browser-based Studio built with React, TypeScript and Vite. It runs the same Python engine in the browser through Pyodide. Developers can edit specifications, validate them, preview simulations and export generated native source.

The project currently has two official applications, each maintained in its own directory:

  • Pumpkin Blaster: A landscape arcade shooter.
  • Trick or Treat Rush: A portrait endless runner.

Both games have their own visual identity, gameplay and sprite animations, while sharing the underlying foundry.

There is also a third game, Lantern Run. I used it to test an important idea: could Kiro create another game using MONSTERA's existing tools without requiring changes to the engine? It could. Lantern Run became an additional demonstration of the framework's extensibility, rather than another official Skeleton Crew application.

Kiro is part of the development process

Kiro was not just used to generate code for this project. I built a development structure around it.

The repository contains persistent steering documents that define architecture, coding rules, ownership boundaries and quality requirements. Specialist agents handle areas such as game authoring, the specification engine, Android, iOS, Studio and verification.

I also configured five event-driven agent hooks:

  • Protect generated files from direct edits.
  • Validate specifications when they are saved.
  • Validate golden scenarios when relevant files change.
  • Check architectural rules when build files are saved.
  • Run quality gates when a Kiro Spec task is completed.

Five reusable Kiro workflows cover feature implementation, native generation, cross-platform conformance, adversarial review and release verification.

One particularly useful workflow runs adversarial probes alongside an independent architecture review. In an actual review run, it executed 182 attack probes and produced findings that helped us identify and fix important safeguards.

MONSTERA also has an MCP server that exposes the actual engine to Kiro. This allows Kiro to validate specifications, generate projects and inspect generated manifests through structured tools instead of relying on assumptions about the codebase.

An important design decision was to keep Kiro out of the runtime. Kiro helps build and extend the projects, but the generated applications do not need Kiro or an AI service to run.

The hardest challenges

The first challenge was determinism across platforms. A game must not behave differently just because it is running on Android or iOS. We built seeded golden scenarios and a reference Python simulation, then compared the resulting checkpoints against the Kotlin and Swift implementations.

The second challenge was ownership of generated code. Regenerating a project must not silently destroy developer changes. Manifests, file ownership rules, hashes and Kiro hooks help establish which files belong to the generator and which areas can be extended safely.

The third challenge was keeping the specification and generated applications aligned. Even a seemingly visual change, such as adding a sprite atlas, changes the canonical specification hash. We had to rebind the existing golden scenarios while proving that every recorded gameplay checkpoint remained unchanged.

There were also practical challenges with two native toolchains, different build environments, simulator testing and keeping the Kiro environment pointed at the correct version of the engine. Much of the work involved verification rather than simply writing more code.

What I learned

The biggest lesson was that AI-assisted development works better when it has clear boundaries.

A coding agent can work quickly, but without a reliable specification, ownership rules and automated checks, speed can create more problems than it solves. Kiro became much more useful when its work was organised through steering, specialist agents, hooks, workflows and direct access to the actual engine.

I also learned that cross-platform consistency needs to be demonstrated, not assumed. A successful build does not prove that two implementations behave the same. That is why deterministic scenarios, hashes and independent conformance checks became central to MONSTERA.

The final result is still an early foundry prototype, not a complete commercial game-creation service. Studio is currently client-side, backend integrations are scaffolds, monetization is mocked, and we have not completed physical-device or app-store release validation. There is plenty left to build.

But the foundation is real. Both official games have passed 11 golden scenarios across the reference engine, Kotlin and Swift. Their generated Android and iOS applications have also passed native simulator build and launch checks.

For me, MONSTERA is an experiment in making AI-assisted game development more structured, reproducible and useful to the developer after the initial generation.

The goal is simple: a game should not end as a generated code dump. It should become a native project that a developer can understand, own and keep building.

Share this project:

Updates

Submission history