Overview
Use Claude Code on the source of an arcade-style game you may modify to add a second player playing at the same time and map both players to the controls of a home cabinet.
Problem or Objective
More in Games and Simulations
AI Agents and Models
Tools and Integrations
- Tools
- Git
- Prerequisites
- Claude Code with a Claude subscription or Anthropic Console account, game source you may modify, and a home arcade cabinet or two sets of controls for testing.
How It Works
Start from game source you are allowed to change, such as your own remake or an open-source version whose licence permits modifications, and put it under git. Open Claude Code in the project and ask it to explain how input, player state and scoring are structured before changing anything. Then ask for a plan to add a second simultaneous player: a second player object, separate lives and score, shared or split screen rules, and what happens when one player is out. Review the plan, then let it make the change in small steps, building and running the game after each one. Next, list the keys or buttons your cabinet sends for each player and ask Claude Code to move the controls into a single mapping file so you can change them without touching game logic. Play both sides on your computer first, commit each working step, and only then copy the build to the cabinet.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Claude Code.
- Connect the toolsConnect the tools this workflow relies on: Git.
- Check the prerequisitesClaude Code with a Claude subscription or Anthropic Console account, game source you may modify, and a home arcade cabinet or two sets of controls for testing.
- Gather your detailsCollect what the prompt asks for: Game project, Licence or permission, What happens when one player is out, File for control mappings, Cabinet buttons per player.
- Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at code.claude.com before you rely on it.
Practical Starter Prompt: Add a second simultaneous player
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
This repository is [Game project], which I am allowed to modify under [Licence or permission]. First explain how input, player state and scoring work, without changing anything. Then propose a plan to add a second player playing at the same time, with separate lives and score and the rule [What happens when one player is out]. Wait for my approval of the plan. After that, make the change in small steps, building and running after each, and ask me before each commit. Finally move all controls into [File for control mappings] using these mappings: [Cabinet buttons per player].Approve the plan before any code changes and approve each commit after the build runs. Play both players on your computer before you copy the build to the cabinet.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The Claude Code overview says it reads your codebase, edits files, runs commands, and that it plans the approach, writes the code across multiple files and verifies it works. No cited page covers game engines, arcade cabinets or controller mapping, so how smoothly the two-player change goes depends on how the game is written and on your own playtesting.
Limitations and Considerations
Check the licence of the game code and of every graphic and sound before you change or share the build; the code of an original arcade game usually belongs to its publisher. Check how your cabinet presents its buttons to the computer, for example as keyboard keys or as game controllers, before mapping them. Keep each working step in a git commit so a broken change is easy to undo. Most ways of using Claude Code require a Claude subscription or Anthropic Console account. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About anthropics/claude-code
The SECRET Claude Code Upgrade That Has Everyone Going Nuts (Full Guide) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)About anthropics/claude-code
The only Claude Code guide you'll ever need (Opus 4.5) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Overview - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 11:57 UTC
What this source supports
- Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools.
- Claude Code plans the approach, writes the code across multiple files, and verifies it works.
- Most surfaces require a Claude subscription or Anthropic Console account.

