← EGFX

GUIDEALPHA · USE AT YOUR OWN RISK

BBC BASIC guide

A practical path from the first frame to sprites, particles, trails and lines.

1 · First frame

Set the memory limit, initialise once, begin a frame, draw, and present.

MODE 1:HIMEM=&2400
PROCeginit:PROCegbegin
PROCegpresent

2 · Sprites and text

PROCegsprite(120,96,2)
PROCegtext("HELLO",8,8)

The image number selects a frame of the registered sprite pack (up to 16 frames). Text positions must be aligned to 8-pixel cells. For sprites from a companion ROM in any size from 2 to 32 pixels, use PROCegcompact (function 37).

3 · Particles and trails

PROCegemit(160,100,24,1)
PROCegparticles:PROCegtrail(160,100)

4 · Dots and lines

PROCegdot(40,40,3)
PROCegline(40,40,240,180,2)