1987 · Activision

Rampage

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

Each monster is 38 pictures facing left and 38 facing right, every one assembled from 36 tiles. The helicopters, the vehicles, and the wrecks are sprite shapes, and the two loading pictures name the four people who made the conversion.

01 · The monsters

George, Lizzie, and Ralph in every pose

Pick a character and an action. The animations run at the game's speed, about fourteen steps a second.

Every picture is built by the game's own code, which the page runs on a copy of the C64's processor, the 6502, from the frame's 36 tile numbers to the six sprite shapes the screen shows. A test checks all 228 pictures against their tiles. The order of the frames in each animation is read from the game's tables ($8C2A, $8C41, $89AF; a number after a $ is an address in the game's memory, written in hexadecimal, and links to that place on the Source code tab).

A monster's picture is made of 36 small tiles, shown by six sprites, the movable pictures the video chip can place anywhere on the screen. The three characters share one list of 38 poses and differ in their tiles. Each has its own colour (orange, green, and light blue), and all three share yellow and dark grey. A monster facing right is a second set of pictures with tiles of its own. The pictures are not mirrored by the program. How it works shows the tiles of a frame.

Walking is four pictures, each held for four steps. Climbing is two, swapped on every step. A punch is one picture, held for as long as the fire button is down. A monster that runs out of energy plays the last animation in the list: it shrinks through four pictures and walks off as a human.

02 · The army

Helicopters, vehicles, and wrecks

Everything that is not a monster or a building is a sprite shape, 24 pixels by 21, kept in memory as the disk supplied it.

Each shape is drawn from the game's sprite data. The helicopters turn their rotors at the game's speed, a new rotor frame every second frame. The wreck is slowed to two pictures a second.

A helicopter among the buildings has six poses, and each pose is four shapes in a row for the four positions of the rotor. Two smaller helicopters cross the status lines at the top of the screen in single-colour shapes of their own. The blimp carries the monsters onto the screen. A vehicle is two shapes side by side, and so is each picture of its wreck.

The wreck's second picture is a mistake in the game's tables, and the explosion is shown in an odd order. Discoveries has both.

Two pairs of shapes that the game never shows. The first pair heads the table of wreck pictures ($8C9B), and the game starts a wreck at the table's second entry. Nothing in the code names the second pair.

03 · Spare poses

Four poses the game never asks for

Each character's list of 38 has four pictures that no part of the program selects.

Frames 3, 14, 29, and 30 of each character, facing left, built by the game's own code on the site's 6502.

Two more poses, frames 1 and 2 with the mouth open, belong to a second eating animation. The animation is in the code as a monster state that nothing ever sets, so those two are never seen either.

04 · Loading pictures

The pictures shown while the game loads

The disk shows Activision's logo, then a title picture, and then a second picture with the credits.

The first screen of the load: the Activision logo and the word PRESENTS

The first screen is a screenshot. The two pictures are drawn from the bytes of their files on the disk, PART2 and PART6, with the video chip set as the loader sets it. A test holds the bytes on this page to the files by their checksums.

Each picture is a multicolour bitmap, a picture stored pixel by pixel: 160 by 200 double-width pixels in 8,000 bytes, with 2,000 more bytes that say which colours each 8 by 8 square may use. The second picture reads CREATED ON THE 64 BY: M.ARCHER D.JOLLIFF M.JONES D.WAINWRIGHT OF CATALYST CODERS and A SOFTWARE STUDIOS PRODUCTION. These are the only credits on the disk. The game itself names nobody.

05 · Building blocks

Two hundred blocks: a hundred whole and a hundred ruined

Every building is made of blocks two characters wide and two tall, a character being one of the 8 by 8 pixel tiles the screen is made of. Every block has a ruined twin.

Blocks 0 to 99
Blocks 100 to 199: the same blocks while their building falls

The blocks of the table at $3C10, drawn with the game's character set and its table of colours in the first level's colour scheme. Each block in the second picture is in the same place as its whole form in the first.

A building's map holds block numbers from 0 to 99. A punch swaps one number for another: a window for a broken window, a wall for a wall with a hole. When a building runs out of strength the game adds 100 to every number in its map, and the block 100 places further on in the table is the same block drawn as rubble. How it works has a level to punch.

06 · The text screens

The newspaper's portraits are squares of 64 characters

The pictures on the text screens are stored as twenty squares, each 8 characters by 8, or 64 pixels by 64.

The twenty pictures at $7000, each drawn from its 64 character numbers with the text screens' character set and colours. They are numbered from 0.

The first twelve squares are the ends of the newspaper's three strips, four for each character: the human, the monster, and two skylines. A strip shows the human and a skyline until somebody joins as that monster, and the monster's portrait after that. A monster that is out of the game gets the two skylines.

Squares 12 and 13 are blank newsprint, which fills the middle of each strip behind the headline. The last five lie side by side across the bottom of the screen that ends a game, where together they make three framed portraits. Square 14 is in neither screen's list, so it is never drawn.

07 · Character sets

One character set for the city and one for the words

A character set is the 256 tiles a screen can be built from. The game changes character set part of the way down every frame.

The city's set
The set of the status lines and the text screens

Both sets of 256 characters ($E000, $E800), each character in the colour the game's tables give it ($1300, $1400).

The city's set holds the skyline, the hills, the street, the pieces of the building blocks, and the things that appear in the windows. The other set holds two alphabets, the digits, and the pieces of the twenty pictures. During play the top three rows of the screen use the second set, for the names and scores, and the rest uses the city's. How it works shows where in the frame the change happens.

A character's colour is fixed by its number. Whenever the game shows a freshly drawn screen it looks each character up in a table and writes that colour beside it, so a block of a building needs no colour information of its own.