Build an indie pixel art game with Claude as the coding assistant
A quantitative engineer with over 20 years of experience teamed up with his 6-year-old daughter, using Claude Sonnet as the sole coding agent to develop an offline-capable web-based pixel art unicorn game featuring a 3D renderer and sound synthesizer in less than a month.
Reddit r/ClaudeAI/u/OnyxMonolith
Claude SonnetCloudflare WorkerPhaserTypeScript
Added 2026-10-31 · originally published 2026-10-29
Steps
- 1Establish a tech spec first, having the AI use throwaway spikes for small-scale testing to validate the engine and backend before large-scale coding.
- 2Perform style checks: before full-scale rendering, have the AI draw a single character and scene to confirm visual consistency before proceeding.
- 3Collect user game feedback and revision notes, organizing them into a list of changes for Claude to process.
- 4Have the AI maintain a decision log and handoff file to record the rationale behind proactive choices and maintain context across multi-turn conversations.
- 5Write and run test cases to discover and fix actual bugs, and have the AI inspect visual and audio elements it cannot directly see via screenshot recognition and loudness analysis.
- 6Maintain a single-threaded conversation (requesting no sub-agents) to make it easier for a human to audit the code and understand progress at every step.
Ideas for Chinese platforms
This "user feedback to requirement list to AI iteration" agile workflow can be transferred to automated content generation and lightweight interactive H5 development on Xiaohongshu or WeChat official accounts, controlling output quality through structured decision logs and single-threaded prompts.
Copy-ready prompt
Act as a professional game coding agent and help me build a pixel art game that runs offline in mobile browsers based on the following requirements. Requirements: 1. Core gameplay: [enter core game settings, e.g., control a character to find 5 following companions across 8 locations and cast 6 types of magic]. 2. Technical requirements: Use TypeScript, write a software 3D renderer (converting 3D models into hard-edged pixel sprites), avoid external image asset libraries, and synthesize all sound effects through code. 3. Verification mechanism: Write throwaway tests first to validate engine features, and maintain style checks and decision logs. 4. Development workflow: Output an overall tech spec for my review before starting step-by-step coding.
#AI Agent#Game Development#Claude#Coding Practice
Related use cases
Summarized by AI from the original source - refer to the original post for details. Copyright belongs to the original author.