Plush Wash: Customization Guide

Step-by-step changes for people who do not program. Everything works with a free text editor.

1. Before you start

  1. Make a copy of the whole download. If something goes wrong, you can go back to it.
  2. Install a free code editor such as Visual Studio Code (or Notepad++ on Windows). For pictures, the free GIMP or Krita open and export WebP files. For sounds, the free Audacity exports MP3.
  3. Work inside source/. To see your changes, open a terminal in that folder and run npm run dev, then open http://localhost:5180/. The game does not run by double-clicking index.html, because browsers block JavaScript modules on file://.
  4. No terminal? Edit the files of game/ directly, upload them to your host and reload the page.

2. Your brand: name, logo and icon

The main menu with the logo
  1. The name in the browser tab is the <title> line of index.html.
  2. The logo is assets/ui/logo-plain.webp (900 x 349 pixels, transparent background). To use your own, save it at the same size with a transparent background. The subtitle under the logo is the text subtitle of each language in src/i18n.js and src/locales.js.
  3. The page has no icon of its own. To add one, put your picture in assets/ui/ and add a line such as <link rel="icon" href="assets/ui/icon.png"> inside the <head> of index.html.
  4. The menu shows two toys in a bathroom, drawn by the code from the toy pictures; the main colors of the buttons are in src/styles.css (next section).

3. Colors and the look

The look of the buttons, panels and the step card is in src/styles.css. Its main colors are at the top of the file. Change a color, save and reload the page:

:root {
  --blue: #35b3f2; /* blue buttons and title bands */
  --blue-d: #1f8fd0; /* dark blue edges */
  --pink: #ff6fa8; /* pink action buttons */
  --pink-d: #e0508a; /* dark pink edges */
  --ink: #2b3a5e; /* text */
  --green: #3fce6a; /* progress bar */
}

The bathrooms are pictures (assets/ui/bg-<color>-landscape.webp and -portrait.webp); the bathroom of each toy is TOY_SCENE in src/config.js.

4. Replace pictures (reskin)

Replace a file with another of the same name and the same size. Nothing else needs to change.

On screen File
The layers of a toy, from dirty to clean assets/toys/<toy>/g0.webp to g6.webp (768 x 768, transparent background, the toy in the same place on every layer)
The 4 outfits of a toy assets/toys/<toy>/o1.webp to o4.webp (768 x 768, the clean toy wearing the outfit)
The small pictures of the lists, the tray and the photo assets/toys/<toy>/t-g0.webp to t-g6.webp and t-o1.webp to t-o4.webp (256 x 256)
The 6 bathrooms, on wide and on upright screens assets/ui/bg-<color>-landscape.webp (1920 x 1080) and bg-<color>-portrait.webp (1080 x 1920), for mint, rose, lavender, sky, aqua and sunny
The tools assets/tools/scraper.webp, sponge.webp, tweezers.webp, duster.webp, foam.webp, brush.webp, shower.webp, dryer.webp and comb.webp (transparent background)
The particles assets/fx/*.webp (about 128 x 128): bubbles, drops, dirt pieces, dust, tufts of fur, water and sparkles
The logo assets/ui/logo-plain.webp (900 x 349)
The hand of the first toy, the shadow, the shower hose and the dryer cord assets/ui/hand.webp, shadow.webp, hose.webp and cord.webp

5. The toys

The toy list

Open src/config.js. TOYS has one line for each toy, in the order they unlock: id is the name of its folder in assets/toys/ and kind its dirt (mud, choco, slime, stickers, paint, twigs, gum, jam, webs or sand). To change the dirt of a toy, change kind; the first layer g0 must show that dirt.

To add a toy: make its folder in assets/toys/ with the 22 pictures of the table above, add a line to TOYS, add its id to assets/manifest.json (the game only shows toys listed there), give it a bathroom in TOY_SCENE and add the text toy.<id> to the 14 languages. Run npm test: one check counts 20 toys and must be updated.

6. Steps and tools

Spraying the foam

KINDS in src/config.js sets, for each dirt, the tool (tool), the sound (sfx), the particles (fx), the shape of what the tool removes (stamp) and the instruction (text). COMMON is the list of the 5 steps after the dirt: foam, brush, shower, dryer and comb.

TOOLS sets the tip of each tool inside its picture (tip) and, for the spray tools, the distance to the toy (gap). r in each step is the size of the cleaning area. Change one number at a time, in small steps, and clean a toy to try it.

7. Game feel

Brushing a toy

Open src/config.js. The most useful numbers of FEEL:

Setting What it does
FEEL.done How much of a step must be cleaned (0.975) before the last bits go away on their own.
FEEL.toolSize and FEEL.toolSpring The size of the tool (0.3 of the toy) and how closely it follows the pointer (a spring).
FEEL.touchLift On a touch screen, how far above the finger the tip of the tool stays (0.07), so the finger does not hide it.
FEEL.particles The most particles on screen at once, on a computer (260) and on a touch screen (150).
FEEL.slow and FEEL.stepPauseMs The short slow motion at the end of the last step and the pause between two steps, in milliseconds (620).
FEEL.hintIdleMs How long the player can stop (1500 milliseconds) before a glow points at the dirt that is left.
FEEL.vibrateMs and FEEL.mix The length of the vibration while cleaning, and the volumes: music (0.42), sfx (0.9) and the echo reverb (0.13).

8. Texts and languages

Settings panel

9. Sounds and music

The sounds are MP3 files in assets/sfx/. Replace a file and keep its name.

Files When they play
scrape-a.mp3, wipe-a.mp3, pick-a.mp3 and dust-a.mp3 The first step: scraper, sponge, tweezers and duster (they loop while the tool moves).
spray-a.mp3, brush-a.mp3, shower-a.mp3, dryer-a.mp3 and comb-a.mp3 The foam, the brush, the shower, the dryer and the comb (they loop while the tool moves).
step-a.mp3 and clean-a.mp3 A finished step and a clean toy.
outfit-a.mp3, shutter-a.mp3 and unlock-a.mp3 Putting on an outfit, the photo and a new toy unlocked.
tap-a.mp3, open-a.mp3, close-a.mp3 and page-a.mp3 Buttons, panels and the pages of the toy list.
grab-a.mp3, drop-a.mp3, squeak-a.mp3 and bubble-b.mp3 Picking up a tool, the toy dropping into the bath, a squeak of the toy and bubbles.

The music is assets/sfx/music-a.mp3. The volume of each sound is in SFX_GAIN in src/sfx-gain.js (bigger is louder), and the list of sounds is SFX_IDS in src/config.js:

export const SFX_IDS = ['scrape', 'wipe', 'pick', 'dust', 'spray', 'brush', 'shower', 'dryer', 'comb', 'tap', 'open', 'close', 'grab', 'drop', 'squeak', 'bubble', 'step', 'clean', 'outfit', 'shutter', 'unlock', 'page'];

10. Save keys and starting over

The progress stays in the browser of each player, under the key plushwash.v1. If you host two copies of the game on the same domain, change this name in src/store.js of one of them.

To start over, delete this key in the developer tools (F12), under Application, Local Storage, or clear the site data of the browser.

11. Publish your version

  1. In source/, run npm test and npm run build. This writes source/dist/.
  2. Back up the game on your website, then upload the contents of dist/ in place of the old files.
  3. Keep the folders as they are. If you added a new file or folder next to index.html, add its name to PARTS in source/tools/build.mjs.
  4. Clear the browser cache to see the new version (see the buyer guide).

Support: willian@polargames.com.br