Polar Games

Match the suit. Shout POP! Empty your hand. · 1.0.0

Pop Eights

A bright card game where the first player to empty their hand wins the round. Play against 1 to 3 computer rivals in Quick Match or travel through the 24 tables of the Pop Tour campaign. It runs in any modern browser, on phones, tablets and desktop, with no account or server.

Version 1.0.0 Edition HTML5 static edition

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

Contents
  1. Overview
  2. Install the ready-to-play game
  3. Requirements
  4. How the game works
  5. Interface
  6. File map
  7. Customize
  8. Languages
  9. Saved progress
  10. Install Node.js and use the tools
  11. Updates and cache
  12. Licenses
  13. Troubleshooting
  14. Frequently asked questions
  15. Support

1 Overview

Pop Eights is a card game of the shedding family with its own deck of 108 cards: four suits (Heart, Sun, Leaf and Moon), numbers from 0 to 9 and the special cards Nap, Boomerang, Gift +2, Rainbow and Rainbow +4. An optional Cascade card per suit raises the deck to 112 cards.

Quick Match lets the player choose 1 to 3 rivals, three difficulty levels and six house rules. The Pop Tour campaign has 24 tables across 4 places (Lagoon, Garden, Night Market and Snow Cabin), each with its own rivals, rules and goal, up to three stars per table, and a boss table at the end of each place.

This download includes the ready-to-host game, the full editable source, this guide, a step-by-step customization guide and the third-party license notices. This edition has no multiplayer, online ranking or payments, and it does not connect to any external service.

2 Install the ready-to-play game

Only the contents of the game/ folder go to your web host.

  1. Extract the whole ZIP on your computer.
  2. Open your hosting file manager or an FTP program and create a folder for the game, for example pop-eights.
  3. Upload everything inside game/ to that folder, keeping the folders assets, css and src as they are.
  4. Open the folder's address in a browser, for example https://yoursite.com/pop-eights/.
  5. Tap or click the title screen to start. Browsers only play sound after a first tap.
Warning The game uses JavaScript modules, so it must be opened through a web address. Double-clicking index.html on your computer will not work: use a web host or the local server described in the development section.

3 Requirements

  • Any static web host that serves plain files, with HTTPS recommended.
  • A current browser on desktop, Android or iPhone, with JavaScript enabled.
  • No database, PHP, account or external service is needed to host the game.
  • Node.js 26.13 or newer only if you want to run the optional tests, local server or build command.

4 How the game works

Each player starts with 7 cards (some campaign tables use 8 or 9). On your turn, play a card that matches the current suit, the number or the action of the top card, or draw from the deck. The first player with no cards left wins the round.

Tap a card to choose it and tap again, or press Play, to play it. A card can also be dragged to the pile. The Draw button or the deck draws a card. On desktop the same actions work with the mouse, and Esc opens or closes the pause.

Nap skips the next player. Boomerang reverses the order of play. Gift +2 makes the next player draw 2 cards, and with the Stack rule it can be answered with another one. Rainbow picks the suit and Rainbow +4 also makes the next player draw 4. Cascade throws out every card of its suit.

With two cards in hand, press POP! before playing; forgetting costs 2 cards. The winner scores the cards left in the rivals' hands: numbers are worth their value, action cards 20 and Rainbow cards 50. In the campaign the three stars are for winning, the goal of the table and drawing few cards.

5 Interface

Main menu
Main menu

Marks on the screenshot

  1. Play: opens Quick Match
  2. Campaign: opens the Pop Tour map
  3. How to play: four illustrated pages
  4. Stars collected in the campaign
  5. Sound: music and effects volumes
  6. Settings
Quick Match setup
Quick Match setup

Marks on the screenshot

  1. Rivals: tap a face to change it
  2. Number of rivals, 1 to 3
  3. Difficulty: Easy, Normal or Hard
  4. House rules for this match
  5. Start the match
Pop Tour campaign map
Pop Tour campaign map

Marks on the screenshot

  1. Current place of the tour
  2. Selected table, with its rival
  3. Boss table, with a padlock until it is unlocked
  4. Rivals, rule and what each star asks for
  5. Play the selected table
The table during a match
The table during a match

Marks on the screenshot

  1. Pause
  2. Cards left in a rival's hand
  3. Deck: tap to draw
  4. Pile: the card to match
  5. Current suit
  6. Your hand: playable cards are raised
  7. Draw a card
  8. Play the chosen card
Result panel after a win
Result panel after a win

Marks on the screenshot

  1. Points won in the round
  2. Stars earned at this table
  3. Next table, round or match
  4. Back to the menu
Settings panel
Settings panel

Marks on the screenshot

  1. Vibration on phones
  2. Less motion: fewer animations
  3. Language, 14 available
  4. House rules
Phone layout with the POP! button
Phone layout with the POP! button

Marks on the screenshot

  1. POP!: press it before your last card
  2. A rival that already called POP!

6 File map

The game/ folder is what you publish. The source/ folder holds the same editable files plus the tests and tools.

game/                        upload these contents to your web host
  index.html                 entry page with every screen
  css/                       base, table, screens, panels and effects styles
  src/main.js                boot and screen flow
  src/config.js              tunable numbers and the save key
  src/game/                  rules, rivals, match and campaign
  src/ui/                    screens, cards, panels and effects
  src/audio/sfx.js           sound effects and music
  src/lib/                   save, languages, vibration, text fitting, frames
  src/lib/locales/           the texts of the 14 languages
  src/dev/scenes.js          test scenes (local addresses only)
  assets/img/                art (WebP): cards, characters, backgrounds, interface
  assets/sfx/, assets/music/ sound effects and music (MP3)
  assets/fonts/              fonts and their licenses
  DOCUMENTATION.txt          short note that points to this guide
source/                      the same editable files, plus:
  package.json, package-lock.json
  README.md
  tests/                     rules robot and campaign tests
  tools/build.mjs            copies the game into dist/
  tools/serve.mjs            local preview server (npm run dev)
  tools/check-node.mjs       checks the Node.js version before the commands
documentation/index.html     this guide (offline, 14 languages)
documentation/customization.html   step-by-step customization guide
documentation/img/           the screenshots of the guides
DOCUMENTATION.html           shortcut to this guide
CUSTOMIZATION.html           shortcut to the customization guide
START-HERE.txt, CHANGELOG.txt
THIRD-PARTY-LICENSES/        font licenses
  • src/config.js holds the tunable numbers: rival speed, animation timings, particles, vibration, audio mix and the save key.
  • src/game/rules.js holds the rules of the game, with no drawing or timers, and src/game/ai.js holds the three rival levels.
  • src/game/campaign.js holds the 24 tables: rivals, level, rules, hand size, goal and draw limit.
  • src/ui/ holds the screens and effects, css/ the layout and src/lib/locales/ the texts of the 14 languages.
  • assets/img/ holds the art in WebP, assets/sfx/ and assets/music/ the sound in MP3 and assets/fonts/ the fonts.
  • src/dev/scenes.js holds test scenes that only run on local addresses with ?devtest. Players never see them.

7 Customize

Note The separate Customization Guide explains the most common changes step by step, with no programming knowledge needed.

Customization Guide (step by step, in English)

Art: replace a WebP file in assets/img/ with another of the same name and similar size. Cards use assets/img/cards/, characters assets/img/avatars/ and backgrounds assets/img/bg/.

Campaign: edit the list at the top of src/game/campaign.js. Each line is one table with its rivals, level, rules, hand size, goal and draw limit.

Pace: the FEEL block in src/config.js sets how fast rivals play, how cards fly and how many particles appear.

Texts: each language is one file in src/lib/locales/, and all of them use the same keys. Keep the marks such as {...} inside the sentences.

Music and sound effects

Sound effects are MP3 files in assets/sfx/, and the list of names is SFX_IDS in src/audio/sfx.js. Replace a file keeping its name.

Music is in assets/music/: menu.mp3, one loop per place (lagoa, jardim, feira, chale) and the short vitoria.mp3 for wins.

Warning If you host two copies of the game on the same domain, change STORAGE_PREFIX in src/config.js so their saved progress stays separate.

8 Languages

The interface comes in 14 languages: English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean and Chinese.

The game follows the browser language on the first visit, and the player can change it at any moment in Settings without losing progress.

To add a language, copy src/lib/locales/en.js, translate its values, then import it in src/lib/locales.js and add its code to LANGS and LANG_NAMES.

9 Saved progress

  • Stars, unlocked tables, volumes, language, house rules and settings are saved automatically in the browser's local storage.
  • Clearing the browser's site data deletes this progress. There is no cloud save, and progress does not move between devices.
  • All saved values use the prefix below, followed by the name of each value.
pop-eights.template.save.v1:

10 Install Node.js and use the tools

This part is optional. The ready game needs none of it; it is only for running the tests, previewing your edits and creating a new copy to upload.

1. Download the LTS version of Node.js (26.13 or newer) from https://nodejs.org/ and install it with the default options.

2. Open a new terminal: PowerShell on Windows, Terminal on macOS or Linux.

3. Check that both commands answer with a version number:

node --version
npm --version

4. Go to the extracted source folder, for example with cd path/to/source. It is the folder that contains package.json.

5. Check the project and run the automatic tests:

npm ci
npm test

6. Preview the game while you edit it, at http://localhost:5270/ (press Ctrl+C to stop):

npm run dev

7. Create the copy to publish, which is written to the dist folder:

npm run build

8. Upload the contents of dist to your host, replacing the old files.

Note The project has no dependencies, so npm ci downloads nothing. If Windows blocks npm, run npm.cmd instead or allow scripts for your user. If a command reports an old Node.js version, install the LTS version and open a new terminal.

Test scenes

On your own computer only, this address opens the table in a ready state. Scenes go from 01 to 19 and are listed in src/dev/scenes.js:

http://localhost:5270/?devtest&scene=04

11 Updates and 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.

12 Licenses

The game uses the fonts Fredoka and Nunito under the SIL Open Font License 1.1. Their notices are in THIRD-PARTY-LICENSES/ and in assets/fonts/.

Japanese, Korean and Chinese use the fonts of the player's device. The project has no third-party code libraries.

13 Troubleshooting

  • Blank page: confirm that all of game/ was uploaded, including assets, css and src, and that you opened a web address, not a file on your disk.
  • A script error about MIME type: your server must send .js files as JavaScript. Most hosts already do; if yours does not, ask them to enable it.
  • No sound: browsers only start audio after a tap or click. Check that the volumes in the sound panel are not at zero and that the phone is not silenced.
  • An old version still appears after an update: clear the cache as explained in the section above.
  • Progress disappeared: it is stored per browser and per address, so a new domain, a private window or cleared site data starts a new save.

14 Frequently asked questions

Does the game need a server or a database?
No. It is a set of static files, and progress stays in the player's browser.
Can I change the cards, the characters and the backgrounds?
Yes. Replace the WebP files in assets/img/ keeping their names. The Customization Guide shows how.
Can I change the campaign or the difficulty?
Yes. The tables are in src/game/campaign.js and the rivals' behavior is in src/game/ai.js. Run npm test after changing the rules.
Can I embed it in my own site?
Yes. Host the game/ contents and show that address in an iframe. Add allow="fullscreen" if you want the full screen option to work.
Can I resell this template as it is?
Check the terms of your license on the item's CodeCanyon page before reselling or redistributing it.

15 Support

For help with this product or for custom development, write to the address below with your purchase code, the address where the game is hosted and a description of the problem.

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.