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

Boing: Neon Horizon ​

A 320×256, 32-colour sunset built from chip-memory bitplanes. The sky ramps through eight pens with ordered dithering, the lower half is a perspective grid, and a 48×48 chrome ball bounces across the scene through a one-plane mask. The display flips between two bitmaps, so the ball never tears.

Boing: Neon Horizon · compiled with clc · live in Copperline

Runs in your browser with Copperline and AROS. The ball keeps bouncing until you stop it.

A500 · 32 colours
Boing: Neon Horizon · compiled with clc · live in Copperline

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/boing-showcase.clo

The live view restores a saved machine state, so the demo starts without waiting for AROS to boot. The first click still downloads the emulator bundle and the machine state; after that the browser caches them. No Kickstart ROM or Workbench media is downloaded or distributed.

The scene ​

ElementTechnique
SkyAn eight-pen indigo-to-orange gradient, dithered with a 4×4 Bayer matrix
SunA four-pen disc with dithered seams and horizontal slits
MountainsTwo ridge silhouettes with a warm rim
GridConverging verticals and depth-spaced horizontal rules on a dark ground
BallA pre-rendered 48×48 chrome sphere with a cyan rim
Motion8.8 fixed-point position and velocity, with edge bounces
DisplayTwo chip-memory bitmaps, one visible while the other is drawn

Why it is fast on a 68000 ​

The static scene is drawn once into a chunky byte buffer and converted to bitplanes in one call. Each frame only restores the small rectangle behind the ball, blits the ball through its mask, and flips the view. The ball and mask are pre-rendered, so the 68000 never walks the sphere pixel by pixel during play.

The demo runs at the full PAL rate: 400 frames in 400 ticks on an A500, the same rate as the acceptance Boing.

The demo also drove two runtime improvements: bitmapFromIndices writes bitplane bytes directly instead of repeating the per-bit bounds check, and custom displays can be opened at an explicit screen offset so the emulator's presenter sees the whole picture.

Run it on your own Amiga ​

From a checkout with the SDK:

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

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

Read the source ​

The program is one file. Start with drawBackground, buildBall, 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.