1990 · Rainbow Arts · Commodore 64

Turrican

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

The hero, the enemies of all thirteen levels, the title’s logo and sparkles, the ending and the loading picture, drawn from the bytes of the game’s own files.

01 · the hero

The hero is three sprites, drawn by one routine every frame

Three sprites on top of each other make the hero. Two multicolour sprites in red make his top half and his bottom half, with light grey and dark grey as the colours every sprite shares. A third sprite, in white, has one colour but is stretched to twice its height, and draws the outline over both halves.

The viewer runs the engine’s own drawing routine at $0D5C on a 6502 simulator in the page once a frame, with the engine’s bytes from its listing, and draws the sprites from what the routine writes into the video chip. Walking, the hero steps through seven shapes, one every fourth frame, from the tables at $1218 (right) and $121F (left). Standing, jumping and crouching have one shape each way. Rolled up as the wheel, he is two single-colour sprites at the same place, white over light blue, and turns one shape further every frame. With the shield on, the routine draws the hero only every other frame and three shield sprites on the frames between, so both flicker. The shield is white until its time is nearly over, then it flashes in light blue, blue and white.

02 · explosions and bonuses

Explosions, symbols and bullets are the same in every level

After the hero’s shapes, the engine keeps the shapes that every level uses. An enemy that is destroyed plays the seven explosion shapes four frames each, from white through yellow, light red and orange to red (the colours at $5C0D).

A shot container ($92) leaves a bonus symbol behind. The container flashes through the greys, a colour a frame. The bullet ($93) is the one the levels’ gunners and turrets fire. The four weapon and shield symbols are one shape, told apart by colour (the table at $5EFD).

The messages after a death, TIME OUT, GAME OVER and CONTINUE with YES and NO, are three sprites each, stretched to twice their width, in light green. They are kept with the engine’s code at $6301. When one is needed, the engine swaps them into the place of the wheel’s last two frames and the first explosion shapes ($6198), and swaps them back afterwards.

03 · the levels’ sprites

Each level file brings its own sprite shapes

Sprite shapes $98 to $FB, at $E600-$FEFF, belong to the level: its enemies, its boss and the pieces they break into. Each level’s file loads its own shapes there. Level 3-2 loads fewer than 3-1, and the last of 3-1’s shapes stay in memory under it.

The shapes do not say which colour they are drawn in, or whether they are multicolour: each enemy’s code chooses both when it starts. Most enemies are multicolour, with light grey and dark grey shared. A few are single colour, such as the lightning in level 1-2, the splash in 2-1 and the bars spat out in 3-2 and 5-1. The sheet draws every shape of the level one way, and the controls change it.

05 · the title

The title’s sparkles grow from a dot into a star and fade

Eight sparkles twinkle over the logo on the title screen. Each steps through ten shapes, one every fourth frame: nothing, a dot, a small cross that grows into a star, which then breaks into a ring and fades. Then it starts again at a new place. They are white, in multicolour with light blue and blue (shapes at $8BD4 in the title’s file).

06 · the ending

The ending breaks the top off the tower in its biggest flash

The ending shows a picture of a tower, a multicolour bitmap from the ending’s file, with eight explosion sprites over it in white, yellow and red. At first all eight step through the explosion’s ten shapes together, one every nine frames. After that, each waits a random time before it starts again, and steps every five frames.

The first time sprite 0 shows the explosion’s brightest shape ($84), the ending copies five runs of bytes, 344 in all, over the top of the picture ($6C25). From then on the top of the tower is broken. After 50 explosions the sprites stop, and the scrolling text begins.

07 · the loading picture

The loading picture shows the hero in front of an explosion

The picture shows while the game loads, with the loading tune. It is a multicolour bitmap that the boot reads from sectors of the first side, together with the tune. The game loads over it, so no listing holds it. The page draws it from one frame of the video chip, recorded while it showed. Manfred Trenz’s initials, MT, are at the top right.