Polar Games

A 3D knife flip and slicing game for the web · 1.0.0

Crisp Cut

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

Crisp Cut is a complete HTML5 3D slicing game in a bright pastel studio. One tap makes the knife jump forward and flip; the blade slices everything on its way (soap bars, jelly, layered cakes, fruit, sushi, macarons, cheese, honeycomb and more), the halves fall apart with a satisfying sound, and the knife sticks into the next pedestal. Only the blade cuts: the handle bumps the item and bounces back.

There are 50 levels in 5 worlds of 10 levels, each world with its own colours and music. From the second level of a world, a machine moves the treats: fruit hanging from an arch in world 1, a conveyor in world 2, a ferris wheel in world 3 and pendulums in world 4; world 5 mixes them. Levels 10, 20, 30, 40 and 50 have a giant layer cake to sink the knife through. Rubber bumpers push the knife back from level 5 on. Every level ends at the bonus tower: where the blade sticks sets the multiplier (x2, x3, x5 or x10).

The coins of a level are the items sliced times the tower multiplier, and each level gives 1 to 3 stars for the share sliced. Coins buy 16 knives in the shop, each with its own shape and trail. The first level has a short hand tutorial. The game has recorded sound effects, a music loop per world, vibration on phones, reduced motion, full screen, 14 interface languages and layouts for phone, tablet and desktop. It is drawn in real 3D with Three.js, which is included in the download.

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 crisp-cut-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/crisp-cut/.
  3. 3. Upload only the contents of the game/ folder, so that index.html sits directly inside the target folder.
  4. 4. Keep assets/, lib/ and src/ beside index.html, with names and letter case unchanged.
  5. 5. Open https://your-domain.example/games/crisp-cut/ 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 with WebGL 2: Chrome, Edge, Firefox, Safari or Opera, on desktop or mobile. The game draws in 3D, so a phone or computer from the last few years works best.
  • About 17 MB of space on the server. The game makes no request to other websites: the Three.js library, 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

Play: tap or click anywhere on the game, or press Space, Enter or the Up arrow. The knife jumps forward and flips. Tap again in the air to keep flying further; near the top the taps stop adding height.

Slice: the blade cuts every item it crosses, and each item adds to the score at the top. Cutting several items in a row builds a streak with words such as Nice!, Crisp! and So satisfying! The handle does not cut: if it hits an item or a pedestal, the knife bounces back. Land on the blade to keep going; falling off the edge ends the level.

Finish: at the end of each level, stick the blade into the bonus tower. The thin band in the middle pays x10, the others x5, x3 and x2. The coins of the level are the score times this multiplier.

Keyboard: Space, Enter or the Up arrow tap (on the main menu they start the level). Escape closes the open panel, or opens Settings and pauses while you play.

5 Screens

Main menu: Play continues from the highest level unlocked; Knives opens the shop and Levels the level select.
The coins are at the top left, Sound and Settings at the top right.
Main menu: Play continues from the highest level unlocked; Knives opens the shop and Levels the level select. The coins are at the top left, Sound and Settings at the top right.

Marks on the screenshot

  1. Play
  2. Knives (shop)
  3. Levels
  4. Coins
  5. Sound: music and effects volume
  6. Settings
Playing: the knife sinks through a pile of soap bars. The score is at the top, above the level number; Sound
and Settings (which also pauses) stay at the top right.
Playing: the knife sinks through a pile of soap bars. The score is at the top, above the level number; Sound and Settings (which also pauses) stay at the top right.

Marks on the screenshot

  1. Score
  2. Level number
  3. Sound: music and effects volume
  4. Settings
World 1: fruit hanging from an arch, cut in the air.
World 1: fruit hanging from an arch, cut in the air.
World 2: a conveyor carries the treats along the pedestal.
World 2: a conveyor carries the treats along the pedestal.
World 3: a ferris wheel turns its fruit around.
World 3: a ferris wheel turns its fruit around.
World 4: pendulums swing their fruit under a striped bar.
World 4: pendulums swing their fruit under a striped bar.
World 5 mixes the machines of the other worlds.
World 5 mixes the machines of the other worlds.
Levels 10, 20, 30, 40 and 50: the knife sinks through a giant layer cake.
Levels 10, 20, 30, 40 and 50: the knife sinks through a giant layer cake.
The bonus tower at the end of a level: the band where the blade sticks sets the multiplier.
The bonus tower at the end of a level: the band where the blade sticks sets the multiplier.
Level complete: stars and share sliced, items sliced, the bonus of the tower and the coins earned. Next opens the
next level; the small buttons replay the level, open the knives or go to the menu.
Level complete: stars and share sliced, items sliced, the bonus of the tower and the coins earned. Next opens the next level; the small buttons replay the level, open the knives or go to the menu.

Marks on the screenshot

  1. Next level
  2. Replay the level
  3. Knives (shop)
  4. Menu
The knife fell off the edge: Try again restarts the level.
The knife fell off the edge: Try again restarts the level.

Marks on the screenshot

  1. Try again
The knife shop: 16 knives. A knife you own is equipped with one tap; the others show their price in coins.
The knife shop: 16 knives. A knife you own is equipped with one tap; the others show their price in coins.
The level select: one page per world, with the stars of each finished level. Levels open one by one.
The level select: one page per world, with the stars of each finished level. Levels open one by one.

Marks on the screenshot

  1. Previous world
  2. Next world
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. Vibration
  2. Reduced motion
  3. Full screen
  4. Language
  5. How to play
The language panel, opened from Settings: 14 languages.
The language panel, opened from Settings: 14 languages.
The Sound panel: one slider for the music and one for the effects. With both at zero, the speaker button shows
that the sound is off.
The Sound panel: one slider for the music and one for the effects. With both at zero, the speaker button shows that the sound is off.

Marks on the screenshot

  1. Music volume
  2. Effects volume
How to play: four short rules. It opens before the first level and from Settings.
How to play: four short rules. It opens before the first level and from Settings.

Marks on the screenshot

  1. Close and play
Settings while playing: the game is paused, and three more buttons restart the level, open the knives or go to
the menu.
Settings while playing: the game is paused, and three more buttons restart the level, open the knives or go to the menu.

Marks on the screenshot

  1. Restart
  2. Knives (shop)
  3. Menu
A phone in portrait: the same game, framed for an upright screen.
A phone in portrait: the same game, framed for an upright 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                 the menu, the HUD and every panel
  src/config.js              START HERE: feel numbers (FEEL), music per world
  src/sim.js                 the rules (RULES): jump, flip, slicing, tower
  src/levels.js              the 50 levels, 5 worlds, machines and stars
  src/knives.js              the 16 knives and their prices
  src/main.js                starts everything: taps, states, coins, progress
  src/view.js, src/look.js   the 3D scene, materials and the knife
  src/deco.js, src/fx.js     background sweets, particles and effects
  src/motion.js              how the machines move
  src/audio.js               sounds and music
  src/save.js                saving in the browser
  src/debug.js               developer test mode (off)
  src/i18n.js                texts of the 14 languages
  src/ui/                    screens, panels, interface motion, ui.css
  assets/tex/                textures of the items (WebP)
  assets/props/, assets/fx/  background sweets and particles
  assets/ui/                 buttons, panels, icons, knife pictures, logo
  assets/backdrop-*.webp, assets/skyline-*.webp   backgrounds of the 5 worlds
  assets/sfx/, assets/music/ sound effects and music (MP3), credits
  assets/fonts/              Fredoka and its license
  lib/three/                 the Three.js library (MIT), unminified, and its license
  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 (15 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/        Three.js, Fredoka, sound and art credits
  • src/config.js: the first file to edit. FEEL has the numbers of the feel: camera, juice (jiggle, slow motion, pauses on big cuts, streak words), interface motion, music per world, sound mix and vibration.
  • src/sim.js: the rules in RULES (jump height and length, gravity, spin, how deep the blade sticks, the handle bounce, the rubber bumpers). src/levels.js: the 50 levels, the items, the machines of each world, the bonus tower and the stars. src/motion.js: how the machines move.
  • src/main.js: starts everything and connects taps, the game states, coins and progress. src/knives.js: the 16 knives and their prices. src/save.js: saving. src/audio.js: sounds and music. src/debug.js: the developer test mode.
  • src/view.js: the 3D scene (pedestals, tower, reflections, camera, worlds). src/look.js: textures, materials and the 3D knife. src/deco.js: the sweets far away and the bubbles. src/fx.js: particles and effects.
  • index.html: the page with the menu, the HUD and every panel. src/ui/: the screens (screens.js), their motion (uifx.js), the nine-piece pictures (nine.js), full screen and the style sheet ui.css. src/i18n.js: the texts of the 14 languages.
  • assets/: textures of the items (tex/), the sweets of the background (props/), particles (fx/), interface pictures, knife icons and the logo (ui/), the backgrounds of each world (backdrop-0.webp to backdrop-4.webp, skyline-0.webp to skyline-4.webp), sound effects (sfx/), music (music/) and the font (fonts/). lib/three/: the Three.js library.

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.

  • Worlds are counted from 0 in the code: world 0 is World 1 on the screen. File names that end in -0 to -4 belong to the five worlds, and knife-0.png to knife-15.png to the 16 knives.
  • In src/levels.js the items have short names: soapStack, jellyStack, chocoStack and the other names that end in Stack are piles, giant is the giant cake, swissroll the rolled cake. The machines are arch (the hanging fruit and the pendulum bar), belt (the conveyor) and wheel (the ferris wheel).
  • In the code, calm is the Less motion setting, stuck means the blade is in a pedestal, knock is the handle hitting a pedestal and bump the handle touching an item, mult is the tower multiplier and best the best result of each level.

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 logo is assets/ui/logo.png (1169 x 913 pixels, transparent background), and assets/ui/logo-h.png (2047 x 522) is the wide logo of landscape screens. The page icon is assets/ui/knife-0.png.

Pictures: replace a file in assets/ with another of the same name, format and size. The textures of the items are in assets/tex/, the backgrounds of the worlds are assets/backdrop-*.webp and assets/skyline-*.webp, and the buttons and panels are in assets/ui/.

Levels and shop: LEVELS and PER_WORLD in src/levels.js are the number of levels and of levels per world, POOLS the items of each world and MECHANIC its machine. STAR_CUTS (0.6 and 0.85) are the shares sliced for 2 and 3 stars. The prices of the knives are price in src/knives.js.

Feel: RULES in src/sim.js changes how the knife moves (jumpVy and jumpVx are the height and length of a jump, g the gravity). FEEL in src/config.js changes the effects only: hitstop, stackSlow, praise, camera and audio.

Sounds and music

The sound effects are MP3 files in assets/sfx/: one cut sound per material (for example cut-soap.mp3, cut-jelly.mp3, cut-cake.mp3) and the jump, stick, bounce, coins, stars, buttons and win sounds. Replace a file and keep its name. If a file is missing, the game plays a simple sound made by the code.

The music is in assets/music/: menu.mp3 on the main menu and lofi.mp3, play-b.mp3 and play-c.mp3 during the levels. FEEL.audio.tracks in src/config.js chooses the track of each world, and the volumes of each part are in FEEL.audio.

Warning Save key: the progress and the settings are saved under crisp-cut.save.v1. If you host two copies of the game on the same domain, change this name in src/save.js, or the two copies share their progress.

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.

Every text of the interface is in src/i18n.js: one block per language, with the same keys (for example play, levels, howTo). Change the words between the quotes and keep the keys. {n} is replaced by a number. A new text goes in all 14 blocks; if a language misses a key, the game shows the English text.

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. Japanese, Korean, Chinese and Russian use the fonts of the device.

10 Saving and resetting

  • The highest level unlocked, the coins, the best result of each level, the knives bought and equipped, the volumes, the settings and the language are saved automatically in the browser of each player (localStorage). Nothing is sent to a server.
  • Everything is stored under one key, shown below. A damaged or edited save is checked when the game opens: wrong values go back to their defaults.
  • To start over, delete this key in the developer tools (F12), under Application, Local Storage, or clear the site data in the browser.
crisp-cut.save.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 15 checks: a robot finishes the 50 levels with the real rules, nothing moving passes through a fixed item, damaged saves open, the 14 languages and the package. It takes about half a minute.

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 lib/ 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 Test mode: while you work on the game, set DEBUG_MODE to true in src/debug.js. The game then starts with 999,999 coins, every level is open in the level select, and a SKIP button at the bottom left of the game ends the level through the bonus tower (counted as 90% sliced). The test mode keeps its own save, so the normal progress is not touched. 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 Three.js library, unminified in game/lib/three/ (MIT License), and the Fredoka font (SIL Open Font License 1.1, also in assets/fonts/). The sounds, the music and the pictures were made for this game.

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. It removes the slow motion, the zoom, the confetti and most particles.
  • 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 black or empty 3D view: the browser has no WebGL 2 or the graphics acceleration is turned off. Turn hardware acceleration on in the browser settings or try another browser.

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?
It uses the Three.js library for the 3D drawing (included, MIT License). The knife physics, the slicing, the levels, the shop and the screens 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 change the levels?
Yes. The levels are built from src/levels.js: the items of each world are POOLS, the machine of each world is MECHANIC and the number of levels is LEVELS. The same level number always builds the same level. Run npm test after a change: a robot checks that every level can be finished.
Does it work on phones?
Yes, in portrait and landscape, with touch. On a computer it works with the mouse and the keyboard.
Can I change the prices of the knives?
Yes. Change price in src/knives.js. The first knife costs 0 and is owned from the start.

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 "Crisp Cut", a finished HTML5 3D knife flip and slicing game (version 1.0.0). Read these facts before you edit anything.

PROJECT
- Plain JavaScript ES modules, HTML and CSS. No bundler, no compile step, no npm dependencies.
- The 3D drawing uses Three.js, unminified, in lib/three/, imported by the files in src/ as ../lib/three/three.module.js. Do not upgrade, minify or reformat it.
- 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 lib/ 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
- One tap (pointer, Space, Enter or Up arrow) makes the knife jump forward and flip; taps in the air keep it flying. Only the blade cuts; the handle bumps and bounces back. Each level ends at a bonus tower whose bands multiply the score (x2, x3, x5, x10); coins = score x multiplier.
- Rules and physics: RULES in src/sim.js (pure, no DOM; it also runs in Node for the tests). Feel and effects only: FEEL in src/config.js.
- Levels: src/levels.js builds level n from its number (same number, same level). LEVELS = 50, PER_WORLD = 10, POOLS = items per world, MECHANIC = machine per world (arch, conveyor, wheel, pendulum; world 5 mixes), BANDS = tower multipliers, STAR_CUTS = shares sliced for 2 and 3 stars. Machines move with src/motion.js.
- Knives: KNIVES in src/knives.js (price, handle, trail, blade outline); picture assets/ui/knife-<index>.png for each. Every knife has the same reach.
- src/main.js runs the loop, taps, game states, coins and progress. src/view.js, src/look.js, src/deco.js and src/fx.js draw the 3D scene. src/ui/ has the menu, panels and HUD (screens.js), their motion (uifx.js) and ui.css.
- Texts: src/i18n.js, one block per language with the same keys, 14 languages; a new text goes in all 14 (English is the fallback).
- Saving: localStorage key crisp-cut.save.v1 in src/save.js (a damaged save falls back to defaults).
- Developer test mode: DEBUG_MODE in src/debug.js (999,999 coins, every level open, a SKIP button, separate save). Keep it false when publishing.
- Sounds: assets/sfx/*.mp3 (list CLIPS and the cut sound per material CUT_OF in src/audio.js), music assets/music/*.mp3 (FEEL.audio.tracks per world); a missing file falls back to a sound made by the code.

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 (a robot plays all 50 levels). 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 lib/three/LICENSE.
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: make the knives cheaper, add a sixth world or change the colour 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.