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.

All twenty levels, drawn by the game's own code, with the punches each building takes. Two more levels sit in the tables after the twentieth, and the game never reaches them.

01 · The levels

Twenty levels, then the first again

Step through the levels. Each is one screen, cleared when every building is down.

Each level is set up and drawn by the game's own code, which the page runs on a copy of the C64's processor, the 6502. The monsters and the army are left out. A test compares the buildings of every level with the game's level tables read directly.

A level is a list of building shapes and a list of the screen columns they stand in ($A48E, $A462; 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). There are six shapes, and each has a strength: the number of damaging punches it takes before it falls. How it works explains the shapes and the punches.

The first level needs 30 punches and the twelfth, with six buildings, needs 51. The level number changes the buildings, the colours, and the scenery, and nothing else: the helicopters, the soldiers, and the vehicles behave the same on the twentieth level as on the first.

02 · All twenty

Every level side by side

The same six building shapes in sixteen colour schemes and two sceneries.

The colours of the walls and windows come from two tables of sixteen entries ($9DC1, $9DD0), read with the level number, so levels 17 to 20 repeat the colours of levels 1 to 4. The border is black on odd levels and blue on even ones.

Levels 5 to 8 and 13 to 16 stand in front of hills. The others have the city skyline. Each scenery is stored as rows of characters, the 8 by 8 pixel tiles the screen is made of. The rows are 79 characters wide, and the screen shows 40 of them.

03 · The road

On three levels a patch of the road falls into water

Levels 4, 12, and 20 have a brick patch in the street. A monster that falls onto it goes through.

The patch on level 4 in its four stages, drawn by the game's own code ($9858) on the site's 6502 with the stage set by hand.

The patch is eight characters wide, left of the middle of the screen. The game watches for a monster that is falling, has reached street height, and is over the patch. From then on the patch breaks a stage on every fourth pass of the game's main loop, a little under once a second, with the sound of a punch each time, until it is a hole full of water.

A monster standing in the hole has a picture of its own and is hit on every step it spends there. The hole stays open for the rest of the level.

The levels are picked by arithmetic. The game adds 1 to the level number as it counts it, from 0, and looks at one binary digit of the result, which is 1 for four levels in every eight. Three of each four are levels with hills, whose street is drawn by different code, and that leaves levels 4, 12, and 20.

04 · Spare levels

Two levels after the twentieth that the game never reaches

The level tables have 22 entries. The game counts to 20 and starts again.

Entry 21
Entry 22

The two entries as the game's own code would draw them, on the site's 6502, with the level number set by hand.

When a level is cleared, the game adds one to the level number and, on reaching 20, sets it back to 0 ($926F). The two entries past that point each hold a single building of the first shape at column 10. They may be placeholders, or what is left of test levels. The code does not say.