Fresh Kicks: 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 363 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 the next sneaker on the workshop mat, drawn by the code from the sneaker 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 workshops are pictures (assets/ui/bg-<color>-landscape.webp and -portrait.webp); SCENE_NAMES in src/config.js lists them, and the sneakers use them in turn.

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 side layers of a sneaker, from dirty to clean assets/kicks/<sneaker>/g0.webp to g6.webp (768 x 768, transparent background, the sneaker in the same place on every layer)
The sole of a sneaker, dirty and clean assets/kicks/<sneaker>/s0.webp and s1.webp (768 x 768, the sneaker upside down)
The 3 lace colors of a sneaker assets/kicks/<sneaker>/l1.webp to l3.webp (768 x 768, the clean sneaker with colored laces)
The small pictures of the lists, the tray and the photo assets/kicks/<sneaker>/t-g0.webp, t-g6.webp and t-l1.webp to t-l3.webp (256 x 256)
The 6 workshops, on wide and on upright screens assets/ui/bg-<color>-landscape.webp (1920 x 1080) and bg-<color>-portrait.webp (1080 x 1920), for teal, coral, lilac, sky, lime and sunny
The tools assets/tools/scraper.webp, sponge.webp, tweezers.webp, duster.webp, foam.webp, brush.webp, toothbrush.webp, shower.webp, dryer.webp, marker.webp and comb.webp (transparent background)
The charms and stickers assets/decals/charm-<name>.webp and sticker-<name>.webp (about 200 pixels high, transparent background)
The particles, the hand of the first sneaker, the shadow, the shower hose and the dryer cord assets/fx/*.webp and assets/ui/hand.webp, shadow.webp, hose.webp and cord.webp

5. The sneakers, laces, charms and stickers

The sneaker list

Open src/config.js. KICKS has one line for each sneaker, in the order they unlock: id is the name of its folder in assets/kicks/ and kind its dirt (mud, paint, gum, grass, sand, coffee, grease, snow, stickers or dust). To change the dirt of a sneaker, change kind; the first layer g0 must show that dirt. CHARMS and STICKERS list the decorations by the names of their files in assets/decals/; add a name there and its picture to offer a new one.

To add a sneaker: make its folder in assets/kicks/ with the pictures of the table above, add a line to KICKS, add its id to assets/manifest.json (the game only shows sneakers listed there) and add the text kick.<id> to the 14 languages. Run npm test: one check counts 20 sneakers 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 6 steps after the dirt: foam, brush, sole (toothbrush), shower, dryer and marker. Each step names the layer that comes off (top) and the one that appears (under).

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

7. Game feel

Scrubbing a sneaker with the brush

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 sneaker picture) 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 and the toothbrush, the shower, the dryer and the marker (they loop while the tool moves).
step-a.mp3 and clean-a.mp3 A finished step and a clean sneaker.
lace-a.mp3, shutter-a.mp3 and unlock-a.mp3 Laces, a charm or a sticker put on, the photo and a new sneaker unlocked.
tap-a.mp3, open-a.mp3, close-a.mp3 and page-a.mp3 Buttons, panels and the pages of the sneaker list.
grab-a.mp3, drop-a.mp3 and bubble-b.mp3 Picking up a tool, the sneaker dropping onto the mat 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', 'bubble', 'step', 'clean', 'lace', 'shutter', 'unlock', 'page',
];

10. Save keys and starting over

The progress stays in the browser of each player, under the key freshkicks.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