1981 · Nintendo

Parachute: Play

This minisite was contributed by icyriver2023. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/gnw/parachute with me to Gold.

The whole unit, clock and alarm included, written again in JavaScript routine by routine, and run in lockstep with the chip's own program in the tests.

01 · Play

Row the boat under the paratroopers

The unit starts as a fresh battery leaves it, every segment lit. Press Time for the clock, or Game A or Game B to play: the game starts when you let go.

Keys: ← → move the boat; A Game A, B Game B, T Time, L Alarm. Watch starts a game of Game A or B, chosen at random, for the computer to play; Computer plays hands the game in progress to it. At each step the computer rows toward the paratrooper who will land first, working it out from the game's own cells and the order the lanes move in. A press of left or right takes the game back.

Each press of left or right moves the boat one place, under one of the three lanes. A paratrooper is caught if the boat is under him when he reaches the bottom of his lane, and a press made just after he lands, before the next step, still catches him. Hold Time in the clock to see the alarm's time, and hold a game's button to see its best score.

02 · The port

The chip's program, routine by routine

This page does not run the game's own code. Each routine of the listing is a JavaScript function of its own, on the game's own 65 cells of memory, with the chip's registers kept where one routine hands them to the next. The port charges each instruction its length in cycles, as the chip runs a byte a cycle, so its clock matches the chip's to the cycle. That matters because the paratroopers' jumps take their chance from the chip's divider and the clock's seconds.

The test beside this page, test_play.js, runs the port in lockstep with the game's code on the kit's model of the chip, which is held to MAME instruction for instruction. At every pass, every pass of the wait before a step, every return from drawing the screen and every reading of the buttons, the two must agree on all 65 cells and on the cycles since power on, through games played by this page's computer player and through the states play seldom reaches: the bonus, the top speed, the alarm, the test pads and the time being set.