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.

Forty-five sprite shapes of eight pixels by ten lines, packed into 900 bytes, and eight shapes that build every level.

01 · Sprites

Jumpman and everything that moves

Every moving thing is a sprite, and every sprite shape in the game is one of these 45, from Jumpman's walk to the debris of the hurricane.

Each shape as the sprite pointer that shows it, $90 to $BC, with what the game uses it for, from the routines that set the pointers. White and purple are the two colours every sprite shares; red stands for the sprite's own colour, which each set-up chooses: red for Jumpman and the fires, cyan for the moving ladders, white for the bullets and stones.

The shapes are stored packed at sprite_shapes: ten rows of two bytes each, eight multicolour pixels a row, twenty bytes a shape. A sprite block holds 64 bytes, and at start-up build_sprites copies each shape's rows into its own block at $6400, leaving the third byte of every row and the rows below the tenth empty. All eight sprites are multicolour ($D01C = $FF), with white and purple as the shared colours ($81B8).

Jumpman walks in two frames each way, climbs in four, and jumps in a single frame, leaning the way he goes (start_jump). Hit, he takes a random shape from $91 to $98 and tumbles through four more as he bounces down the screen (death_task). A new Jumpman does not use a shape from this table at all: new_life points his sprite at $BD, the block after the last one, and copies his rows into it a few at a time, each with a rising note, so he appears from the top down.

02 · Level shapes

Eight shapes build every level

The levels are not drawn from tiles or characters but stamped into a bitmap, one shape at a time, by the draw scripts.

Each shape stamped once by the port of draw_shape that draws the Maps tab, in the level colours. The erasers draw in black, so they show as nothing here.

A shape is a list of rows, each a count of pixels, an X and a Y offset, and one colour for each pixel. A girder piece is a block of green four pixels wide and six lines high with two holes through its middle. A ladder piece is two blue rails eight lines high with one rung, and a rope piece is a line two pixels wide and eight lines high that zigzags, green for up and blue for down. The bomb is a small orange ring. Each eraser sets the same pixels as its shape to colour 0. The girder's covers its whole block of four by six, holes and all, and a bomb fits inside that block, so the game wipes bombs with it too.

03 · The screen

A multicolour bitmap with a text bar under it

Play is a multicolour bitmap of 160 by 200 double-width pixels. The bottom two text rows are the status bar, in hires.

The game keeps everything in the VIC-II's second bank: the bitmap at $4000, its screen at $6000, and the sprite blocks from $6400 ($D018 = $81). Each level is painted the same three colours (level_colours): orange for the bombs, green for girders and up ropes, and blue for ladders and down ropes. Those colours are the whole of the game's map, because Jumpman's movement reads them back from the bitmap (the floor).

The raster interrupt at line $E8, near the bottom of the playfield, switches multicolour off for the status bar's two rows and back on for the next frame (irq). The status bar's text is drawn into the bitmap from a RAM copy of the character set at $2000, which the start-up copies out of the character ROM.