1987 · Thalamus

Delta

This minisite was contributed by chunkypixel, 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/delta with me to Gold.

Every sprite shape Delta stores, drawn from the game's own bytes: the animations at the speed the game plays them, then every other shape as a still.

01 · What moves

Every animation list, at the game's speed

The ship, the explosions and the enemies all take their frames from the same lists at $1300.

The 14 lists of more than one frame at $1300-$13FF, each played from the listing's bytes one frame every four frames, the rate enemy_anim_step ($3C89) gives each sprite by stepping two of the eight a frame. A list ends at $FF and starts again. An enemy's list is drawn in the colours that enemy was first given in the wave recordings; the others in a light blue and stage 1's two multicolours, since the game changes the colours by stage and by wave.

A sprite's frame comes from its animation list: the game keeps each sprite's place in its list ($11B0) and the place to start again ($11B8), and writes the frame number into the sprite pointer. The ship's list spins it through seven frames, and the small ship in the score panel spins through the same list while its player is in play (panel_ship_spin, $3CBC). Most other lists after $1312 hold a single frame, the shop's icons among them, so those sprites never change shape.

The three big enemies are made of seven sprites that each show a single frame. They are drawn whole on the Gameplay tab.

02 · Every other shape

The shapes no list animates

Rocks, machinery, icons, the score panel and the rest of the enemies' frames, grouped by where the game keeps them.

Every sprite shape in the video bank at $4000-$7FFF, 64 bytes each, numbered as the sprite pointers number them, plus the two stores the game exchanges with part of the bank. A shape an animation above plays is not drawn again. All sprites in play are multicolour ($D01C = $FF). The hazard rows are drawn in stage 2's grey ($F904-$F906); the hazard rows' own animation, read from tables under the I/O area at $D000, is not played here.

Delta keeps more shapes than the video chip can see at once. The rocks, bubbles and machinery of the hazard rows come in two sets, and between stages the game exchanges $4C00-$577F with the store at $E000-$EB7F, 128 bytes a frame (stage_gfx_sequence), so alternate pairs of stages get the other set. The first 20 of those shapes are also exchanged with the store at $F0E0-$F5DF between the title and play, swapping the pieces of the DELTA logo for rocks (swap_graphics_step).

Shapes 0 to 15 are rewritten while the game runs. As loaded they hold the title's top-score table as text in the game's font; on the title and between stages the game copies lettering into them, and in play some enemies fly shapes the game has written there.

03 · Lettering on the title

The title's sprite lettering, as stored

The rows the title copies into shapes 8 to 15, in 30-byte blocks of ten sprite rows (title_picture_step, and copy_sprite_rows_a, _b and _c for the three interlude pages). Each block is drawn as stored, one under the next, and most spell words in the game's font, such as THALAMUS and TOP SCORES. How the game places the shapes on the screen is not rebuilt here.

04 · Shots

The shots are characters, not sprites

The enemies' bullet, glyph $2D, and the player's weapons, glyphs $32-$3F, from the character set at $4800. The set is inverted, so the clear bits are drawn, here in white; on the screen they take one of the four background colours.

Everything the ship fires, and the enemies' bullets, is a character on the screen rather than a sprite. The enemies' aimed shots and homing bombs have no fixed shape: the game builds their glyphs each frame by cutting a ball out of whatever lies under them (Every shot is a character).

05 · The screen

How the screen is put together

The play area is text in the VIC-II's extended background colour mode, with an inverted set of 64 glyphs (An inverted character set). Over it, eight sprites are reused several times a frame: for the top row of rocks, for the enemies, for the bottom row of rocks, for the icon row along the bottom and for the score panel. The Overview rebuilds one frame from memory and marks each band.