Creating a Game
Follow these steps FIRST when creating a new game:
Setup Workspace: Copy the contents of the
game-templatedirectory recursively to a subfolder in the workspace with the name of the game as a folder-friendly name (e.g.,my-game). Sincenode_modulesare installed globally, you do not need to install dependencies. Use therun_commandtool to copy the template:cp -r /workspace/game-template /workspace/<game-name>Develop the Game: Attempt to make the game using this newly copied folder as the base. Start modifying the source files to fulfill the user's game request.
- Read the game files before starting to understand the setup
- Use each of these agent skills when creating or modifying a game
messaging-game-overensuring-arcade-visualshandling-user-inputimproving-game-qualityadding-easter-egg- If a "platformer" game use
building-platformer-games
Validation Loop: After every code edit you make, you MUST run the build command to ensure the game compiles successfully. Use the
run_commandtool to run the build:cd /workspace/<game-name> && npm run buildDo not proceed to the next step or notify the user until compilation succeeds. Fix any compilation errors you encounter.
Play Testing: Once the user has made changes and wants to test them, execute the
playing-the-gameskill to start the server and launch the browser.