A billiards roguelite from a lost 1998 disc, with a completely normal game of 8-ball hidden inside.
Made by Paul Nercessian. Now with SCRATCH: AFTERHOURS, the 2.0 update.
Sink balls. Pick relics that bend the rules of pool. Work your way down three
floors of increasingly strange tables and beat The House.
Every table, texture, icon, song and sound effect in SCRATCH is generated by
its own code as you play. The project contains no image, audio or model files.
New in 2.0: AFTERHOURS. The club has moods now: Table States, Contracts,
High Roller bets, Rivals and Nemeses, 8 new tables, Trick Tables, 3 new bosses,
12 hidden relic synergies, Boss Rush, One Cue, Chaos and a Classic tournament.
Your 1.0 save carries over. The full list is in CHANGELOG.md.
Contents
Play it
In your browser: go to bouwles.github.io/SCRATCH and
click PLAY. There's nothing to install.
From a release. Download SCRATCH-web-v2.1.0.zip from the
latest release and unzip it.
Serve the folder with any static server, then open http://localhost:8000:
python3 -m http.server 8000
Opening index.html straight from the disk (file://) won't work, because
browsers block ES modules there.
From source (Node 20.19+ or 22.12+):
git clone https://github.com/Bouwles/SCRATCH.git
cd SCRATCH
npm install
npm run dev # http://localhost:5173
| Command |
What it does |
npm run dev |
Development server with hot reload. Add ?debug to the URL for the test hooks. |
npm run build |
Production build in dist/, with relative paths throughout |
npm run release |
Builds and checks the release, then packs release/itch/SCRATCH-web-v2.1.0.zip |
npm run site |
Builds the GitHub Pages site in _site/: the landing page, with the game in play/ |
npm run test:physics |
Runs the physics edge-case suite in Node (breaks, jaws, frozen balls, obstacles, 300 random layouts) |
npm run check:tricks |
Plays every Trick Table with the real physics to prove each one can be solved |
Every push to main rebuilds and deploys the site through GitHub Actions
(.github/workflows/deploy.yml).
It needs a current Chrome, Edge, Firefox or Safari with WebGL 2, and a mouse.
Screenshots

Switching to SCRATCH Classic: the tape drags, the CRT clicks off, and a quiet lounge fades in.
New in 2.1
- You always know what a table wants.
- A large bar at the bottom of the screen shows the objective in plain words
("POT 3 BANK SHOTS"), your progress ("1 / 3 COMPLETE") and your shots left.
- Every table opens with its objective.
- Every shot is explained just above the bar ("STRAIGHT POT · NO CUSHION · DOES
NOT COUNT").
- Every table ends with a reason.
- SCRATCH Classic is a complete game of pool:
- ten regulars with portraits, five playing styles and a record against you;
- Quick and Custom matches, best-of and race-to formats;
- shot recognition, Break & Run, and six practice challenges;
- a Tournament Hall, a cue-view camera and a Classic level.
- Every cosmetic has been rebuilt around one rule: you can always tell the cue
ball, the 8, solids and stripes apart.
- 15 ball sets, 9 of them animated in the shader.
- 20 cues.
- Felts, shot trails and pocket effects as their own slots.
- A new Loadout screen with a live preview.
New in AFTERHOURS
The first big update adds more to every part of a run.
Table States: the club can go into one of 8 states for several tables at
a time:
- Blackout cuts the power, and the balls glow.
- Overtime gives fewer shots, but multi-pots buy them back.
- Jackpot fills the table with gold and puts shop prices up.
- Static makes relics surge and short out.
- Low Gravity means nothing wants to stop.
- Redline stops HEAT from cooling.
- Quiet Hours silences the crowd, and precise shots pay extra STYLE.
- House Rules puts one more rule on every table, for bigger purses.
Contracts: sign one of two challenges that run over several tables. The
rewards include legendary relics, an extra relic slot and a shop discount.
High Roller tables: bet 25, 50, 100 or everything you have on a harder
table, and win it back doubled. The chips are the game's own; no real money
is involved.
Rivals: six regulars race you to the goal, taking a turn after every one
of yours. Lose to the same one twice and they become your Nemesis.
8 new table types: Sequence, Territory, Bounty, Escalation, Hot Potato,
Lockdown, Perfect Route and Chain.
Trick Tables: 6 hand-built puzzles with three attempts, no clock and no
heart at risk. Each one is proven solvable against the real physics.
3 new bosses:
- The Collector borrows your relics.
- The Architect builds walls across the felt.
- The Bookie offers a side bet before every shot.
A boss you've beaten three times may come back as a Remix.
Relics:
- 12 hidden synergies stay unlisted until you discover them.
- 5 risk relics: Double Edge, Debt, Blind Faith, Final Form and Last Life.
- Overcharge supercharges one relic until the next boss falls.
- Once you hold four relics, your build gets a name.
Presentation:
- Big moments scorch and crack the felt, shake dust from the ceiling and make
the lights flicker.
- The crowd reads the table.
- Optional text commentary reacts to your shots.
- Shot of the Run replays your best shot at the end.
Modes and progress:
- Boss Rush, One Cue and Chaos.
- Handicaps that multiply your rewards.
- Expanded Records, a Run History of your last 10 builds, and
Favourite relics.
SCRATCH Classic:
- AI styles that are separate from difficulty.
- A four-player tournament.
- A shot clock and best of 7 matches.
- Three rooms, three new felts and two new cues.
New content opens up as you play (your first runs are the 1.0 game), and your
1.0 save carries straight over.
Some runs don't end when The House falls. ...and there are several things we
aren't going to tell you about.
The roguelite
A run
Three floors: The Basement, The Deep End and The House. Each floor is
nine stops long:
- tables;
- a fork in the road (event or mystery);
- a shop;
- an elite table;
- a second fork (shop or back room);
- a boss.
How tables work:
- Clearing a table pays chips and offers one of three relics.
- Failing a table costs a heart and the run moves on. Bosses must be
beaten, so a lost boss is replayed.
- The 8 goes last. Sinking it early costs shots. Sinking it with the winning
pot doubles that shot.
The first runs are forgiving. Your first three standard runs start with a fourth
heart (until your first win), and short tips explain each new thing once.
Modes
- New Run. Winning unlocks BREAK levels 1 to 5, one at a time, and each
level keeps everything below it:
- BREAK 1: tables ask for one more ball.
- BREAK 2: rules, bets and High Stakes tables come earlier and more often.
- BREAK 3: shops charge 25 % more.
- BREAK 4: every boss uses its extra mechanic.
- BREAK 5: heat builds 50 % faster.
- Daily Scratch. The same seeded run for everyone on a given date, starting
with a choice of three relics. Your best daily score is kept.
- Endless. Unlocked by winning a run. The stairs keep going down past The
House, and your deepest floor is recorded.
- Modes (open up as you win): Boss Rush plays every boss back to back.
One Cue has no shot limit and five lives, and every miss costs one.
Chaos starts you with three random relics at HEAT III and a Table State
at every turn.
- Handicaps: six optional rules, such as Double Speed or Cursed Only, that
multiply score and purses for a New Run or Endless.
Content
19 table types:
- Standard
- Combo: every pot makes its pocket hungry
- Precision
- Blitz
- Trick Shot
- Bank Shot
- Golden Ball
- Survival
- Chaos
- Assassin
- Classic 8
- Sequence
- Territory
- Bounty
- Escalation
- Hot Potato
- Lockdown
- Perfect Route
- Chain
There are also Rival tables, Trick Tables and High Roller tables.
9 bosses, each with three escalating phases:
- The Crooked Table tilts.
- The Mimic shuffles its pockets, and one of them spits.
- The Void is a pocket that eats shots.
- The Dealer deals a gold pocket that counts double and red pockets that bust.
- The Clock takes your shot for you when time runs out.
- The Collector borrows your relics.
- The Architect builds walls.
- The Bookie takes side bets.
- The House plays back against you.
50 relics (17 common, 15 rare, 11 cursed including 5 risk relics, 7 legendary):