1985 · Epyx

Summer Games II: graphics

This minisite was contributed by unorig. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/c64/summer-games-ii with me to Gold.

Every athlete is a stack of hardware sprites. Three events store their athletes packed, frame by frame, and unpack each into the sprites as it is shown; the others keep every sprite ready in memory. Every shape below is drawn from the listings' bytes.

01 · Packed athletes

The jumpers and the horse

Triple Jump, High Jump, and Show jumping keep their athletes packed. Each frame is five sprites, or eight for the horse and rider, and each sprite is stored as a count of the empty bytes at its end followed by the rest of its bytes; after the sprites come each sprite's position in the frame. High Jump and Show jumping unpack each frame into a second set of sprites, not on the screen, and then swap the two sets, so the picture never tears.

The three events share the unpacking code almost byte for byte: Triple Jump's draw_athlete, High Jump's unpack_frame, and Show jumping's unpack_horse. Packing saves the empty bottoms of the sprites: Triple Jump's 100 frames of five sprites would take 32,000 bytes unpacked and take 18,425, from $40C8 to $88C0. Triple Jump's frame table has a hundredth entry that points into the middle of other frames' bytes; it is left out here.

02 · Ready-made sprites

Every other moving thing

The other events and the ceremonies store their sprites as they are shown, 64 bytes each, and move the pointers. Each sheet draws every non-empty sprite of a set in the colours the game gives the sprite that shows it, grouped as the game groups them: eight sprites to a rowing or cycling frame, four to a fencing pose.

03 · How the screens are built

Bitmaps, character screens, and splits

Each part sets its own video bank and its own raster interrupts. The ceremonies and the title are multicolour bitmaps. The events draw their scenery in character sets and scroll it: Rowing and Cycling split the screen into two lanes, each scrolled for its own competitor, and Cycling needs eleven interrupts a frame and two screens drawn in turn to do it. The swimming events scroll a double-buffered bitmap and share their eight sprites between the two swimmers above and below line $BD. Where two competitors share the screen, the other one is drawn again with the same sprites lower down, in another colour, at the distance between them.

04 · The title picture

The picture shown while the menu loads

The title picture, a multicolour bitmap at $4000 with its colours at $6000 and $6400, shown for about 25 seconds while the menu loads, or until a joystick moves. Its other version is on the Discoveries tab.