Test store. Prices are the planned list prices stored as test data, license terms are drafts, and payments go to a Stripe test-mode account. No real money moves.

Buy HTML5 games with source code

Every game includes full TypeScript source and a playable demo. Filter by what your project needs.

How to choose from our HTML5 game templates

Every game in this catalog is a finished, original HTML5 game that also works as a template. You buy the complete TypeScript project, not a compiled build, so you can rename it, reskin it, change levels and balance, and publish it under your own brand. There are 50 single-player games: 41 built on Phaser 4.2.1 for 2D and 9 on Three.js r186 for 3D.

A quick way to pick one:

  1. Play the demo. Every product page has a playable demo. Open it on the phones and browsers your players use, not only on your desktop.
  2. Check the specs. The product page lists the engine version, orientation, controls, languages and initial download size.
  3. Pick a license. Standard covers one end product with one production web deployment. Extended covers up to 5 end products, including client work, or up to 3 portal domains your company owns. Both are draft terms: the licensing page compares them and pricing shows what they cost.
  4. Build and deploy. Install with pnpm, run the build and upload the static output to any web host. The quick start walks through it.

What every download includes

When you buy HTML5 games source code here, each game arrives as one ZIP that installs and builds on its own:

  • README.md with the quick start: install, build, test and deploy
  • games/<id>/ with the game's src/, data/, public/ and tests/ folders, its own README and an ASSETS.md that says where every asset comes from
  • packages/ with the shared code the game uses: game shell, input, audio, save, localization, UI, achievements, math utilities and analytics hooks
  • package.json and pnpm-lock.yaml, so you install the exact versions we tested
  • SOURCE_MANIFEST.json, which lists every file with its SHA-256 checksum
  • THIRD_PARTY_NOTICES.md for the open-source libraries and fonts the game bundles

Before a game goes on sale, its ZIP is unpacked outside our repository and has to install from the lockfile, build, typecheck and pass its own tests. All 50 games passed this clean-room check in October 2026.

Specs at a glance

SpecPhaser gamesThree.js games
Games419
EnginePhaser 4.2.1Three.js 0.186.1 (r186)
Graphics2D3D
Initial download500 to 750 KB300 to 382 KB
InputTouch, mouse, keyboard, gamepadTouch, mouse, keyboard, gamepad
SourceTypeScript, Vite, pnpmTypeScript, Vite, pnpm
HostingStatic files, no backendStatic files, no backend

Every game also saves progress locally, and most ship in six languages: English, French, Spanish, German, Portuguese and Arabic, with a right-to-left layout for Arabic. The filters above narrow the catalog by engine, genre, input, orientation or language.

Genres and engines

Each main genre has its own page with a buying guide and a spec table:

  • Puzzle: sorting, logic, routing, physics and 3D object puzzles
  • Simulation: tycoon, management, farming and restoration games
  • Strategy: tower defense, turn-based strategy, deckbuilding and auto-battles
  • Action: survivor and twin-stick shooters, a battle royale against bots, and skill runners
  • Racing: 3D drifting, rally, endless traffic and delivery driving

Merge and sports games are in the catalog too, under the genre filter. For engine details, see Phaser game source code and Three.js game source code.

Templates for mobile games

Every game supports touch, mouse, keyboard and gamepad, and plays in portrait, landscape or both; the product page says which. Our end-to-end tests run on desktop Chromium, Firefox and WebKit plus emulated Pixel 7 and iPhone 15 profiles. Emulation is not a real device, so test on the phones you target before launch. Mobile game source code gathers the specs that matter on phones.

Simple templates or a finished game?

If you want a simple HTML5 game template to learn from, our free HTML game code pages give you one-file games under the MIT license, with tutorials. The games in this catalog sit at the other end: levels, menus, saves, settings, translations and tests are already done. They also aren't HTML and CSS3 page templates. Gameplay is drawn on a canvas by Phaser or Three.js, so you customize it in TypeScript and data files rather than in stylesheets.

Buying several games

Each license covers one game, paid once, with no royalties. If you need a set for a portal or a client roster, build your own bundle: the more licenses in one order, the lower the price of each, and Standard and Extended licenses both count.

Frequently asked questions

Where can I buy HTML5 games with source code?

Here. Every game in this catalog is sold with its full TypeScript source and a license for commercial use. Each product page has a playable demo, the specs and both license options, so you can check the game before you pay.

Are these HTML5 game templates or finished games?

Both. Each one is a complete game with levels, menus, saves and tests. Because you get the source and the data files, it also works as a template: within your license you can rename it, reskin it, translate it and rebalance it.

How do I download an HTML5 game template after buying?

Once the payment provider confirms your payment, the game appears in your library with the source ZIP and your license record. Downloads use short-lived private links. Install with pnpm, run the build and upload the output folder to any static host.

Do I need to code to customize a game?

Not for every change. Levels, costs, waves and economy values live in JSON data files, so many changes are data edits. New mechanics need TypeScript and some web game experience. The customization guide shows where to make each kind of change.

Which license do I need?

Standard for one end product, yours or one client's. Extended for client work across up to 5 products, or for up to 3 game portals your company owns. Neither allows reselling, redistributing or publicly uploading the source. The terms are drafts until legal review.