1989 · Domark

Licence To Kill: maps

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/licence-to-kill with me to Gold.

The scenery of all five levels, drawn from the game's own map rows, tiles, and character sets.

01 · The maps

Five maps, read from the bottom up

Four of the five levels scroll: the scenery moves down the screen and Bond flies, swims or drives up it. Level 2's gunfight in the boatyard scrolls only as Bond walks up it. Each map is drawn here as one long strip, with its start at the bottom, where the level opens.

A map is a list of rows, four bytes to a row and one byte to a tile. A tile is 8 characters wide and 4 high, so a row of four tiles fills the 32-character playfield. The game reads the map backwards, from its last row towards an $FF row at its start (draw_new_map_row), drawing one character row of the tiles at the top of the screen each time the scenery has moved down by 8 pixels (copy_tile_row). The last seven rows of each map do a second job: before the level begins, draw_picture_tiles draws them whole as the opening picture.

Colour comes from two places. Each tile number has an attribute byte. When a row's first tile names a different colour scheme in its attribute's low four bits, the two colours every character shares change from that row on (map_row_tiles); the change is a raster split that moves down the screen with the scenery (move_colour_splits). When an attribute's top bit is set, its top four bits are a colour for that tile's column of the screen, painted into colour memory a row at a time as the tile moves down (row_colour_patches). The drawing here applies both from the row they start at.

How each map runs out

LevelMapWhen the $FF row comes
1, the helicopter chasemap_l1, 92 rowsThe scroll stops, and Bond has to put the helicopter down (stop_scrolling).
2, the boatyardmap_l2The scroll stops at the top of the yard. Six rows stored after the opening picture are never read.
3, the plane escapemap_l3, one section of 8 rowsThe same stretch of sea and sky comes round again and again, from a list of sections at l3_sections, until the plane is caught or the fuel runs out (map_next_section_l3). All the section addresses but one name the same rows; the seventh, $B885, is never reached.
4, diving and water-skimap_l4The sea repeats from $BB47 for as long as the level lasts (map_restart_level4).
5, the truck chasemap_l5 and roads_l5The opening road is followed by one of two stretches, picked at random each time, and a last stretch when the chase ends (map_next_section_l5).