Pegball

Arcade Open source

By Frank Force · MIT license. Source · All credits

About Pegball

Drop a ball into a field of pegs and watch it carom around. Clearing all 14 orange pegs is the goal, but the fun is in the ricochets you did not plan, when one bounce chains into a long combo.

How to play

Move the cursor or touch the board to point the cannon, then click or tap to fire. Aim is limited to a wide cone around straight down.

Rules of Pegball

  • You start with 10 balls, and the round is cleared when the last orange peg goes.
  • Blue pegs score 100, orange 1000, and the single green power peg 5000.
  • Every four pegs hit on one shot raises the multiplier by one. It resets when you fire the next ball.
  • The bucket slides across the bottom. Land a ball in it for 2500 points and the ball back.

Controls

  • Move the cursor or touch the board to aim, then click or tap to fire
  • Space also fires along the current aim
  • Arrow keys or a gamepad stick sweep the aim

What makes it worth playing

  • A 10 by 11 hex-offset peg field, rebuilt each round with the orange pegs spread apart
  • One power peg per round, worth 5000 and three seconds of slow motion
  • A combo multiplier that climbs every four pegs on one shot
  • The ball keeps 78 percent of its speed off each peg, so a long chain keeps going

Screenshots

Pegball gameplay screenshot 1Pegball gameplay screenshot 2

Captured from this build on 2026-08-26.

Tips from playing it

  • Aim for the orange pegs with the most blue ones underneath. The ball keeps working after the first hit.
  • Chase length, not accuracy. Four pegs on one shot beats four single hits.
  • Watch the bucket before you fire. A shot timed to land where it will be is 2500 points and a free ball.

Why this game is here, and what we changed

Picked from the MIT-licensed LittleJS Arcade by Frank Force after checking the licence at source rather than trusting the repository label, and after confirming the game makes no requests to any other site. We host it on our own servers, so it loads straight into the game with no third-party ad code and no pre-roll video. It shipped without a mobile viewport setting, so a phone laid it out at desktop width and scaled it down blurry. We added the setting, and it now renders sharp at the phone's own resolution. We played it through on a real phone-sized screen on 2026-08-26 before publishing this page, and the screenshots above are from that session rather than from the original project.

More on how we pick and fix these: what we changed in the open-source games and how we test a game.

We wrote about this one

physicsaimarcadepegs
Category
Arcade
Plays in
Your browser, no download
Orientation
Portrait
Players
One player, with your best score saved.
Difficulty
Easy to play, and the last few oranges are hard
Typical session
3 to 7 minutes a level
Last tested by us
2026-08-26
Created by
Frank Force (MIT)