Mahjong Cosmic Quest: free the tiles, fill the tray, explore the galaxy.
Mahjong Cosmic Quest is an HTML5 triple tile-matching template with full source code, set in space. Players tap a tile that no other tile covers, it flies to a tray of seven slots, and three alike disappear. The edition has 60 levels on four alien worlds, a robot astronaut mascot, a guided tutorial, three helpers, 14 interface languages and a ready-to-host game folder.

Four worlds, sixty levels
Nebula Landing, Starlight Ocean, Cosmic Garden and Golden Planet each bring their own level background, a level map with a glowing stop for every level and a sheet of 12 space tile pictures: rockets, ringed planets, comets, satellites, crystals, jellyfish, submarines, rovers and more. Levels grow from 9 to 90 tiles, and every level is generated from a stored solution, so it can always be won.

A robot astronaut as your guide
The mascot waves on the menu, stands on a hover platform on the map, points at the glowing tiles during the tutorial, celebrates every win and worries when the tray is almost full. Floating stardust drifts behind the board, and screens change with an animated transition.

Helpers, coins and stars
Undo takes back a move, Hint makes a trio you can complete glow and Shuffle rearranges what is left while keeping the level solvable. Coins come from every trio and every win, and each level awards up to three stars: fewer helpers, more stars.
14 languages, every screen size
The interface is translated into 14 languages and starts in the language of the device. Space artwork exists for landscape and portrait, so the game fits phones, tablets, desktops and ultra-wide monitors. A "Tap to start" screen unlocks sound on mobile browsers.

Built on a proven engine
Mahjong Cosmic Quest uses the same tested engine and rules as our Mahjong Garden template, with an all-new space theme: scenery, maps, tiles, mascot, logo and interface. The sound effects and the music are the same as in Mahjong Garden.
Your game, your hosting
Upload the contents of the game folder to static HTTP(S) hosting and open index.html. No database, PHP, account, server or Node.js runtime is needed, and normal play makes no requests to ranking, advertising or payment services. The package includes the editable project, an illustrated offline guide in English, Portuguese and Spanish, a separate step-by-step customization guide and the font licence notice.
What this edition does not include
Native apps, hosting and custom development are not included, nor are online multiplayer, an online ranking, in-app purchases or an advertising SDK. The included translations are supplied as they are: have a native speaker review them before launching in a new market.
Customise it
CUSTOMIZATION.html lists the file and size of every picture on every screen and gives recipes to replace backgrounds, the robot, the tile sheets, the logo, sounds and music, texts, colors and the font, and to change level sizes, helpers and coins. Plain JavaScript modules and CSS, no framework, no build step.
Technical details at a glance
- Stack: HTML5, plain JavaScript modules and CSS, Canvas 2D and Web Audio, with no third-party code and no game engine.
- Files: HTML, CSS, JavaScript, JSON, SVG, PNG, WebP, MP3 and WOFF2.
- Languages: 14 interface languages and a guide in English, Portuguese and Spanish.
- Browsers: Chromium-based browsers 105+, Firefox 121+, Safari 16+, desktop and mobile.
- Saves: the browser's local storage, with no account or cloud sync.
- Tests: npm test plays all 60 levels by their stored solution and checks the 14 languages. Node.js 26.13 or newer is only used for the tests, the local server and the copy command.




















