Contents
1 Overview
Christmas Globe is a complete HTML5 puzzle game. Spin a globe packed with small characters, tap three of the same and clear the globe before the tray fills up or the time runs out. A mascot reacts to the game.
It has 60 levels in 4 worlds of 15 levels: Snowy Village, Frozen Lake, Santa's Workshop and Gingerbread Town. From world 2 on, each world teaches one new rule: Frost shell, Ribbon twins and Christmas star. Besides the round globe there are six other level shapes.
There are also three extra modes: a daily challenge with a streak counter, a mode without a timer and a time attack. An album collects the 16 items, and stars unlock three outfits for the mascot. Every level is built by the game and comes with a stored solution that the automated tests play.
2 Installing on your website
Installing takes a few minutes if you have FTP access or a file manager in your hosting panel.
- 1. Extract
christmas-globe-static-1.0.0.zipon your computer. -
2. Connect to your hosting by FTP or its file manager and open the folder where the game should live, for
example
public_html/games/christmas-globe/. -
3. Upload only the contents of the
game/folder, so thatindex.htmlsits directly inside the target folder. -
4. Keep
assets/,css/,fonts/andsrc/besideindex.html, with names and letter case unchanged. -
5. Open
https://your-domain.example/games/christmas-globe/in a modern browser.
source/ folder, the documentation/ folder or the ZIP itself.
Players need no Node.js, PHP, database or account.
3 Requirements
-
Any static web hosting with HTTPS (or HTTP). Opening
index.htmldirectly from the disk (file://) does not work, because browsers block JavaScript modules there. - A current browser: Chrome, Edge, Firefox, Safari or Opera, on desktop or mobile.
-
About 15 MB of space on the server. The game makes no request to other websites: the font, the pictures
and the sounds are all inside
game/. -
Node.js is only needed to run the tests or to rebuild the game from
source/(see the development section).
4 How to play
Drag to spin the globe and tap (or click) an item to send it to the tray. Three of the same in the tray disappear. An item with another one over it cannot be picked yet. The level is won when the globe is empty, and lost when the 7 slots of the tray are full or the time is over. Some levels have only 5 slots.
A mystery item opens when an item next to it leaves. Frost shell: each match thaws it a little, and the number shows how many matches are left. Ribbon twins: two tied items leave together and need 2 free slots. Christmas star: it becomes the item that already has a pair in the tray.
Helpers of each level: Undo (3), Hint (3) and Shuffle (2). When the time runs out, the player can get 30 more seconds for free, once per level (not in the daily challenge). Stars depend on the time left. Zoom with the bar, the wheel or two fingers. Escape pauses the game.
Every 5 levels there is a special globe: one that spins by itself, a golden one or one with more mystery items. The daily challenge is the same for every player on that date. The time attack starts with 60 seconds, and each globe you clear adds 20 seconds.
5 Screens
Marks on the screenshot
- Play
- Choose a level
- Extra modes
- Album
- How to play
- Sound: music and effects volume
- Settings
Marks on the screenshot
- Back
- World name
- Stars in this world
- Next world
- One dot per world
Marks on the screenshot
- Pause
- Time left
- Progress
- Zoom
- Tray
- Undo
- Hint
- Shuffle
Marks on the screenshot
- Reduce motion
- Full screen
- Language
- Close
6 Files and folders
game/ is the ready-to-host game. source/ has the same editable files plus the
tests, a local preview server and the build script. Plain HTML, CSS and JavaScript ES modules: there is no
compile step and no npm dependency.
game/ upload these contents to your web host
index.html css/ src/ assets/ fonts/
source/ the same editable files, plus:
package.json, package-lock.json, README.md
tests/ npm test (14 checks)
tools/ build, local server, Node.js check
documentation/index.html this guide
documentation/customization.html
DOCUMENTATION.html, CUSTOMIZATION.html shortcuts to the guides
START-HERE.txt, CHANGELOG.txt
THIRD-PARTY-LICENSES/ Nunito font license
-
src/config.js: the first file to edit. Name, items, worlds, helpers, modes, outfits and every animation number (FEEL). -
src/game/: the rules (rules.js), the level builder (levels.js) and the level shapes (shapes.js), with no interface code. -
src/main.js: screen flow, timer, win and lose.src/modes.js: the extra modes.src/extras.js: album and outfits. -
src/render/: draws the globe on a 2D canvas. The positions are three-dimensional and each item is a picture facing the player; WebGL is not used.src/fx/andsrc/juice.js: effects. -
src/ui/: panels, level select, mascot and moving background.css/: layout and look of every screen.src/prep.js: prepares the next level in a Web Worker. -
assets/: pictures (WebP, PNG icons), sound effects and music (MP3).fonts/: the Nunito font and its license.
7 Internal names in the code
A few names in the code differ from the words on screen. They are only names: players never see them.
-
FRUITSis the list of the 16 items in every theme.ice,vine(link) andwildare the special rules of worlds 2, 3 and 4.hidis a mystery item andsolis the stored solution of a level. -
Some sound files have Portuguese names:
pegar(pick),pousar(land in the tray),trinca(match),bloqueada(blocked),abre(mystery opens),desfazer(undo),dica(hint),embaralhar(shuffle). -
More sound names:
tique(clock),quase(tray almost full),vitoria(win),derrota(lose),estrela(star),perfeito(perfect match),botao(button),painel(panel). The list isNAMESinsrc/audio/sound.js.
8 Customizing
CUSTOMIZATION.html in the main folder of the download, or
documentation/customization.html.
Name: change GAME_TITLE, GAME_SUB and GAME_DESC in
src/config.js, and repeat them in index.html (the <title>, the
description and the alt of the two logos; write & as &).
npm test checks that they agree. The logo is assets/ui/logo.webp.
Pictures: replace a file with another one of the same name, size and position. The Customization Guide has the exact sizes and what to keep in the same place.
Colors: the page colors are in css/base.css; the colors of the particles of each item are in
bits, in the FRUITS list. Buttons and panels are pictures in
assets/ui/.
Difficulty: LEVELS and WORLD_PLAN in src/config.js set the size, the
number of item types, the shapes, the share of each rule and the time. HELPERS,
PLUS_TIME and MODES set the helpers and the modes. Run npm test after
any change.
Sounds and music
Sound effects are MP3 files in assets/sfx/, named with an id and a number. To change one,
replace the file and keep the name. src/audio/sfx-files.js says how many versions each sound
has.
The music is in assets/music/: m-menu.mp3 for the menu and
m-w1.mp3 to m-w4.mp3, one for each world.
STORAGE_PREFIX in src/config.js of one of them.
9 Languages
The game has 14 languages: English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean and Chinese. The first visit uses the browser language; the player can change it in Settings.
To change a text, edit the same key in src/locales/, one file per language, and keep what is
inside braces. A missing text falls back to English. To add a language, copy en.js, translate
it and add it to src/locales/index.js.
10 Saving and resetting
- Stars, open levels, the album, the outfit, the daily streak, the record, the volumes, the settings and the language are saved automatically in the browser of each player.
- Every key starts with the prefix shown below.
- To start over, delete these keys in the developer tools (F12), under Application, Local Storage, or clear the site data in the browser.
christmas-globe:
11 Development (optional)
This section is only for changing the code. The game/ folder already contains the finished
game, so installing it needs no Node.js. The game has no dependencies and no compile step:
npm run build only copies the files into dist/.
1. Install Node.js. Open https://nodejs.org/en/download and choose the latest Node.js 26 LTS installer for your system (minimum 26.13.0). npm is included.
Windows: run the .msi installer, keep npm and Add to PATH enabled, finish the installation and reopen Command Prompt. macOS: run the official .pkg installer and reopen Terminal. Linux: follow the instructions on the same page for your distribution.
2. Check the installation. Run node --version and npm --version separately. Both
must print a version number, and Node.js must be 26.13.0 or newer. If a command is not found, reopen the
terminal and check that Node.js is in PATH.
node --version
npm --version
3. Extract the complete ZIP first and open its source/ folder, where
package.json is. Windows: type cmd in the address bar of that folder in File Explorer. macOS
and Linux: open Terminal and use cd with the path of the folder.
4. Run the commands below one by one. npm ci checks the lock file (the project has no
dependencies to download). npm test runs 14 checks: the rules, the 60 levels played with their
solutions, the extra modes, the 14 languages and the package.
npm ci
npm test
5. Preview: npm run dev starts a local server; open http://localhost:5180/ in your browser,
play for a while, and stop the server with Ctrl+C.
npm run dev
6. Build: npm run build empties source/dist/ and copies the game into it.
dist/ is what you publish; while the source is unchanged it is identical to game/.
npm run build
7. Publish: back up the game on your website, then upload the contents of dist/ in place of the
old files, keeping the folders. If you deleted or renamed a file, delete the old one on the server yourself.
Clear the cache afterwards.
npm test, means Node.js is too old. If PowerShell
blocks npm.ps1, use Command Prompt or run npm.cmd.
12 Updating and clearing the cache
Clearing the cache without losing progress
Progress is stored in this browser, not on the server. Clearing cached images and files, or doing a hard reload, keeps your progress.
Computer: press Ctrl+F5 on Windows and Linux, or Cmd+Shift+R on macOS. Phone: in the browser settings, choose the option to clear cached images and files.
Do not choose cookies and site data, or clear site data, for the game's address. That deletes the local save.
13 Licences and credits
The game code, the artwork, the sound effects and the music are supplied under the license of the item you purchased.
Third-party part, with its complete license text in THIRD-PARTY-LICENSES/: the Nunito font (SIL
Open Font License 1.1, also in fonts/). The project has no third-party library.
14 Common problems
-
Blank page or a game that never opens: the game was opened from the disk or a file is missing. Use a web
host and keep every file and folder of
game/next toindex.html. - No sound: browsers start audio only after the first tap or click. Check both volumes in the Sound panel and the volume of the device.
- An item cannot be picked: another item is over it, it is frozen, or its tied partner is still covered. Spin the globe and pick the items around it first.
-
The game feels slow on an old phone: turn on Reduce motion in Settings, or lower
particles.capinFEEL, insrc/config.js. - The old version still appears after an update: clear the cache (see the section above). Two copies on the same domain share their saved games: give each copy its own prefix.
15 FAQ
Does the game need a database or a server language?
Does it use a game engine or a library?
Can I change the levels?
LEVELS and WORLD_PLAN in src/config.js and run
npm test, which plays every level with its stored solution.
Does it work on phones?
Does it have ads, accounts or an online ranking?
16 Support
Questions or problems: write to willian@polargames.com.br with your purchase code, the browser
and a short description or screenshot.
Support request
When you write to support, include the browser and device, the game version, the page address, the steps that caused the problem, a screenshot and the first error shown in the browser console. Never send passwords, payment details or secret keys.