Building mobile game

From Intelligent-Internet/ii-agent · View interactive version

Building mobile game is an AI agent skill from the GitHub repository Intelligent-Internet/ii-agent. Build mobile games and game-like interactive experiences in React Native and Expo. Use when Codex is creating or refactoring arcade, puzzle, casual, action, physics-based, or animation-heavy gameplay, including Expo game setup with the with-reanimated template, sprite-sheet generation and extraction

How to use this skill

Skill file

Mobile Game Workflow

References

Mandatory Reading Order

For any new mobile game task, read both reference files before planning implementation or calling project tools:

  1. Read ./references/setup-and-loop.md first.
  2. Read ./references/assets-and-animation.md second.
  3. Only after both references have been read should you choose libraries, plan gameplay, generate assets, or start coding.

Do not stop after reading only setup-and-loop.md. The asset reference is also mandatory for almost every real game because it covers sprite-sheet prompting, extraction, and normalization.

The only acceptable exception is a deliberately art-free prototype that uses simple geometric placeholder shapes and no image generation. When in doubt, read both references anyway.

Quick Start

  1. Read ./references/setup-and-loop.md, then read ./references/assets-and-animation.md.
  2. Start from mobile_app_init(..., example="with-reanimated", with_tailwind=False) for animation-heavy or gesture-heavy game projects.
  3. Install react-native-worklets@0.5.1 and put "react-native-worklets/plugin" last in babel.config.js. Never add "react-native-reanimated/plugin".
  4. Choose the lightest rendering stack that can support the mechanic:
  1. Build gameplay in this order: input, movement, collisions, scoring or lives, pause or restart, then polish.
  2. Ask generate_image for one whole animation strip at once, not one frame at a time, so character identity and proportions stay consistent.
  3. Split raw strips with ./scripts/extract_sprites.py, then standardize them with ./scripts/normalize_animation_frames.py when the game needs fixed frame sizes or an exact existing idle anchor.
  4. Verify the game on Expo web and on mobile before calling the feature done.

Core Rules

Decision Guide

Delivery Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.