Create a new game
gamealia_create_projectScaffolds a new minimal game with the Gamealia SDK already integrated into an empty folder, using vanilla, Phaser, Pixi, or multiplayer templates.
Instructions
Scaffolds a new minimal game, already integrated with the Gamealia SDK, into an empty or new folder (local files only, no login). Use it when there is no game yet, instead of gamealia_analyze_project + gamealia_integrate_sdk. Never overwrites: fails if the folder has any file. Returns the files written. Templates: vanilla (Canvas game in plain JavaScript; no build step, upload the folder as is.); phaser (Phaser 3 + Vite; npm install && npm run build -> dist/.); pixi (PixiJS 8 + Vite; npm install && npm run build -> dist/.); multiplayer (Room example (publish, invite link, join) with a BroadcastChannel stand-in for your server; no build step.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | Project folder (absolute, or relative to the server's working directory) | |
| title | Yes | Game title written into the scaffold, 1-60 characters | |
| template | No | Starter template id (default vanilla: plain JavaScript, no build step); see the list in the description | vanilla |