1984 · Software Projects

Jet Set Willy

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

Every sprite the game shows, moving as the game moves it: Willy, every guardian, Maria and the toilet, the arrows, the rope and the boot that ends the game.

01 · Willy

Willy shows four frames for every cell he crosses

His sprite moves a whole cell at a time, eight pixels, and the frames walk his legs through the cell in between.

From the walk at $10CC and $112A, one step for each player update, every sixth pass of the main loop: a count at $32 goes 0, 2, 3 and on to 7 going right, and 7, 5, 4 and down to 0 going left, and the column moves on as it wraps. The frame is half the count, so the first frame of a cell shows for one update and the other three for two. The interrupt at $33E1 points sprite 0 at $06 plus the frame, $06-$09 facing right and $0A-$0D facing left. Drawn white on black, at the pace of three passes a frame.

02 · The guardians

Every guardian steps through its own frames

A guardian's record names its first frame and a mask for the frames after it. Each card runs one record as the game runs it, in its colours in one of the rooms it guards; a guardian built of several sprites runs them all. The Map shows them moving in their rooms.

From $3614 (up and down) and $369E (across), which $32D4 runs for each guardian on every twelfth pass of the main loop, ported in reference/jsw-rooms.js. A guardian that goes up and down steps through its frames as it moves; one that goes across shows four frames for each column, and takes the frames four on while it goes right when its mask is 4 or more, so those have a set for each way. Where records with the same first frame differ, the card runs the one with the most frames.

03 · Maria and the toilet

Two rooms put a sprite of their own on every pass

Maria stands in the Master Bedroom and watches Willy: her frame follows the row he is on. The toilet in The Bathroom lifts and drops its lid.

From $3284 and $324E, on every pass of the main loop, as sprite 7. Maria is yellow and shows $02 and $03 by turns, every eight passes, while Willy is on row 13 or below, $04 while he is on row 12 and $05 above it, until 50 items are taken. The toilet is white, $0E and $0F by turns every 16 passes. The Nightmare Room's guardians are drawn with Maria's frames and the boot's, and Ballroom East and Top Landing each have a barrel among their guardians.

04 · The arrows

An arrow crosses its room a column at a time

An arrow waits in its room for a countdown, whistles ten steps before it flies, then crosses the whole room on sprite 6.

From $314D, every eighth pass of the main loop, ported in reference/jsw-rooms.js: frame $AA flying right and $AB flying left, a column a step. Here each arrow flies again after a countdown of twelve steps; in the game the countdown starts again from 256, about 14 seconds.

05 · The rope

A rope is 34 drawings of three sprites

Five rooms have a rope. Let it swing, or drag it through its 34 positions.

Drawn from the rope's sprites at $8100 and the places at $178A, as the routine at $16A2 copies them in, in We Must Perform a Quirkafleeg. A room starts its rope at position 16, at the far right of its swing ($30B5). The swing is a port of $16A2.

06 · Game over

The boot comes down on Willy

When the game ends, the room is wiped and Willy stands on a barrel while a boot drops from the top of the screen onto him.

From $383B: the boot is sprite 0, frame $00, and drops a line for each of the main loop's waits; Willy is sprite 1, frame $08, and the barrel sprite 2, frame $01. When the boot reaches him, Willy takes the background's colour, and after a wait of 336 more the title starts again. The border flashes with the boot's height as it falls.

07 · Never shown

Two frames of the toilet are never drawn

A second toilet, with the lid up and something in the bowl, has two frames that the code never points a sprite at.