1984 · Epyx

Summer Games: 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 with me to Gold.

Every shape the moving things are drawn with, event by event: the torch-bearer and the doves, a vaulter in pieces and a pole at every angle, a diver turning in four positions, runners, a gymnast packed to save memory, swimmers, and a shattering clay.

Sprites, 24 by 21

Every moving thing in Summer Games is made of sprites, the video chip's movable shapes of 24 by 21 pixels, 63 bytes each in a 64-byte slot. Each set below is drawn from the bytes of the event's own listing, in the order they lie in memory, labelled with the shape's number as the event's code counts it and its address. They are drawn here in one colour, white on blue, except where the game shows a shape in multicolour, two pixels wide in three colours; the game colours most of them by player as it runs.

01 · The opening ceremony

A torch-bearer in three pieces

The torch-bearer is three sprites at a time, the runner's body, the torch, and the flame on it, chosen for each of fourteen steps of the run and the climb (cer_torch_frames). At the top of the steps the runner lifts the torch to the bowl in five frames of shapes of their own (cer_flare_tab). The flame in the bowl is four sets of four multicolour shapes in red and yellow (cer_flame_shapes), and each dove flaps through five wing positions (cer_dove_shapes).

02 · Pole vault

A vaulter in pieces and a pole at every angle

The vaulter is put together from up to three sprites: head and arms, the body, and the legs, picked by the stride while running and by the pose on the pole (vault_pose). The pole is not one shape that turns: there is a shape for every piece of it at every angle and bend, three pieces to a position, 207 in all (pv_pole_shapes). The bar has ten shapes, flat on its pegs and tilting more and more as it falls, drawn in multicolour (bar_step).

03 · Platform diving

Twelve frames a turn, in four positions

A diver's pose is up to four sprites. Each position has twelve frames of a full turn, and the standing diver has three more (pose_shapes). For a dive that faces the tower the game turns every one of these shapes round in memory, byte by byte through a table of reversed bits (mirror_shapes). The splash has three sizes for each side, and the judges' cards are digits with a gap that a 0 or a 5 is laid into for the half point (digit_shapes).

04 · The relay and the dash

Runners in three layers

Each runner is three sprites, the body, the legs, and the arms, with eight frames of running (run_frames). The set also holds runners standing and crouching at the start, the baton, and the runners seen from behind as the relay ends.

05 · Gymnastics

206 shapes, packed

The gymnast needed more shapes than memory had room for, so they are stored packed: each begins with a count of the zero bytes at its end, which are left out, and the rest of its bytes are stored backwards from there (packed_shapes). Every frame of the animation names six of them, with an offset for each and a flag that draws it mirrored or upside down, and the shapes are unpacked into the sprites as the frame is drawn (frame_table, draw_frame). They are drawn here unpacked, before any mirroring.

06 · Swimming

Strokes, a dive, and a turn

The swimmers' shapes, the clock's digits, which are sprites along the top of the screen, and the splashes. The swimming program shows two video banks in turn as the pool scrolls, so it keeps a copy of every shape in each (sw_shapes_lo, sw_shapes).

07 · Skeet shooting

A sight, a shot, a shadow, and a clay

The sight is a ring, the shot a filled disc of the same size, shown for one frame, and each clay has a shadow that slides over the grass beneath it. A clay that is hit shatters through four frames, which lie in memory overlapping one another, since their ends are blank (sk_clay_frames).

08 · The menus

An arrow and a frame

The engine itself has seven shapes: the menu's arrow, and six pieces of the frame that flashes round the flag being chosen at registration (sprite_arrow, sprite_frame).