1987 · Domark

The Living Daylights: gameplay

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/the-living-daylights with me to Gold.

How Bond runs, shoots, and gets hurt, what Q branch hands him, and what each of the eight levels asks of him.

01 · Running and shooting

Bond runs only when the crosshair lets him

The joystick does two jobs. Standing still, it moves the crosshair; pushed against the right edge of the screen, it sets Bond running. The whole game turns on that switch between aiming and moving.

When Bond stands, the stick moves the crosshair, sprite 0, and it speeds up the longer the stick is held (the crosshair). Moving the crosshair to the right edge starts Bond running ($151F), and the scenery scrolls only while he runs. Pulling the stick left, or letting it go, stops him. Fire shoots at the crosshair, wherever it is ($2CE7). Running, the stick no longer aims: up jumps, and down with right rolls (jumping, rolling, and ducking).

A shot that misses leaves a bullet hole in the scenery: the game copies the character under the crosshair, punches a hole into the copy, and lets it fade ($27B3, $28F7). An enemy's shot that misses Bond leaves a hole too.

02 · Enemies

Three at a time, and not all of them enemies

Up to three figures can be on screen at once, each in a slot of its own ($1E34). A figure rises into view from behind the scenery, waits, shoots, and sinks back again, unless Bond hits it first.

Each level has a table of places where a figure can appear, between 20 and 47 of them ($2013), and a shortest wait between appearances with a random part added ($2023). A figure that is shot falls through six frames ($1E9C), and its place rests for a while before it is used again ($A2).

Not every figure is a real enemy. The game marks each one as an enemy or not ($016F), and the weapon matters ($2D67). Shooting a real enemy with a weapon that kills knocks him down for points; a weapon that does not kill does nothing to him. Shooting any other figure with a weapon that does not kill scores 100, but knocking one down costs 500. On Gibraltar the other figures are the soldiers of the exercise, and the real enemy is the assassin among them.

When a figure shoots, it hits Bond half the time, chosen by a free-running timer ($1F08). The energy a hit takes depends on the level and on who fired, with more added if Bond was running.

LevelA real enemy's hitAnother figure's hitAdded while runningPoints for a real enemy
1 Gibraltar81 (paint)4500
2 Concert Hall102200
3 The Pipeline105200
4 The Mansion205200
5 The Fairground000200
6 Tangiers112200
7 Afghanistan103200
8 Whittaker's House000200

The tables at $203B, $2033, $2043, and $204B, one byte a level. Bond starts with 119 units of energy. On the Fairground and in Whittaker's House the danger comes from elsewhere.

03 · Energy and lives

119 units of energy and five lives

A new game gives Bond five lives ($0150) and 119 units of energy ($012F, set by $3DAD). The bar under the status line draws one block for every 8 units and a part block for the rest ($2659).

When the energy drops below 2, Bond dies: the game plays tune 3, stops him, and starts the level again with a full bar and one life fewer ($1100). Losing the last life ends the game and goes back to the title. Besides the enemies' shots, these take energy:

What hits BondEnergyHow to avoid it
Tripping over an obstacle4Jump it ($238B)
The pipe worker's thrown thing, on The Pipeline10Jump, roll, or wear the hard hat ($24F8)
The thing that comes along the pipe, on The Pipeline4Roll ($7080)
A shot from a doorway, on The Mansion, Tangiers, Afghanistan, and Whittaker's House22Duck or jump clear ($1B4C)
A balloon that floats away, on The Fairground30Burst it first ($1922)
A bomb that lands under Bond, on The Mansion60Be somewhere else ($1874)

04 · Obstacles

Obstacles are columns of the map

The game never tests whether Bond touches an obstacle. Each level has a list of the map's columns where Bond trips ($2362), and while he runs the game compares the middle layer's scroll column with it ($238B).

Gibraltar has four, the Concert Hall, The Pipeline, and Tangiers five each, Afghanistan four, and the other levels none. The Mansion's list starts empty and fills up as the helicopter bombs the path: every crater becomes an obstacle ($185A), and is taken off the list once Bond has tripped on it. A trip is a roll that ends with Bond lying on the ground for 60 frames, more than a second, while the figures keep shooting ($3440, $3367). A jump at the right moment carries him over. On the long levels the middle layer goes round its map four times (how a level loops), so each obstacle comes back four times.

05 · Q branch

Four gadgets, and seven seconds to choose

Q branch: a grey room with an Aston Martin, four gadgets in frames, a cursor around the ghetto blaster, and a countdown digit
Q branch, before level 2. The cursor is on the ghetto blaster, and the countdown digit stands between the gadgets.

After each of the first six levels, Bond visits Q branch ($3746). Q's room has four of the gadgets on display, a different four for each level ($2B4A). The stick moves a frame from one to the next and fire takes it, while a large digit counts down four counts of 90 frames, about seven seconds in all. The chosen gadget flashes and becomes Bond's second weapon, beside the Walther PPK he always has ($2B48). In play, opening the weapon menu switches between the two.

On four levels one of the four gadgets is the one the level needs, and the code tests for it by name; on The Mansion and Afghanistan any of Q's weapons does far better than the Walther PPK:

Before levelQ offersWhat the code does with them
2 Concert Hallmissile pen, ghetto blaster, infra sight, grenadeThe infra sight shows who is an enemy ($2C9E).
3 The Pipelinemissile pen, hard hat, cigarette, bombThe hard hat keeps off the pipe worker's throws ($2CD7).
4 The Mansionmortar, bazooka, dynamite, bombAny of them brings the helicopter down at once; the Walther PPK takes ten shots ($2E71).
5 The Fairgroundmortar, ghetto blaster, crossbow, bombOnly the crossbow bursts balloons ($2EA8).
6 Tangiersmissile pen, sleep dart gun, cigarette, grenadeOnly the sleep dart gun clears a doorway for points; every other weapon costs 500 ($2EFA).
7 Afghanistanmortar, bazooka, cigarette, grenadeAny of them clears a doorway with one hit; the Walther PPK takes four.

There is no Q branch before Gibraltar, where Bond's second weapon is the paint gun ($3E07), or before Whittaker's House, where he has only the Walther PPK.

06 · Weapons

Fourteen weapons, most of them used once

The game names fourteen weapons ($2A84). The first five can be fired again and again; from the grenade on, each is used once.

NumberWeaponKillsFires
0Walther PPKyesevery press
1paint gunnoevery press
2crossbowyesevery press
3bazookayesonce every 30 frames
4sleep dart gunnoevery press
5grenadeyesonce, with a blast
6ghetto blasteryesonce, with a blast
7missile penyesonce, with a blast
8cigaretteyesonce, with a blast
9bombyesonce, with a blast
10dynamiteyesonce, with a blast
11mortaryesonce, with a blast
12infra sightnoworks when switched to, on the Concert Hall
13hard hatnoworks when switched to, on The Pipeline

Whether a weapon kills is the table at $2BBE; how it fires is decided in $2CE7.

A weapon used once stays in Bond's hand for a while, then the game switches back to the Walther PPK and does not let him switch again ($2C3E). The two gadgets that are not weapons work when they are switched to rather than fired: the infra sight colours the Concert Hall's enemies red and everyone else light red, and the hard hat is drawn onto Bond's head, one sprite shape a frame (the hard hat).

07 · Score

Points, and points taken away

The score is six digits, added to one digit at a time ($25AE); a score that would go below zero stays at zero. The high score is kept until the machine is switched off and is not saved.

What Bond doesPoints
Knocks down a real enemy500 on Gibraltar, 200 elsewhere
Hits another figure with a weapon that does not kill100
Knocks down another figure−500
Shoots the pipe worker, or bursts a balloon100
Brings down the helicopter1,000
Clears a doorway500, or −500 on Tangiers without the sleep dart gun
Finishes a level1,000 for each level before it: none for Gibraltar, 7,000 for Whittaker's House ($32FF)

08 · The eight levels

Eight levels, each with its own trick

Every level runs the same loop of running, figures, and shots. On top of it, the routine at $306F runs the level's own hazard each frame, and the level ends in its own way ($3004). The Maps tab draws each level's scenery whole.

1 · Gibraltar

An SAS exercise on the Rock. The soldiers fire paint, which costs Bond 1 unit, and his own second weapon is the paint gun. One soldier at a time is the assassin with live ammunition, shown in his own colour and costing 8 a hit ($1D64); he can only be knocked down with a weapon that kills, so Bond has to switch to the Walther PPK. Knocking him down ends the level ($1E9C), and nothing else does: running to the end of the scenery only stops Bond there. The longer the run, the likelier the assassin: his chance goes up when the far layer reaches its columns 60 and 120 the second time round ($3004).

2 · Concert Hall

Bond is joined by a companion who runs behind him, the defector, here and on the next two levels ($34A5). Every figure is drawn black, so enemies and bystanders look alike until Bond switches to the infra sight, which for a time colours the enemies red and the others light red ($2C9E). The level ends when Bond reaches the end of the scenery.

3 · The Pipeline

Two hazards of its own ($23D6, $7080). A pipe worker steps onto the gantry every eighth column of scrolling and throws something along a straight line at Bond. A throw that lands costs 10 energy, and the hard hat makes the throws harmless; shooting the worker first is worth 100 points. At three places on the map, something comes along the pipe at Bond's feet, and only a roll gets him past it without losing 4 energy.

4 · The Mansion

The safe house. A helicopter flies over from the right and drops bombs at random, each one whistling for a second before it lands ($181C). A bomb under Bond costs 60 energy, and every crater it leaves becomes an obstacle. The helicopter falls when its count of hits, which starts at 9, drops below zero. Each shot of the Walther PPK takes 1 from it, so the pistol needs ten; any of Q's weapons takes 16, so one shot is enough. It is worth 1,000 points. A henchman dressed as a milkman stands in a doorway and throws bottles at two heights. The level is short: it ends after 84 columns of the far layer, if the doorway is cleared.

The Mansion: Bond, his companion, and the helicopter at the top right of the screen
The helicopter arrives at the top right. Its three sprites are white until it is hit.

5 · The Fairground

The only level that does not scroll: the fairground is one screen, copied in whole ($3CB9). Twenty balloons rise from a seller one at a time, at random speeds, drifting left and right ($1922). Only the crossbow bursts them, for 100 points each; a balloon that reaches the top bursts with a bang that shakes the screen and costs Bond 30 energy. The level also has a doorway target, set up like the snipers' doorways on later levels but with no sniper moving in it, and the level ends only when it has been shot and the twenty balloons are gone. Once it is shot, the balloons come faster ($2F5A).

6 · Tangiers

Rooftops, with a sniper in a doorway. Shooting the doorway's figure clears it, but only the sleep dart gun scores: four darts and 500 points. Four shots of the Walther PPK, or one of anything else, clear it as well and take 500 away ($2EFA). The level ends at the end of the scenery once the doorways are cleared.

7 · Afghanistan

The Soviet air base, with doorways like Tangiers but none of its scruples: any of Q's weapons clears one with a single hit for 500 points, and the Walther PPK with four.

8 · Whittaker's House

The shortest level: it ends after 44 columns of the far layer. Whittaker's doorway is in reach from the start, Bond cannot switch weapons, and Whittaker takes 27 shots of the Walther PPK ($3C45). After him comes the ending, the score, and the title again.