1988 · Electric Dreams (Activision)

R-Type

This minisite was curated by unorig.

A fully charged beam costs an enemy 10 hit points where a shot costs 1, and the colour of the last crystal decides what the Force fires.

The ship

Eight directions, five speeds

The ship is two sprites, one above the other, moved by the joystick in port 2 in eight directions. Its frame starts at player_frame ($2821), which reads the stick and jumps to one of eight movers (stick_moves, $2CF7).

Pushing up or down tilts the ship as well as moving it: the sprites change to a climbing or diving pair and ease back to level when the stick is let go. The ship stays between lines $32 and $AF of the screen. Each speed pickup makes it faster, up to five steps (collect, $1B61).

Stage 1 begins: the ship on the left of a starfield, the floor of a space station below
The start of stage 1. The BEAM bar on the panel fills while fire is held.

Fire

Tap to shoot, hold to charge the beam

A press of fire sends a shot, one character, two cells ahead of the ship, and up to four can be in flight (fire, $3B74). Holding the button fills the BEAM bar on the panel, cell by cell, up to 22 cells (charge_beam, $40D1).

Letting go releases the beam if six cells or more were charged (release_beam, $40EC). The beam is made of characters too, and it grows wider with the charge. A beam flies through breakable blocks and enemies and stops only at solid walls (move_beam, $416C).

Cells chargedBeam widthDamage
0 to 5no beam-
6 to 11one character2
12 to 19two characters6
20 to 22three characters10

A plain shot costs an enemy 1 hit point (check_hits, $17FB). The beam costs its width less one, times four, plus two, the same against a boss (boss_hits, $5902).

The Force

A pod that docks, flies off, and comes back

The first laser crystal brings the Force, and each one after it raises the pod a level, up to four (collect, $1B61). A free Force drifts and fires on its own, and docks with the ship when the ship comes close enough, at the front or the back, whichever side it touches (force_dock, $2953).

Space throws a docked Force forwards or backwards, eight pixels a frame, until it hits something or reaches the edge of its range. A second press calls it back, three pixels a frame (force_control, $2A12). Anything the Force touches is destroyed, so it doubles as a shield.

A free Force shoots by its level: one shot at level 1, two at levels 2 and 3, and four at level 4 (fire, $3B74). A docked Force fires its crystal’s weapon instead.

Crystals

The crystal’s colour picks the weapon

Destroying a carrier leaves a pickup (drop_pickup, $1B01). Three of the six kinds are laser crystals, coloured red, blue and yellow, and the colour of the last one collected decides what a docked Force fires with every press.

CrystalWeaponRoutine
RedA wave four rows deep that rolls ahead of or behind the Force, two columns a frame. The bits fire with it.weapon_red, $4CB3
BlueTwo lasers that leave the Force diagonally, one up and one down, and bounce off the walls.launch_diagonals, $42FA, and move_reflect, $43E1
YellowUp to six lasers that drop from the Force, three up and three down, then crawl along the floor or the ceiling.weapon_yellow, $47A1, and move_crawlers, $4848

The pickup kinds and their colours are in pickup_colours ($1B49), the weapons by colour in weapon_lo and weapon_hi ($1BFC, $1C04).

The other three pickups are speed, homing missiles and a bit. A bit is a small orb that sits above the ship, and a second one sits below (draw_bits, $2FFA). Bits destroy whatever they touch. Missiles go out in pairs at each press, one above and one below the ship, and steer towards the nearest enemy (launch_missiles, $1CBC; steer_missile, $1D39).

Lives

Three ships and a restart point

A game starts with three ships, and every 100,000 points adds one (add_score, $32CD). A new ship flashes for 120 frames, about two and a half seconds, and cannot be hit until it stops (flash_ship, $116C).

When the ship is hit it explodes, and the Force and the bits are lost (kill_ship, $319C). Play then starts again from the stage’s restart point if the scroll had passed it, otherwise from the start (restart_point, $08F5, with the columns in restart_columns, $0B64). After the last ship, GAME OVER sends the game back to the title screen through a fresh load of stage 1 (game_over, $5E47).

Enemies

Fifteen enemies at a time, sent by a script

Each stage has an attack script: pairs of bytes, the column of the map at which something happens and what (attack_script, $4FA8). Most entries send an enemy, and one starts the boss.

The game shows up to fifteen enemies at once with the eight sprites the chip has, reusing five of them in each of three bands down the screen. An enemy runs three small programs at once, one for its movement across, one for its movement up and down, and one for its animation; a step can move it by a fixed amount, at random, or towards the ship (move_enemies, $518D). Enemy bullets are characters, ten at a time, aimed at the ship or fired in straight lines (enemy_fire, $2498).

Stage 5: a narrow corridor of organic growths at top and bottom
Stage 5, the nest.

Bosses

Bosses made of up to 35 sprites

A boss replaces the three bands with a multiplexer of its own: up to seven rows of five sprites, each row reusing sprites 3 to 7 (start_boss, $56CF; boss_irq_row, $57AF). Shots only hurt it on its weak row, if it has one (boss_hits, $5902).

StageBossHit pointsRoutine
1 · The encounterA creature whose tail sweeps around it20boss1_routine, $8528
2 · The living caveAn eye in the cave wall, part of the scenery rather than sprites, which takes 8 hits8stage2_frame, $943B
3 · The huge battleshipNone: the stage is won once the battleship has passed and its waves are gone-the stage’s frame routine, $9586
4 · Fortress at the frontThree parts that are destroyed one at a time127 eachboss4_routine, $845C
5 · The nestTwenty identical blobs that drift together and flicker211boss5_routine, $82F8
6 · The transport systemNone: waves keep coming after the scroll stops-the stage’s frame routine, stage6_frame, $9286
7 · A destroyed cityNone: waves keep coming after the scroll stops-the stage’s frame routine, stage7_frame, $93B6
8 · The heart of the Bydo empireA core behind a hatch that opens and shuts211boss8_routine, $814C

Hit points from each stage’s boss record at $7AC0, which start_boss copies into the resident code. Stage 4’s parts keep their own points (boss3_parts, $5BA0).