Skip to content

AI-assisted creation

Spottedcat is designed to be friendly to both humans and AI coding tools: small examples, stable 1.0 surfaces, and a clear Spot lifecycle make it easier to generate a playable game slice instead of a pile of disconnected code.

Use this page when you want Codex, an LLM, or another coding assistant to help build with Spottedcat.

Start with a tiny playable slice

Ask the AI to build the smallest loop that can be played immediately:

  • one player action
  • one visible response
  • one score, timer, obstacle, or goal
  • one way to restart or iterate

For example:

text
Use Spottedcat to build a tiny 2D dodge game.
Start from one Spot scene, draw simple shapes or images, read keyboard input,
show score text, and keep the code close to the existing examples.

Once the loop works, add polish: assets, animation, audio, camera movement, 3D models, shaders, or platform packaging.

Give AI the stable surfaces

For Spottedcat 1.0, AI-generated code should lean on these stable building blocks:

  • Spot for scene lifecycle
  • Context for engine state, input, assets, and platform services
  • Image and Text for 2D rendering
  • Model and DrawOption3D for 3D rendering
  • WindowConfig and run for app startup
  • the runnable examples as structure, not just snippets

The most useful lifecycle rule is simple: update game state in update, draw the frame in draw, and keep rendering code from secretly mutating gameplay.

Use examples as prompts

Good AI prompts should point to a nearby example:

GoalStart from
Player movement and HUDexamples/input_example.rs
Image loading and drawingexamples/image_example.rs
Audio feedbackexamples/audio_test.rs
3D blockoutexamples/fog_world.rs
Many repeated modelsexamples/instancing_test.rs
Browser demoexamples/wasm/

This keeps generated code aligned with the engine’s real API.

Install the Codex skill

Spottedcat ships with the spot-game-builder skill, which gives Codex engine-specific guidance for turning a game idea into a playable prototype. Install the Spot CLI once:

bash
cargo install spottedcat

Then run this command from the root of any game project that uses Spottedcat:

bash
spot install-skill

The command installs the skill into:

text
.agents/skills/spot-game-builder

To install it into a different project directory, use:

bash
spot install-skill --project /path/to/your-game

After installation, ask Codex to use the skill explicitly:

text
$spot-game-builder

The skill is tuned to choose 2D vs 3D, reuse the repository examples, map gameplay into Spot, and verify the narrowest build first.

For other coding assistants, link this documentation and point them to the closest runnable example in the repository.

Prompt patterns

text
Use Spottedcat 1.0 to make a small Flappy-style game.
Use one Spot scene. Implement input, gravity, obstacles, collision,
score text, and restart. Keep the first version simple and runnable.
text
Use Spottedcat to create a 3D foggy exploration demo.
Start from the existing 3D examples, add camera movement,
a few primitive models, fog, and a 2D text overlay.
text
Review this Spottedcat scene for engine misuse.
Check lifecycle usage, input handling, draw/update separation,
feature flags, and whether it follows the stable 1.0 API.

Next steps

Released under the MIT OR Apache-2.0 License.