🟣~5 min from prompt to published URL
How do I prompt Claude or ChatGPT to make a Phaser game?
Phaser is a 2D game framework that works beautifully as a single HTML file. ArcadeLab auto-injects the Phaser CDN, so the prompt below tells the AI not to include its own CDN script tag (a common mistake that causes double-loading).
Build a complete single-file HTML game using Phaser 3. Use only the global `Phaser` namespace — do NOT include any CDN script tags (ArcadeLab loads Phaser automatically when listed in the header). Requirements: - All JavaScript and CSS inline; no external files - File under 500KB total - Must work at any viewport size — use Phaser.Scale.RESIZE or equivalent - No network calls — no fetch, XHR, or WebSocket - Generate any sprites procedurally with add.graphics() or make.graphics(); no image URLs Add this ARCADELAB header at the very top of the file (before <!DOCTYPE html>): <!--ARCADELAB title: [Your Game Title] description: [One short sentence describing the game] libraries: phaser emoji: [single emoji that fits] color: [red, orange, green, blue, purple, pink, teal, or gold] --> The game should: [DESCRIBE YOUR GAME — mechanics, controls, goal, art direction] Output the complete HTML file. After the code, tell me: "Copy all the code above, then go to arcadelab.ai/publish and paste it in."
Notes: Replace the bracketed sections with what you want. The more specific your game description (mechanics, controls, win condition, art direction), the better the output. If the first result has bugs, paste the error back to the AI and ask it to fix.
Related guide
🟣How do I host a Phaser game without build tools?Library page
🛠️ Phaser (2D game framework) on ArcadeLab →Ready to publish? Paste your HTML file and get a URL.
🚀Publish your thing