1988 · Electric Dreams (Activision)

R-Type

This minisite was curated by unorig.

The chip’s eight sprites are stretched to cover eighteen moving things, and every shot the player fires is drawn as text characters. Every shape the game carries, stage by stage.

Sprites

Eight sprites stretched to cover eighteen

The Commodore 64 shows eight sprites at once. R-Type gives sprite 0 to the Force and sprites 1 and 2 to the ship, one above the other, and shares the other five among up to fifteen enemies in three bands down the screen, reusing each sprite in every band (attack_script, $4FA8; irq_band1_y, $0F6C). A boss takes over the same five sprites for up to seven rows of its own.

The shapes are 64 bytes each, in the last bank the video chip can see, so a sprite pointer p picks the shape at $C000 + 64 × p. They are multicoloured: every sprite shares dark grey and light grey, the colours the game puts in the shared registers, and each sprite has one colour of its own.

The sheets below draw every shape with white as that colour of its own, since that colour comes from the enemy’s type. Shapes are in pointer order, sixteen to a row. Each stage brings its own set in its third file, at $E000 and up, so these sheets are the full cast of each stage.

Always in memory

Sprite shapes of always in memory, drawn in white and two greys, sixteen to a row
Pointers $40 to $7F, loaded with the game: the ship and its tilted frames, the Force at its levels, the bits, the pickups and the explosions.

Stage 1, The encounter

Sprite shapes of Stage 1, The encounter, drawn in white and two greys, sixteen to a row
Pointers $A0 to $F4: the enemies from $E800, then the boss’s pieces from $F980. File 3’s first 2 KB are the upside-down character set, so the shapes start later than in most stages.

Stage 2, The living cave

Sprite shapes of Stage 2, The living cave, drawn in white and two greys, sixteen to a row
Pointers $A0 to $E7, after a second character set at $E000.

Stage 3, The huge battleship

Sprite shapes of Stage 3, The huge battleship, drawn in white and two greys, sixteen to a row
Pointers $80 to $B9.

Stage 4, Fortress at the front

Sprite shapes of Stage 4, Fortress at the front, drawn in white and two greys, sixteen to a row
Pointers $80 to $BD; the boss’s three parts are $AC to $BD.

Stage 5, The nest

Sprite shapes of Stage 5, The nest, drawn in white and two greys, sixteen to a row
Pointers $80 to $B3; the boss’s blobs are $B2 and $B3.

Stage 6, The transport system

Sprite shapes of Stage 6, The transport system, drawn in white and two greys, sixteen to a row
Pointers $80 to $93, the fewest of any stage.

Stage 7, A destroyed city

Sprite shapes of Stage 7, A destroyed city, drawn in white and two greys, sixteen to a row
Pointers $80 to $C3.

Stage 8, The heart of the Bydo empire

Sprite shapes of Stage 8, The heart of the Bydo empire, drawn in white and two greys, sixteen to a row
Pointers $80 to $C9; the core behind the hatch is $BC to $C9.

Characters

Shots, the beam and the lasers are characters

None of the player’s fire is a sprite. A shot, the beam, the reflecting and crawling lasers and the red wave are characters $CC to $ED of the play-area set, written into screen memory and moved a cell at a time (check_hits, $17FB; move_beam, $416C; move_crawlers, $4848). That leaves every sprite free for the ship, the Force and the enemies, and it lets the game find a hit by reading the characters in the cells under each enemy.

ShapesCharactersWhat they drawDamage
Characters <code>$CC</code> to <code>$D3</code>$CC to $D3Shots and lasers1
Characters <code>$D4</code> to <code>$D9</code>$D4 to $D9The beam, in its three widths2, 6 or 10
Characters <code>$DA</code> to <code>$E4</code>$DA to $E4Shots and lasers; the hit test treats both ranges alike1
Characters <code>$E5</code> to <code>$EC</code>$E5 to $ECThe red crystal’s wave5

Drawn three times their size from the set at $C000, in white and two greys; on screen each takes its colour from colour memory. The damage is what check_hits ($17FB) takes from an enemy when it finds the character in a cell under it.

The scenery is characters too, in a set of its own for each stage. The Maps tab draws every stage from them.

The loading picture

The creature under the logo

The 1988 disk brings up a picture about 15 seconds into the load and keeps it, in silence, while the game loads: a golden alien creature with its tail curled up the left side, lightning behind it, under the R-TYPE logo. The screen is off while the picture loads, so it appears all at once.

The disk's own bytes, drawn as the video chip draws them. It is a multicolour bitmap in the last of the video chip's four banks: 8,000 bytes of bitmap at $E000 and 1,000 of screen colours at $CC00.