1983 · Epyx

Jumpman Junior

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/jumpman-junior with me to Gold.

Twelve levels, each a short list of girders, ladders, and ropes stamped onto the screen, and a list of bombs, some of which change the level when Jumpman defuses them.

01 · The levels

Every level, drawn by the game's own scripts

Pick a level, then click its bombs to defuse them in any order. A bomb that changes the level redraws part of it, as it does in play.

The picture is a port of draw_script and draw_shape, held to the game's own code by a test, run on each level's script from the Source tab. Orange is the bombs, green the girders and up ropes, blue the ladders and down ropes. The numbers are the bombs' places in the level's bomb list, and the arrows mark the ropes: up, down. The status bar's two rows are left off.

A level is drawn from a script and nothing else: there is no map of the level in memory. Jumpman finds the floor by reading the colours in the bitmap under him, so whatever a script draws in green is something he can stand on, and whatever it rubs out is gone (how he reads the floor).

02 · Draw scripts

A level is a few dozen runs of eight shapes

Each level's script names a shape, a step, and then runs: a place and how many copies to stamp, each the step further on.

draw_script reads three bytes at a time. $FE and an address pick the shape, $FD and two numbers set the step between copies, $FF ends the script, and any other three bytes are a run: X, Y, and a count. X counts the screen's double-width pixels, 0 to 159. A girder run with a step of 4 across lays a floor; with 4 across and 2 down, or 2 up, it lays a slope. Ladders and ropes are runs of pieces 8 lines apart. draw_shape stamps each copy as rows of pixels, every row a count, two offsets, and one colour for each pixel.

There are eight shapes (Graphics): the girder, the ladder, the bomb, the up rope and the down rope, and an eraser for each of the girder, the ladder and the rope. The erasers draw the same outlines in black. A bomb is wiped with the girder eraser, through a script of one run that bomb_check writes at $09CA with the bomb's position.

Every level's colours are the same: level_colours fills the screen with orange and green and the colour memory with blue before the script runs. Only the border, from header byte $29, changes from level to level.

03 · Bombs

Bombs are found by the square they sit in

The game does not test Jumpman against each bomb. It works out which square of 32 by 32 pixels he is in and looks that square up in the level's list.

On every pass of the game, bomb_check looks for orange inside Jumpman's body. When there is some, it turns his position into a cell code, X and Y each in steps of 32 pixels, and searches the level's bomb list (header byte $1B) for it: two bytes a bomb, the cell code and an action. The bomb's place in that list is also its place in the list of positions (header $19), which says where to wipe it. That is why no two bombs on a level share a square.

The action's high nibble picks a change script from the level's list at header $1D, and the change is drawn before the bomb is wiped. Five levels use them. On level 1 four bombs rub out girders; on level 5 thirteen of the fourteen bombs change something, laying girders, taking away ladders, and building a ladder of nine pieces; on level 7 bombs rub out girders and ladders and hang up ropes; level 11 rubs out floors and ladders, and level 12 floors. Several bombs on levels 7 and 11 share a script, so defusing the second does nothing new.

The action's low nibble would call a routine from a list at header $1F, but no level sets it, and every level's list is 0. Had one been used, it would have found the wrong address (a bug that never fires). The levels with code of their own run it from header $21 instead, after every bomb.

Each bomb is worth the header's points, 100 on every level. The level ends when the count of bombs left, header $0A, reaches 0. On level 9 the list holds sixteen bombs and the count says eight, because the level wipes eight of them at random before play.

04 · The twelve

What each level adds

Each header names four tasks, run every frame, and routines for the level's start, its play, each bomb, and its end. Most levels use the shared ones; these are the ones that do not.

LevelNameWhat is differentCode
1NOTHING TO ITFour of the twelve bombs rub out girders as they go. One bullet at a time.$AA2E
2FIRE! FIRE!Two fires, which kill on touch, jump to new places after every bomb, from a table of places for each bomb.l02_on_bomb
3SREDDAL“Ladders” backwards. Six moving sprites, three going down and three up, are ladders while Jumpman touches one. They turn round at the top and bottom and after every bomb, and never kill.l03_ladder_task
4HELLSTONESFour glowing stones drop from straight above Jumpman and bounce toward him when they land.l04_stone_task
5FIGURITS REVENGEThirteen of the fourteen bombs change the level. Two bullets.$AF1F
6WALLSEach bomb adds a moving wall, up to six, that pushes Jumpman and never kills, and turns the rope in the middle from down to up and back.l06_on_bomb
7ZIG-ZAGThree bullets, which weave from side to side once they turn on Jumpman. Bombs take away ladders and hang new up ropes.l07_zigzag_task
8SPELLBOUNDEach bomb carries a letter, stacked up the middle of the screen as it is defused, the newest on top. At the end, reading down, every letter in the place it takes in EPYX JUMPMAN scores 250: defuse the bombs in the order N A M P M U J, the blank, X Y P E to score all twelve. The map shows each bomb's letter.l08_on_bomb, l08_end
9BLACKOUTThe level is drawn in black and lit around Jumpman as he moves, a block four cells wide and three high; lit cells stay lit. Eight of the sixteen bombs are wiped at random first.l09_main, l09_light_task
10HERETHEREEVERYWHEREA transporter jumps between eight places every 128 frames, and each bomb sends Jumpman to wherever it is. At run speed 8 the bullets cannot kill him.l10_on_bomb, l10_touch
11HATCHLINGSEach bomb lays an egg where it was. The egg hatches into a bird that chases Jumpman and kills on touch; the egg itself is harmless.l11_on_bomb, l11_bird_task
12HURRICANEA wind pushes Jumpman 2 pixels right on every move, and off the right edge he comes back on the left. Gusts blow debris across the screen.l12_wind_task, l12_gust_task

Every level but 3 and 6 also runs touch_check, which kills Jumpman when his sprite touches any other; levels 10 and 11 have their own versions that leave out the transporter and the egg. The bullets come from one shared task, as many at a time as header byte $0B allows: none on levels 3, 4, 6, 9, 11, and 12.

05 · The order

After level 12, any level at all

The levels come in order once. After the twelfth, next_level sets a flag and picks every level after that at random.

Finishing level 12 plays the ending, WELL DONE, once. From then on each new level is a random number from 1 to 12, so a level can come up twice running and another not at all (next_level).