A best-in-class TypeScript boilerplate for shipping high-quality 2D HTML5 games — built on PixiJS, Rapier physics, Howler audio, and tween.js — so you can build at the speed of thought with AI, ship a polished game, and rank #1 on Google.
Just chat with AI inside your code editor using our Gallop templates, and you will never want to wrestle with a 3D engine, a heavyweight game framework, or a bloated visual editor again. Simply describe the game you want, and AI writes the code. No Unity, no GameMaker, no level editors, and no design limitations. Just type and watch. Build fun and crisp gameplay, add smooth physics-driven animations, configure your SEO and AI discoverability instantly, expand endlessly, and get prompting tips from our Gallop community. Go live in minutes.
core/, scenes/, systems/, objects/, ui/ separationVideoGame schemastrict: trueBrowse the full source of the 2D Game Base project.
New to this? No problem. You'll have AI guiding you the entire way. Choose your editor below and follow the steps.
We recommend the Gallop AI Editor for the best experience with Gallop templates — whether you're a beginner or an advanced game developer who wants AI-assisted iteration. It was purpose-built for this workflow and requires zero configuration. VS Code is also a fine choice if you prefer to work without AI assistance.
| Gallop AI Editor | VS Code | |
|---|---|---|
| Best for | Non-programmers, junior programmers, advanced programmers | Advanced programmers |
| AI built in | Yes — Claude AI ready to go | No (optional extensions available) |
| AI setup requirement | Enter Claude API keys | Install extensions manually |
| Template browser | Built-in marketplace | Download ZIP from GitHub |
| Media manager | Built-in Studio with CDN sync | Manual file management |
| Font manager | Built-in Studio with WOFF2 font generation | No support |
| SEO Audit | Analyze SEO & Structured Data | No support |
| Git | Better Git UI with modal diff viewer | Default Git UI |
| Node.js | Built-in installer and version manager | Install Node.js separately |
The Gallop AI Editor is a desktop app built specifically for AI-powered web development. It includes everything you need — code editor, AI assistant, Git, terminal, media manager, font manager, SEO & structured data scanner, and a template marketplace — all in one window with nothing to configure.
Available for Mac and Windows.
From the built-in template marketplace:
Or from a ZIP download:
2d-game-base folderClick the AI Chat panel (or press Cmd+E on Mac / Ctrl+E on Windows) to open the AI assistant. Now just ask:
I'm new to this. Help me turn this template into my own 2D game.
The AI assistant can read and edit your project files, run commands, and explain anything you're confused about. Just describe what you want in plain English:
Replace the placeholder with a side-scrolling platformer
Add jump physics with a double-jump unlock
Make the player sprite a pixel-art knight
Wire up a game-over screen with a high-score table
Tip: Press Cmd+Ctrl+3 (Mac) to take a screenshot of your running game and attach it to the chat. The AI can see exactly what you see and suggest changes visually.
VS Code is a good choice if you prefer to work without AI assistance. You'll need to install a few things manually.
Click the green Code button at the top of this GitHub page, then click Download ZIP. Unzip the folder somewhere easy to find (like your Desktop).
2d-game-base folderOpen the terminal in VS Code (Ctrl+` on Mac/Windows) and run:
npm installnpm run dev
Open http://localhost:5173 to see your game. Press Ctrl+C to stop the server.
Edit files directly in VS Code. Refer to the Project Structure and Available Scripts sections below for guidance.
Connect with other Gallop users on Slack. Share your progress, swap AI prompting tips, and see what indie devs are shipping with the help of AI.
Get access to production ready components and future updates with a one-time purchase. Save hours of development time and focus on building amazing SEO websites with battle tested blocks and components at 10x your normal workflow.
$300/ year
Pro or Editor plans available