Developer preview v1.1.2 — installation, packaging, and some platform support are still in progress. Read the status
Skip to content

Prism ​

A small, complete brick-breaker written in Clorraine. Prism opens a 320×256, 32-colour custom display, draws a title screen, a six-digit score, a row of coloured bricks, a glossy paddle, and a ball that bounces through the wall. The live view starts in play with the paddle under your control; the ADF is joystick-playable on a real A500.

Prism · a Clorraine arcade game

Runs in your browser with Copperline and AROS. The saved machine is already in play; click the picture, then use the arrow keys and Space.

← → move · Space fires

A500 · 32 colours
Prism · a Clorraine arcade game

How to play ​

In the browser player, and on a real Amiga or from the ADF:

ControlAction
← / → or A / DMove the paddle
Space or EnterFire
Joystick left / rightMove the paddle
Joystick fireStart a game, or start again from the title

The web player's Restart button reloads the saved machine. The live view restores an in-play state, so the demo appears without waiting for a boot. The score counts ten points per brick. A game starts with three lives; the paddle angle is set by where the ball lands on it. After the third miss the title screen returns; press fire to play again on the ADF.

What you are looking at ​

DetailValue
MachineAmiga 500, 68000, OCS, 512 KB chip + 512 KB slow RAM
Display320×256, 5 bitplanes, 32 colours, PAL
RuntimeClorraine hosted-amiga-13 release build, libnix nix13
EmulatorCopperline 1.1.0 with its bundled AROS ROM
Sourceexamples/amiga/prism.clo

How it is built ​

PartTechnique
TitleA full-screen bitmap with a five-colour wordmark and a prism triangle
PlayfieldA background bitmap with a frame, starfield, and forty bricks
HUDA 320×40 strip with the logo, score, and life icons
ScoreSeven-segment digits drawn with bitplane fills
Paddle and ballDirect bitplane fills; no per-frame sprite allocation
BricksColoured fills with a white top edge and a dark shadow
AnimationDirty rectangles: only the pixels under the paddle, ball, and trail are restored
Game loopJoystick polling, fixed-point physics, and one view flip per frame

The game avoids per-pixel work on the 68000. The playfield is built once, destroyed bricks are replaced with a background fill, and each frame restores only the small rectangles the moving objects covered. Every frame buffer keeps its own record of what it still shows, so a flip never lands on a stale frame.

On an A500 the game runs at close to the 50 Hz PAL refresh: 400 frames took 423 ticks (8.5 seconds). Rendering the whole playfield every frame cost about twice that.

Run it on your own Amiga ​

From a checkout with the SDK:

sh
make run FILE=examples/amiga/prism.clo \
  PROFILE=hosted-amiga-13 EMULATOR=1

The game needs a display, so use FS-UAE or Copperline rather than vamos.

Read the source ​

The program is one file. Start with buildTitle, buildField, fillPaddle, and main.

Clorraine is an independent project. Amiga, AmigaOS, Kickstart, and Workbench are trademarks of Amiga Corporation. Not affiliated with or endorsed by Amiga Corporation or Hyperion Entertainment.