Black FridayGame templates at Black Friday pricesEnds in See the deals

Puzzle · HTML5

Space Merge

HTML5 physics merge game with planets

by Polar GamesVersion 1.0.0Updated Nov 20, 2026

  • Source code
  • Live demo
  • Documented
Perpetual licence$49 $41.65 -15%Buy now
The main menu: Play, Daily Challenge and Collection.A run: the evolution wheel, the glass capsule, the score and the next planet.WARP spins the capsule and crushes the smallest planets for points.Special planets: a Meteor in hand, a Prism Star merging and an Ice Comet next.Collection, missions with stars and 6 capsule colours.Settings: music, effects, vibration, less motion and language.14 interface languages, switched instantly."Capsule Full!": the run summary with a new record.The first-run tutorial: drag, release and drop it on its twin.Pause, with quick access to settings and sound.

Space Merge: HTML5 Physics Merge Game with Planets

A cheerful drop-and-merge physics game set in space. Aim a cute planet above a glass capsule, release it and watch it bounce and settle with real physics. Two equal planets that touch merge into the next one, from tiny Stardust to the Black Hole. Plain HTML, CSS and JavaScript ES modules, no framework, no npm dependencies, no build step.

Space Merge: merge 11 planets from Stardust to the Black Hole

Merge 11 planets

Stardust, Asteroid, Moon, Mercury, Mars, Earth, Neptune, Saturn, Jupiter, Star and Black Hole, with Planck.js physics and faces that react when something is about to land on them. A drop right on its twin is a Bullseye: Bullseyes in a row multiply the points up to x3, and quick merges chain into combos. The run ends with "Capsule Full!" when a planet stays above the capsule mouth for 2 seconds.

WARP and cosmic specials

Every merge charges the WARP gauge; WARP spins the capsule and crushes up to 7 of the smallest planets for points. The Ice Comet slows time, the Meteor pops the small planets around it, the Prism Star merges with anything and Space Junk never merges until it is cleared. Four Bullseyes in a row start Star Frenzy, with small planets raining onto their twins and double points.

Space Merge: the WARP button and the four special planets

Reasons to come back

A collection of the planets created, 3 open missions that award stars, 6 capsule colours unlocked with stars, a Daily Challenge with the same planet sequence for everyone that day (goal and streak), and the best score saved in the browser.

Ready to reskin

Every number lives in one commented file, src/config.js. Art is WebP and sounds are MP3, replaced by keeping the file names; texts are one file per language. The complete editable source is readable and commented, with 26 tests, a local preview server and npm run build. An offline buyer guide in 14 languages and a step-by-step customization guide come in the package.

Space Merge on a laptop and a phone: 14 languages, no build step, commented code, easy reskin

Technical details at a glance

  • Stack: HTML5, vanilla JavaScript ES modules, Canvas 2D and Web Audio; physics by Planck.js 1.5.0 (MIT, included).
  • Files: HTML, CSS, JavaScript, JSON, WebP, PNG and MP3. Font: Fredoka (SIL Open Font License).
  • Languages: 14 interface languages; buyer guide in 14 languages.
  • Layouts: phones, tablets and desktops, portrait and landscape; touch, mouse and keyboard.
  • Saves: the browser's local storage, with no account. No in-app purchases, no tracking and no external requests.
  • Editing the source: Node.js 26.13 or newer, npm ci, npm test and npm run build.

Screens from this edition

Captured from the edition sold here.

Included

  • 11 planets to merge (Stardust, Asteroid, Moon, Mercury, Mars, Earth, Neptune, Saturn, Jupiter, Star, Black Hole) with Planck.js physics, faces that react, combos and the Bullseye bonus
  • WARP button with a charging gauge, Star Frenzy, and 4 special planets: Ice Comet, Meteor, Prism Star and Space Junk
  • Collection, 3 open missions that award stars, 6 capsule colours, Daily Challenge with goal and streak, local best score
  • 14 interface languages, portrait and landscape layouts, touch, mouse and keyboard, Less Motion option, music and sound effects
  • Ready-to-host game/ folder and the complete editable source: readable, commented ES modules with 26 tests, a local server and npm run build
  • Offline buyer guide in 14 languages and a step-by-step customization guide

Not included in this edition

  • In-app purchases, accounts or online leaderboards
  • Native apps, hosting and custom development

What is in the ZIP

The real folder structure of the package you download, with names and sizes read from it.

space-merge-1.0.0-complete.zip372 files · 16 MB
  • space-merge-static-1.0.0/371 files · 16 MB
    • documentation/HTML guide, open it before you buy14 files · 3.4 MB
      • img/JPG · 12 files · 2 MB
      • customization.html13 KB
      • index.html1.4 MB
    • game/Ready to host: upload this folder170 files · 6.3 MB
      • assets/Art, audio and fontsJSON · MP3 · PNG · TXT · WEBP · WOFF2 · 111 files · 5.4 MB
      • lib/JS · TXT · 3 files · 406 KB
      • src/Source modulesJS · 52 files · 389 KB
      • DOCUMENTATION.txt1 KB
      • index.html1 KB
      • manifest.webmanifest1 KB
      • style.css63 KB
    • source/Readable source code180 files · 6.3 MB
      • assets/Art, audio and fontsJSON · MP3 · PNG · TXT · WEBP · WOFF2 · 111 files · 5.4 MB
      • lib/JS · TXT · 3 files · 406 KB
      • src/Source modulesJS · 52 files · 389 KB
      • test/Automated testsMJS · 5 files · 17 KB
      • tools/Build and check scriptsMJS · 3 files · 5 KB
      • index.html1 KB
      • manifest.webmanifest1 KB
      • package-lock.json1 KB
      • package.json1 KB
      • README.md6 KB
      • style.css63 KB
    • THIRD-PARTY-LICENSES/Licence notices to keep with your game3 files · 6 KB
      • fredoka-OFL.txt4 KB
      • planck-MIT-LICENSE.txt1 KB
      • README.txt1 KB
    • CHANGELOG.txtVersion history1 KB
    • CUSTOMIZATION.html1 KB
    • DOCUMENTATION.htmlOpens the guide1 KB
    • START-HERE.txtQuick start1 KB
  • POLAR-MARKETPLACE-START-HERE.txtStart here: licence, support and first steps1 KB

Item details

Edition
Standalone Browser Edition
Version
1.0.0
Released
Nov 20, 2026
Updated
Nov 20, 2026
Category
Puzzle
Languages
English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean, Simplified Chinese
Files included
HTML, CSS, JavaScript, JSON, WebP, PNG, MP3
Built with
HTML5, Vanilla JavaScript (ES modules), Canvas 2D, Planck.js 1.5.0, Web Audio
Browsers
Modern browsers with WebGL2
Documentation
Documentation

Author

Polar Games

Brazilian studio making browser games. Every template here is a game we built and published.

See our games

Requirements

  • A current browser with JavaScript and audio support
  • Static HTTP(S) hosting; no database, PHP or author account required
  • Only for the optional tools (tests, local server, build): Node.js 26.13 or newer

Support covers technical questions and reproducible defects in the supplied game. Installation and customisation are separate services.

Changelog

  1. 1.0.0Nov 20, 2026

Questions

Do I need to build the game?

No. Upload the contents of game/ to any static HTTP(S) host. Every number of the game is in src/config.js. The source/ folder is only needed to run the tests or rebuild.

Can I reskin it?

Yes. Replace the WebP art and MP3 sounds keeping the file names, and change the texts in the language files and the numbers in config.js. The customization guide has step-by-step recipes.

Where is progress saved?

In the player's browser (localStorage). There is no account or server.

Can I open index.html from my computer?

Use a web address: browsers block ES modules on file:// pages. The included npm run dev starts a local server.

What licence applies?

The Polar Games Marketplace terms shown at checkout.

Read the full licence, support, refund and privacy terms

Before you buy: guides and reviews

From Brazil to the world

Buyers in 25 countries

License a ready HTML5 game, with source code, for your website, app or brand.

  • 900+sales
  • 25countries
  • 2016selling since
Countries where we have sold: Brazil, United States, United Kingdom, Germany, Canada, Australia, France, India, Netherlands, Spain, Italy, Japan, South Korea, Poland, Mexico, Sweden, Switzerland, Singapore, United Arab Emirates, Saudi Arabia, Indonesia, Türkiye, Portugal, Philippines, Vietnam.
Space Merge$49 $41.65 -15%
Buy now