1987 · Activision

Galactic 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/galactic-games with me to Gold.

Every alien in the five events, drawn from the game's own bytes and moved by its own animation tables: the racing worms, the hockey spheres, the psychic bolts, the Hruntan and its head, and the Metamorph in all five of its forms.

01 · 100m Slither

A worm made of eight sprites

Each worm is put together from all eight sprites at once, so the two lanes take turns with them: one band of the screen draws worm one, a band lower down draws worm two. A frame record says where each of the eight goes and which shape it shows; an animation script lists the frames and how long to hold each.

Drawn by the game's own rules in set_worm_sprites: the frame record (address from frame_table) gives each sprite a colour, where 6 keeps it blue and any other value takes the worm's own colour, then eight Y offsets and eight X offsets, each added to the one before, then the eight shapes. The scripts are anim_scripts, four bytes a step: the frame, two bytes nothing reads, and how many frames to hold it, counted once a frame by anim_step.

The worm's blue body and its coloured stripe are separate sprites laid over each other, which is why most frame records name the shapes in pairs, such as 18 and 218: the first of each pair is blue and the second takes the lane's colour. Shape 183 is empty, and a record fills its unused sprites with it. Which animation runs is the worm's state: st_wait_down starts animation 1 when DOWN bunches the worm, st_bunched starts 2 for a super-slither or else 0 or 8 when UP stretches it, and st_finish picks 5, 6, 9, or 10 from the race's result.

02 · Space Hockey

Spheres, a living puck and a black hole

Space Hockey's things are plain one-colour sprites: the puck in white, player one in light red, player two in green, and the black hole in white at double size when the view reaches either end of the field. The puck has a face for each way it runs, and short animations for a hit, a bounce and falling into a hole.

The puck's four animations are the frame lists at anim_table, a frame every five frames (puck_shape); a swallowed player plays animation 3 in its own colour. The black hole steps through shapes $2F to $33 every four frames (hole_shapes).

Every shape from $10 to $33, at $4400 in video bank 1, coloured as the game colours its user. Players face the way the stick is held (player_shapes), show shape $15 for the five frames of a brake and $2E when stunned (read_controls). The puck shows $10 standing still, $16 to $19 running down, up, right, and left, and $1D while dazed. Shape $12 is the scanner's dot and $13 its window, and $11 is empty. Shapes marked with a dash appear in none of these lists.

03 · Psychic Judo

Bolts in eight sizes

The judo players are never seen: each half of the screen is one player's view down the arena. What moves is the bolt of psychic energy, a sprite that grows as it comes nearer, with a second sprite for its shadow on the floor. Its colour changes every three frames and its shape flickers every six.

Left to right, the bolt at depth bands 0 to 7 (its depth divided by eight), with its shadow under it. The shape comes from bolt_shape_table, eight bands for each way the bolt is steered, plus 0 or 5 from flash_shape for the flicker; the shadow is shadow_shapes plus 5 (shape_bolt1). timers runs all four bolt sprites through 14 colours from $1EB5 and flips the flicker on every second colour.

Eight bands share five sizes: bands 1 and 2 show the same shape, and so do 3 and 4, and 5 and 6. Steering bends the bolt's shape the way it is pushed, which is why there are nine rows of shapes, one for no steering and one for each of the eight directions. Shapes $40 to $44 are shadows that no band uses.

05 · Metamorph Marathon

One creature, five forms

The Metamorph is six sprites: four black hi-res ones for its outline and two yellow ones, stretched to double width, for its body. Each frame the game copies the current shape into them from a store of 35, in five sets: the blob it rests as, the Flyer, the Runner, the Burrower, and the Jumper, and three frames for running out of energy.

The sequences are lists of frames at sequences, each frame counted from the first shape of the form's set (shape_bases); the Runner's lists hold a stride after each frame. The outline is 128 bytes from $5A00 + shape x 128 and the body 64 bytes from $6B80 + shape x 64 (build_outline, build_fill). The game sets the rate: $50 frames for the blob, $10 for the Jumper, and for the others from $7F standing down to $10 at full power (rate_table); the slider stands in for it.

All 35 shapes, numbered. The first two of each form's set, such as $02 and $03 for the Flyer, are what sequence 1 plays when the blob changes into that form and sequence 2 when it changes back.

06 · Title screens

Twenty-one letters for six titles

Each event opens with its name in big letters over a field of stars. The letters are sprites, multicolour and double size, in two rows of up to eight. A rainbow runs through them: every second frame the top row's colours turn one place one way and the bottom row's the other.

Each title is 66 bytes from the table at $C899: the two rows' shapes, colours, positions, and high X bits, which title_screen copies to title_now. The shared colours are white and dark grey (split_top), and split_colours turns the rows' colours. The stars are left out here.

The shapes, $00 to $14, in video bank 3 from $C000. Shape $01 is blank, and a title puts it in every sprite it does not need. Shape $00, the U, sits where the records font's last characters end, and only JUDO uses it. Title 5, shown after a Galactic Championship, reads THE END.

07 · The commentator

A spinning ball that follows the words

On the menu a commentator types each message letter by letter, and a ball of five sprites hops along behind the cursor. Four of the sprites are cyan; the fifth is multicolour at double size, and its second shared colour cycles through black, dark grey, grey, light grey, and white.

Placed by place_ball with shapes from $1116 and colours from ball_colours. ball_irq changes sprite 2's shape through the list at $11E0, pairs of shape and frames to hold it, and every six frames the colour from $11D7.

08 · Loading screen

The credits, while side 1 loads

While the boot loads the rest of the game from tracks 19 to 22, a text screen gives the credits around the game's name in big blocks of characters, with the same spinning ball. The boot's data is packed on the disk and no listing holds this screen, so it is shown here as the emulator drew it.

The loading screen: Design Copyright (C)1987 Tigress Designs, Copyright (C)1987 Activision, GALACTIC GAMES in big coloured block letters, All Rights Reserved, and A Software Studios production in association with Tigress Designs
The loading screen. When FIRE is pressed, the lines change to name the developers: "Developed by SYSTEM", "Graphics by Martin Chatfield and SYSTEM" and "Game Design by Tigress Designs".

09 · How the screens are built

Three video banks and a split for every band

Every part runs from the raster interrupt, which changes the video chip's settings as the beam passes set lines. The events use video bank 1, with their screen at $4000; the title screens use bank 3 with a hi-res bitmap at $E000; the menu and the records screen use bank 0, with the text screen at $0400. Space Hockey's field is a bitmap whose chequered floor is drawn by flipping four-pixel columns and rows where the bands cross ($284B). Psychic Judo builds its two views of the arena through a 64-row depth table it computes at the start ($24BC). The Marathon's course is a map of 32 rows by 256 tiles, drawn on the Maps tab.