Polar Games

A spin and match puzzle game for the web · 1.0.0

Christmas Globe

This guide explains how to install, play, customize and update the game. Pick your language at the top; screenshots stay in English.

Version 1.0.0 Edition Standalone buyer edition

This guide works without internet. Images, styles and scripts are already inside this file.

Contents
  1. Overview
  2. Installing on your website
  3. Requirements
  4. How to play
  5. Screens
  6. Files and folders
  7. Internal names in the code
  8. Customizing
  9. Languages
  10. Saving and resetting
  11. Development (optional)
  12. Updating and clearing the cache
  13. Licences and credits
  14. Common problems
  15. FAQ
  16. Support

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. 1. Extract christmas-globe-static-1.0.0.zip on your computer.
  2. 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. 3. Upload only the contents of the game/ folder, so that index.html sits directly inside the target folder.
  4. 4. Keep assets/, css/, fonts/ and src/ beside index.html, with names and letter case unchanged.
  5. 5. Open https://your-domain.example/games/christmas-globe/ in a modern browser.
Warning Do not upload the 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.html directly 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

Main menu: continue from your next level, choose a level, open the extra modes, the album or How to play. Sound
and Settings stay in the corner.
Main menu: continue from your next level, choose a level, open the extra modes, the album or How to play. Sound and Settings stay in the corner.

Marks on the screenshot

  1. Play
  2. Choose a level
  3. Extra modes
  4. Album
  5. How to play
  6. Sound: music and effects volume
  7. Settings
Level select: 15 levels per world. Look at every world with the arrows or the dots; locked levels show a
padlock.
Level select: 15 levels per world. Look at every world with the arrows or the dots; locked levels show a padlock.

Marks on the screenshot

  1. Back
  2. World name
  3. Stars in this world
  4. Next world
  5. One dot per world
A level: the globe, the time, the progress bar, the zoom, the tray and the three helpers.
A level: the globe, the time, the progress bar, the zoom, the tray and the three helpers.

Marks on the screenshot

  1. Pause
  2. Time left
  3. Progress
  4. Zoom
  5. Tray
  6. Undo
  7. Hint
  8. Shuffle
World 2, Frozen Lake: Frost shell.
World 2, Frozen Lake: Frost shell.
World 3, Santa's Workshop, with a level in a special shape.
World 3, Santa's Workshop, with a level in a special shape.
World 4, Gingerbread Town, with a tray of only 5 slots.
World 4, Gingerbread Town, with a tray of only 5 slots.
Level complete: the stars, the time left, and the Next, Replay and Home buttons.
Level complete: the stars, the time left, and the Next, Replay and Home buttons.
The three extra modes.
The three extra modes.
The album of 16 items and the outfits of the mascot.
The album of 16 items and the outfits of the mascot.
Settings. The vibration and full screen options only appear on devices that support them.
Settings. The vibration and full screen options only appear on devices that support them.

Marks on the screenshot

  1. Reduce motion
  2. Full screen
  3. Language
  4. Close
The same game on a phone, in portrait.
The same game on a phone, in portrait.

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/ and src/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.

  • FRUITS is the list of the 16 items in every theme. ice, vine (link) and wild are the special rules of worlds 2, 3 and 4. hid is a mystery item and sol is 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 is NAMES in src/audio/sound.js.

8 Customizing

Note Not a programmer? The Customization Guide shows the most common changes step by step. Open CUSTOMIZATION.html in the main folder of the download, or documentation/customization.html.

Customizing

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 &amp;). 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.

Warning Save key: everything is saved with the prefix below. If you host two copies of the game on the same domain, change 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.

Note Troubleshooting: ENOENT or a missing package.json means the terminal is in the wrong folder. EBADENGINE, or the Node.js message printed before 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 to index.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.cap in FEEL, in src/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?
No. It is a static website: HTML, CSS, JavaScript, pictures and sounds. The levels are built by the game itself.
Does it use a game engine or a library?
No. It is plain JavaScript with a 2D canvas, with no engine and no library.
Can I change the levels?
Yes. Change 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?
Yes, in portrait and landscape, with touch. It also works with a mouse on desktop.
Does it have ads, accounts or an online ranking?
No. There is no ad, account, payment or online service in this edition: progress stays in the browser of the player.

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.