Polar Games

A toy cleaning game for the web · 1.0.0

Plush Wash

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. For AI assistants
  17. Support

1 Overview

Plush Wash is a complete HTML5 toy cleaning game. Dirty plush toys arrive in a bright pastel bathroom, and the player cleans each one by dragging tools across it: the dirt, the foam, the soap and the water come off under the tool, layer by layer, until the toy is soft and clean again.

There are 20 plush toys on 2 pages: koala, bunny, ducky, fox, elephant, sloth, lion, hippo, owl, giraffe, whale, llama, hedgehog, turtle, tiger, panda, axolotl, reindeer, seal and dragon. Each toy has its own dirt (mud, chocolate, slime, stickers, paint, twigs, bubble gum, jam, cobwebs or sand) and goes through 6 steps: remove the dirt with the scraper, the sponge, the tweezers or the duster, then spray the foam, scrub with the brush, rinse with the shower, blow-dry the fur and comb it. Each toy has its own bathroom, in one of 6 colors.

A clean toy can wear one of its 4 outfits (or none) and gets an instant photo, with the dirty toy in a corner. The photos fill an album of 20. Each clean toy unlocks the next one, and a toy left halfway continues from the same step. The game has recorded sound effects and music, vibration on phones, a reduced motion option, 14 interface languages and layouts for phone, tablet and desktop.

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 plush-wash-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/plush-wash/.
  3. 3. Upload only the contents of the game/ folder, so that index.html sits directly inside the target folder.
  4. 4. Keep assets/, fonts/ and src/ beside index.html, with names and letter case unchanged.
  5. 5. Open https://your-domain.example/games/plush-wash/ 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. The game draws on a 2D canvas and needs no WebGL.
  • About 25 MB of space on the server, almost all of it the pictures of the toys. The game makes no request to other websites: the fonts, pictures and 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

Clean: press on the toy and drag. The tool follows the pointer and only cleans where its tip touches the toy. The spray tools (foam, shower and dryer) work from a short distance. The card at the top shows the step, a bar with the percentage and 6 dots for the 6 steps.

When the bar is full, the step ends with a short celebration and the next tool arrives. If the player stops while some dirt is left, a glow points at the spot. On the very first toy, a small hand shows the gesture, and the How to play panel opens once.

After the sixth step, pick an outfit from the tray (the first button is no outfit) and press Done. The photo appears with the name of the toy; Next toy opens the next one, and Album shows every photo. Tap a photo in the album to see it bigger.

The button at the top left pauses the cleaning (Resume, Start over or back to the toys) or goes back to the menu. Escape closes the open panel, or pauses during the cleaning. Progress, the outfits and the settings are saved automatically.

5 Screens

Main menu: Play opens the next toy to clean, Toys opens the list and Album the photos. Sound and Settings stay
in the top corner.
Main menu: Play opens the next toy to clean, Toys opens the list and Album the photos. Sound and Settings stay in the top corner.

Marks on the screenshot

  1. Play: the next toy to clean
  2. Toys
  3. Album
  4. Sound: music and effects volume
  5. Settings
The toy list: 10 toys per page. Clean toys show their outfit, the next one is marked New, and the others stay
locked until the toy before them is clean.
The toy list: 10 toys per page. Clean toys show their outfit, the next one is marked New, and the others stay locked until the toy before them is clean.

Marks on the screenshot

  1. Pause (during the cleaning) or back
  2. A clean toy
  3. A locked toy
  4. Pages
The first step: each toy has its own dirt and its own tool, here the scraper on mud. The card shows the step, the
percentage and the 6 steps.
The first step: each toy has its own dirt and its own tool, here the scraper on mud. The card shows the step, the percentage and the 6 steps.

Marks on the screenshot

  1. Step card: step, progress and the 6 steps
  2. Pause
  3. Sound: music and effects volume
  4. Settings
Step 2: spray the foam over the whole toy.
Step 2: spray the foam over the whole toy.
Step 3: scrub with the brush. The foam turns into soap bubbles.
Step 3: scrub with the brush. The foam turns into soap bubbles.
Step 4: rinse off the soap with the shower.
Step 4: rinse off the soap with the shower.
Step 5: blow-dry the wet fur.
Step 5: blow-dry the wet fur.
Step 6: comb the fluffy fur until it is smooth.
Step 6: comb the fluffy fur until it is smooth.
The outfit tray: 4 outfits for every toy, or none. Done takes the photo.
The outfit tray: 4 outfits for every toy, or none. Done takes the photo.

Marks on the screenshot

  1. Outfits
  2. Done: take the photo
The photo of the clean toy, with the dirty toy in the corner.
The photo of the clean toy, with the dirty toy in the corner.

Marks on the screenshot

  1. Album
  2. Next toy
The album with the photos of the clean toys (20 in all).
The album with the photos of the clean toys (20 in all).
Settings: vibration (on devices that can vibrate), less motion, full screen (when the browser allows it),
language and How to play.
Settings: vibration (on devices that can vibrate), less motion, full screen (when the browser allows it), language and How to play.

Marks on the screenshot

  1. Less motion
  2. Full screen
  3. Language
  4. How to play
The Sound panel: one slider for the music and one for the effects.
The Sound panel: one slider for the music and one for the effects.

Marks on the screenshot

  1. Music volume
  2. Effects volume
The pause panel: resume, start the toy over or go back to the toy list.
The pause panel: resume, start the toy over or go back to the toy list.

Marks on the screenshot

  1. Resume
  2. Restart
  3. Back to the toy list
The 14 languages of the game.
The 14 languages of the game.
How to play: three short lines that open once on the first toy and stay in Settings.
How to play: three short lines that open once on the first toy and stay in Settings.
A phone in portrait: the same game, with the toy in the middle of the screen.
A phone in portrait: the same game, with the toy in the middle of the screen.

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 command. The code is plain JavaScript ES modules with no compile step and no npm dependency.

game/                        upload these contents to your web host
  index.html                 every screen and panel
  src/config.js              START HERE: feel numbers, tools, dirt kinds, the 20 toys, bathrooms
  src/main.js                starts everything: screens, toy list, outfits, photo, album, panels
  src/wash.js                the cleaning: picture layers, what the tool removes, progress
  src/stage.js               the canvas: bathroom, toy, shadow, particles, tool
  src/fx.js, src/uifx.js     springs, particles, motion of menus and panels
  src/audio.js, src/sfx-gain.js   music and sound effects, volume of each sound
  src/store.js               saving in the browser
  src/i18n.js, src/locales.js     the 14 languages
  src/styles.css             look of the interface
  assets/toys/<toy>/         7 layers (g0..g6), 4 outfits (o1..o4), small pictures (t-*)
  assets/tools/, assets/fx/  tools and particles
  assets/ui/                 6 bathrooms, logo, hand, shadow, hose, cord
  assets/sfx/                sounds and music (MP3)
  assets/manifest.json       the toys the game shows
  assets/AUDIO-AND-ART-CREDITS.txt   credits of the sounds, music and art
  fonts/                     Fredoka and Nunito (Cyrillic) with their licenses
  DOCUMENTATION.txt          short note that points to this guide
source/                      the same editable files, plus:
  package.json, package-lock.json
  README.md, DO-NOT-UPLOAD.txt
  tests/                     npm test (13 checks)
  tools/build.mjs            copies the game into dist/
  tools/serve.mjs            local preview server (npm run dev, npm run preview)
  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/        Fredoka and Nunito licenses, credits
  • src/config.js: the first file to edit. FEEL has the numbers that change how cleaning feels (tool size and spring, how much must be cleaned, particles, slow motion, vibration, sound mix), TOOLS the tip of each tool, KINDS the 10 kinds of dirt and their tool, COMMON the 5 steps that every toy shares, TOYS the 20 toys and their dirt, and TOY_SCENE the bathroom of each toy.
  • src/main.js: starts everything and connects the screens, the toy list, the outfits, the photo, the album and the panels. src/wash.js: the cleaning itself (the picture layers, what the tool removes and the progress of each step). src/stage.js: the canvas with the bathroom, the toy and the tool.
  • src/fx.js: springs and particles. src/uifx.js: the motion of menus and panels. src/audio.js: music and sound effects; src/sfx-gain.js: the volume of each sound file. src/store.js: saving.
  • index.html: the page with every screen and panel. src/styles.css: the look of the interface. src/i18n.js (English and Portuguese) and src/locales.js (the other 12 languages): the texts.
  • assets/toys/<toy>/: the picture layers of each toy and its outfits. assets/tools/: the tools. assets/ui/: the bathrooms, the logo and the hand, shadow, hose and cord. assets/fx/: the particles. assets/sfx/: sounds and music. fonts/: the fonts and their licenses.

7 Internal names in the code

Some names in the files are not the words on the screen. They are only names: players never see them. The table of this section tells you which file is which.

  • Each toy folder has 7 layers, from dirty to clean: g0 the dirt, g1 dirty, g2 with foam, g3 soapy, g4 wet, g5 fluffy after the dryer, g6 clean. o1 to o4 are the 4 outfits. The files that start with t- are the small pictures of the lists and the photo.
  • The sound files end in -a or -b: two takes of the same sound. SFX_VER in src/config.js says which take is played (take a when a sound is not listed); only the takes in use are included.
  • In the code, calm is the Less motion setting, kind is the dirt of a toy, scene is a bathroom (mint, rose, lavender, sky, aqua and sunny), done is the list of clean toys with their outfit and step the step where a toy was left.

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

Brand: the name in the browser tab is the <title> line of index.html (the game writes "Plush Wash: " and the subtitle of the chosen language there, in apply in src/i18n.js). The logo is assets/ui/logo-plain.webp (900 x 349 pixels, transparent background); the subtitle under it is the text subtitle of each language. The page has no icon of its own: add a <link rel="icon"> line to index.html if you want one.

Pictures: replace a file in assets/ with another WebP of the same name and the same size. The toy layers are 768 x 768 pixels with a transparent background and the toy in the same place on every layer; the small t- pictures are 256 x 256. Each bathroom has a picture for wide screens (1920 x 1080) and one for upright screens (1080 x 1920).

Toys and steps: the toys are TOYS in src/config.js, in the order they unlock, each with the kind of its dirt. KINDS sets the tool, the sound, the particles and the instruction of each dirt, and COMMON the 5 steps after it. TOY_SCENE gives each toy its bathroom.

Feel: FEEL in src/config.js. done is how much of a step must be cleaned before the rest goes away on its own, toolSize and toolSpring the size of the tool and how closely it follows the pointer, particles the limit of particles, slow the short slow motion of the last step, hintIdleMs the wait before the glow points at leftover dirt and mix the volumes.

Sounds and music

The sounds are MP3 files in assets/sfx/, one per action (for example scrape-a.mp3, spray-a.mp3, shower-a.mp3, dryer-a.mp3, shutter-a.mp3). The cleaning sounds play in a loop while the tool moves and follow its speed. Replace a file and keep its name; if the new one is louder or softer, change its number in SFX_GAIN in src/sfx-gain.js.

The music is assets/sfx/music-a.mp3, which plays in a loop; MUSIC_LOOP_END in src/sfx-gain.js and musicEnd in FEEL are the second where the loop starts again. FEEL.mix in src/config.js has the volume of the music, the effects and the echo of the bathroom.

Warning Save key: the progress and the settings are saved under plushwash.v1 (in src/store.js). If you host two copies of the game on the same domain, change this name in 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.

English and Portuguese are in src/i18n.js and the other 12 languages in src/locales.js: each language is a list of key and text. Change the text and keep the key. A text that is missing in a language shows the English one. The list of languages shown in Settings is LANGS at the top of src/i18n.js.

There is no address switch for the language: the first visit uses the language of the browser and the player changes it in Settings, where it is remembered. Russian uses the Nunito font included for Cyrillic letters; Japanese, Korean and Chinese use the fonts of the device.

10 Saving and resetting

  • The clean toys with their outfit, the step where each unfinished toy stopped, the volumes, vibration, less motion, the language and the How to play panel already seen are saved automatically in the browser of each player (localStorage). Nothing is sent to a server.
  • Everything is stored under one key:
  • To start over, delete this key in the developer tools (F12), under Application, Local Storage, or clear the site data in the browser.
plushwash.v1

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 npm 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 (nothing is downloaded, the project has no dependencies). npm test runs 13 checks: the toys, their steps, pictures and bathrooms, the sounds, the save key, 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 index.html, src/, assets/ and fonts/ 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.
Note Testing tip: while you work on the game, set unlockAll to true at the top of src/main.js. Every toy then opens without cleaning the one before. Set it back to false before you publish.

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 parts, with their complete license texts in THIRD-PARTY-LICENSES/: the Fredoka font and the Cyrillic letters of the Nunito font (SIL Open Font License 1.1, also in fonts/). The sounds and the music were made for this game; their note is assets/AUDIO-AND-ART-CREDITS.txt.

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, click or key press. Check both volumes in the Sound panel and the volume of the device.
  • A blank page after you edit a code file: there is a typo in the file. Open the browser console (F12) to see the line, and run npm test before publishing.
  • The game feels slow on an old phone: turn on Less motion in Settings. The game also keeps only the toy being cleaned in memory and uses fewer particles on touch screens.
  • The old version still appears after an update: clear the cache (see the section above). Two copies on the same domain share their progress: give each copy its own save key.
  • A toy picture that does not load (a weak connection): the game tries again and shows "Could not load. Tap again." Tap the toy again; check that every folder of assets/toys/ was uploaded.

15 FAQ

Does the game need a database or a server language?
No. It is a static website: HTML, CSS, JavaScript, pictures and sounds.
Does it use a game engine?
No. It is plain JavaScript drawn on a 2D canvas, with no library. The cleaning, the particles, the screens and the sound are original code.
Is there online play or a ranking?
No. It is a single-player game. Progress stays in the browser of each player.
Can I add a toy?
Yes. Make the 7 layers, the 4 outfits and their small pictures with the same names and sizes in a new folder of assets/toys/, add the toy to TOYS in src/config.js and to assets/manifest.json, give it a bathroom in TOY_SCENE and add its name (toy.<id>) to the 14 languages (see the Customization Guide).
Does it work on phones?
Yes, in portrait and landscape, with touch. On a computer it works with the mouse.
Can I make the cleaning faster or slower?
Yes. Lower done in FEEL (src/config.js) so a step ends earlier, or change the cleaning size r of a step in KINDS, COMMON and stepsOf.

16 For AI assistants

If you ask an AI assistant to help you change this game, give it the prompt below together with your request. It describes the project so the assistant works on the right files and does not break the rules of the game.

You are helping me change "Plush Wash", a finished HTML5 toy cleaning game (version 1.0.0). Read these facts before you edit anything.

PROJECT
- Plain JavaScript ES modules, HTML and CSS, drawn on a 2D canvas, sound through Web Audio. No bundler, no compile step, no library, no npm dependencies.
- The editable project is source/ (the same files as game/, plus tests and tools). Edit source/, never game/ or source/dist/.
- npm run build copies index.html, src/, assets/ and fonts/ into source/dist/ and nothing else. Upload the CONTENTS of dist/ (or game/) to a static web host.
- Node.js 26.13.0 or newer is needed only for: npm ci, npm test, npm run dev (http://localhost:5180/), npm run build, npm run preview.

GAME
- Data and feel: src/config.js. FEEL has every feel number. TOOLS has the tip of each tool sprite (and gap for spray tools). KINDS has the 10 dirt kinds (tool, sound, particles, stamp, text key). COMMON has the 5 steps every toy shares (foam, brush, shower, dryer, comb).
- TOYS has the 20 toys in unlock order (id, kind). TOY_SCENE gives each toy a bathroom (mint, rose, lavender, sky, aqua, sunny). OUTFITS are o1..o4. SFX_IDS and SFX_VER list the sounds.
- Pictures of a toy: assets/toys/<id>/g0..g6.webp (768x768 layers from dirty to clean, same framing), o1..o4.webp (outfits), t-*.webp (256x256 thumbnails). assets/manifest.json lists the toys the game shows.
- Cleaning: src/wash.js. Each step erases the top layer where the tool tip touches and reveals the layer below; progress counts only the area that changes between the two layers; at FEEL.done the rest fades.
- src/main.js connects the screens (menu, toy list, game, outfit tray, photo, album) and the panels (pause, sound, settings, language, how to play). src/stage.js draws the canvas. src/fx.js has springs and particles, src/uifx.js the motion of menus and panels. src/audio.js plays sounds (assets/sfx/<id>-<take>.mp3, volumes in src/sfx-gain.js).
- Texts: src/i18n.js (English and Portuguese, list LANGS) and src/locales.js (the other 12 languages), key: text. A missing key falls back to English. Add every new text to the 14 languages.
- Saving: one localStorage key, plushwash.v1, in src/store.js (done = clean toys with their outfit, step = where an unfinished toy stopped, volumes and settings).
- Testing tip: unlockAll at the top of src/main.js opens every toy. Keep it false when publishing.

RULES FOR YOU
1. Make the smallest change that does what I ask. Do not rename or move files.
2. Run npm test after every change and fix what it reports. Run npm run build at the end.
3. Test through a web server (npm run dev), never from file://.
4. Add no network request, CDN, analytics, advertising or external font. Keep THIRD-PARTY-LICENSES/ and the licenses in fonts/.
5. Keep comments in English and keep the last line of each own JavaScript and CSS file: // End of <path> (complete file).

MY REQUEST:
(write what you want here)

Replace the last line with what you want, for example: add a new toy, change the order of the toys or change the color of the buttons. Always run npm test after the change.

17 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.