About Derby

A home run derby in 3D, made entirely of text characters.

Derby is a home run derby, played in your browser with one button. The pitcher throws, you swing, and if the ball clears the fence it counts. Your timing aims the ball, the pitch decides how far it can go, and three strikes end the game.

Everything is a character

Every part of the ballpark is a text character drawn in a monospace font:

The font is DejaVu Sans Mono, trimmed down to just the characters Charcadia uses.

Three dimensions out of letters

The park is a small 3D world measured in feet, with a camera above and behind home plate. The ground is a grid of characters, like a terminal, and each tile works out which spot on the field it's looking at, then draws itself as grass or dirt. That's what makes the diamond look like it's lying flat.

The ball, the pitcher, the batter and the bat are placed in the same world and sized by how far away they are. The ball grows as it comes in and shrinks as it flies out, and its shadow shows you where it is above the ground.

A fence with a shape

The fence is 400 feet away in center and curves in to 330 at the foul poles, so where you hit the ball matters as much as how well. A ball that's a little short for center can still get out in the gaps. The strategy guide explains how to use it.

Small and fast

Derby is written in plain HTML, CSS and JavaScript, with no frameworks. The whole game is a few kilobytes once compressed, plus the font.

There's no account and no server-side game data. Your best results and your choices in Settings are saved only in your own browser.

Part of Charcadia

Derby is part of Charcadia, a small family of games, each built entirely from text characters. Its siblings are Chase, a maze chase; Crash, a racer; Ships, a space shooter; Jump, a platformer; Snake, the arcade classic; Bricks, a brick breaker; Paddles, a paddle duel; Cross, a road-crossing game; Skeet, a clay shooting game; Hockey, an air hockey game; and Launch, a trebuchet launcher.

Who makes it

Derby is made by Cory Webb Media. It's free to play.

How many can you hit out?

Play Derby