Contents
1 Overview
Fresh Kicks is a complete HTML5 sneaker cleaning game. Dirty sneakers arrive on the mat of a bright workshop, 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 sneaker looks new again.
There are 20 sneakers on 2 pages, each with its own design and name. Each one has its own dirt (mud, paint, bubble gum, grass, sand, coffee, grease, slush, stickers or cobwebs) and goes through 7 steps: remove the dirt with the scraper, the sponge, the tweezers or the duster, spray the foam, scrub with the brush, flip the sneaker and scrub the sole with a toothbrush, rinse with the shower, blow-dry it and whiten the sole with a marker. The sneakers take turns in 6 colors of the workshop.
A clean sneaker can be made unique: 3 colors of laces (or the white laces), 9 charms and 9 stickers that the player drags onto the shoe (up to 8 on one sneaker). It then gets an instant photo, with the dirty sneaker in a corner, and joins a collection of 20. Each clean sneaker unlocks the next one, and a sneaker 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. Extract
fresh-kicks-static-1.0.0.zipon your computer. -
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/fresh-kicks/. -
3. Upload only the contents of the
game/folder, so thatindex.htmlsits directly inside the target folder. -
4. Keep
assets/,fonts/andsrc/besideindex.html, with names and letter case unchanged. -
5. Open
https://your-domain.example/games/fresh-kicks/in a modern browser.
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.htmldirectly from the disk (file://) does not work, because browsers block JavaScript modules there. - A current browser on desktop or mobile (tested in Chromium-based browsers and in the Safari engine). The game draws on a 2D canvas and needs no WebGL.
-
About 21 MB of space on the server, almost all of it the pictures of the sneakers. 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 sneaker and drag. The tool follows the pointer and only cleans where its tip touches the shoe. 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 7 dots for the 7 steps.
When the bar is full, the step ends with a short celebration and the next tool arrives. Before the sole step the sneaker flips over by itself, and after it the sneaker turns back. If the player stops while some dirt is left, a glow points at the spot. On the very first sneaker, a small hand shows the gesture, and the How to play panel opens once.
After the seventh step comes the customization screen with 3 tabs. Laces: pick a color (the first button keeps the white laces). Charms and Stickers: tap one to put it on the shoe, then drag it where you want it; drag it off the shoe to remove it. Done takes the photo with the name of the sneaker; Next pair opens the next one, and Collection shows every photo. Tap a photo in the collection to see it bigger.
The button at the top left pauses the cleaning (Resume, Start over or back to the sneakers) or goes back to the menu. Escape closes the open panel, or pauses during the cleaning. Progress, the laces, the charms and stickers and the settings are saved automatically.
5 Screens
Marks on the screenshot
- Play: the next sneaker to clean
- Kicks: the sneaker list
- Collection
- Sound: music and effects volume
- Settings
Marks on the screenshot
- Pause (during the cleaning) or back
- A clean sneaker
- A locked sneaker
- Pages
Marks on the screenshot
- Step card: step, progress and the 7 steps
- Pause
- Sound: music and effects volume
- Settings
Marks on the screenshot
- Laces, Charms and Stickers tabs
- Laces, charms or stickers of the open tab
- Done: take the photo
Marks on the screenshot
- Collection
- Next pair
Marks on the screenshot
- Less motion
- Full screen
- Language
- How to play
Marks on the screenshot
- Music volume
- Effects volume
Marks on the screenshot
- Resume
- Restart
- Back to the sneaker list
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, 7 steps, the 20 sneakers, decorations
src/main.js starts everything: screens, sneaker list, customization, photo, collection, panels
src/wash.js the cleaning: picture layers, what the tool removes, progress
src/stage.js the canvas: workshop, sneaker, shadow, charms and stickers, 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/kicks/<sneaker>/ side layers (g0..g6), sole (s0, s1), laces (l1..l3), small pictures (t-*)
assets/decals/ 9 charms and 9 stickers
assets/tools/, assets/fx/ tools and particles
assets/ui/ 6 workshops, logo, hand, shadow, hose, cord
assets/sfx/ sounds and music (MP3)
assets/manifest.json the sneakers 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 (14 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.FEELhas the numbers that change how cleaning feels (tool size and spring, how much must be cleaned, particles, slow motion, vibration, sound mix),TOOLSthe tip of each tool,KINDSthe 10 kinds of dirt and their tool,COMMONthe 6 steps that every sneaker shares,KICKSthe 20 sneakers and their dirt,LACES,CHARMSandSTICKERSthe customization andSCENE_NAMESthe 6 colors of the workshop. -
src/main.js: starts everything and connects the screens, the sneaker list, the customization, the photo, the collection 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 workshop, the sneaker, its charms and stickers 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) andsrc/locales.js(the other 12 languages): the texts. -
assets/kicks/<sneaker>/: the picture layers of each sneaker and its laces.assets/decals/: the charms and stickers.assets/tools/: the tools.assets/ui/: the workshops, 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 sneaker folder has 7 side layers, from dirty to clean:
g0the dirt,g1dirty,g2with foam,g3soapy,g4wet,g5dry with a grey sole,g6clean;s0ands1are the sole before and after the toothbrush;l1tol3are the clean sneaker with colored laces. The files that start witht-are the small pictures of the lists, the tray and the photo. -
The sound files end in
-aor-b: two takes of the same sound.SFX_VERinsrc/config.jssays which take is played (takeawhen a sound is not listed); only the takes in use are included. -
In the code,
calmis the Less motion setting,kindis the dirt of a sneaker,sceneis a color of the workshop (teal,coral,lilac,sky,limeandsunny),doneis the list of clean sneakers with their laces,stepthe step where a sneaker was left anddecalsthe charms and stickers placed on each sneaker.
8 Customizing
CUSTOMIZATION.html in the main folder of the download, or
documentation/customization.html.
Brand: the name in the browser tab is the <title> line of index.html (the
game writes "Fresh Kicks: " and the subtitle of the chosen language there, in apply in
src/i18n.js). The logo is assets/ui/logo-plain.webp (900 x 363 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
sneaker layers are 768 x 768 pixels with a transparent background and the sneaker in the same place on every
side layer; the small t- pictures are 256 x 256. Each workshop has a picture for wide screens
(1920 x 1080) and one for upright screens (1080 x 1920).
Sneakers and steps: the sneakers are KICKS 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 6 steps after it (the sole step has
view: 'sole'). sceneOf gives each sneaker its workshop color, in turn.
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. DECAL_MAX is the most charms and
stickers on one sneaker (8).
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.
freshkicks.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. The names of the sneakers stay the same in every language. 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 sneakers with their laces, the charms and stickers on each one, the step where each unfinished sneaker 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.
freshkicks.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 14 checks: the sneakers, their 7 steps, layers and
workshops, the charms and stickers, 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.
npm test, means Node.js is too old. If PowerShell
blocks npm.ps1, use Command Prompt or run npm.cmd.
unlockAll to true at the top of
src/main.js. Every sneaker 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 toindex.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 testbefore publishing. - The game feels slow on an old phone: turn on Less motion in Settings. The game also keeps only the sneaker 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 sneaker picture that does not load (a weak connection): the game tries again and shows "Could not load.
Tap again." Tap the sneaker again; check that every folder of
assets/kicks/was uploaded.
15 FAQ
Does the game need a database or a server language?
Does it use a game engine?
Is there online play or a ranking?
Can I add a sneaker?
assets/kicks/, add the sneaker to KICKS in
src/config.js and to assets/manifest.json, and add its name
(kick.<id>) to the 14 languages (see the Customization Guide).
Does it work on phones?
Can I make the cleaning faster or slower?
done in FEEL (src/config.js) so a step ends earlier, or
change the cleaning size r of a step in 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 "Fresh Kicks", a finished HTML5 sneaker 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 6 steps every sneaker shares (foam, brush, sole with the toothbrush, shower, dryer, marker); each step names the layer that comes off (top) and the one that appears (under); the sole step has view: 'sole' and flips the sneaker.
- KICKS has the 20 sneakers in unlock order (id, kind). SCENE_NAMES are the 6 workshop colors (teal, coral, lilac, sky, lime, sunny); sceneOf gives each sneaker one in turn. LACES are l1..l3; CHARMS and STICKERS list the decorations (assets/decals/charm-<name>.webp, sticker-<name>.webp); DECAL_MAX is the most decorations on one sneaker. SFX_IDS and SFX_VER list the sounds.
- Pictures of a sneaker: assets/kicks/<id>/g0..g6.webp (768x768 side layers from dirty to clean, same framing), s0, s1 (the sole, dirty and clean), l1..l3 (clean with colored laces), t-*.webp (256x256 thumbnails). assets/manifest.json lists the sneakers 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, sneaker list, game, customization with the Laces, Charms and Stickers tabs, photo, collection) and the panels (pause, sound, settings, language, how to play). src/stage.js draws the canvas, including the charms and stickers. 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; the sneaker names (kick.<id>) are only in English and Portuguese on purpose. Add every new text to the 14 languages.
- Saving: one localStorage key, freshkicks.v1, in src/store.js (done = clean sneakers with their laces, decals = charms and stickers per sneaker, step = where an unfinished sneaker stopped, volumes and settings).
- Testing tip: unlockAll at the top of src/main.js opens every sneaker. 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 sneaker, add a sticker 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.