1988 · Elite Systems

Mike Read's Computer Pop Quiz

This minisite was contributed by Nico-van-der-Zijden. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/c64/mike-reads-computer-pop-quiz with me to Gold.

Every picture the quiz draws, from the bytes the game keeps them in: the twelve stars and the host, the answer clock, two hand-drawn fonts, the rolling score and the pictures on the cassette.

01 · The faces

Twelve stars to pick a team from, and the host

Each team is a captain and two members chosen from twelve faces. A face is a 48 by 48-pixel multicolour picture, 6 by 6 cells, kept in 360 bytes.

Drawn from the bytes the menu keeps at $B800 plus 360 for each face (the menu part), and the host's picture 0 at $8510. Each picture is 288 bytes of bitmap, 36 of colour RAM and 36 of screen colours. The names are the game's own, from the table at $AE98: the code gives face n the name in entry n + 3, so the pairs shown are the ones the game uses ($CDB0).

The game names its stars by first name only. Some of the pairs look odd: the face beside "Phil" has long blonde hair, and the one beside "Sharon" a moustache. The code pairs every face with its name through one number, so the picture and the name either came out of order when the art was made, or are meant as they are.

When the teams are chosen, the menu copies the six faces into pictures 1 to 6 at $8678 to $8D80, and from then on the game draws only those seven pictures. The host, picture 0, stands at the foot of every question.

02 · The answer clock

The clock is drawn from 91 tiles, half of it turned upside down

While a team thinks, a clock beside the four answers loses its green a slice at a time. It has 32 faces; after the last, time is up.

face 0

Each face is drawn by the game's own routine, draw_clock at $20DE, run over the listing's bytes, and then read out of the bitmap it drew. The clock here moves one face every 4 steps of 40 ms; the game moves it one face every 4 turns of its answer loop, whose speed depends on what it draws ($2F51).

draw_clock builds an 8 by 8-cell picture from 8-byte tiles at $900A. The right half comes from a list of 32 tiles for each face. The left half is two quarters of 16 tiles, and the routine draws each of them turned half a turn: it takes the rows in reverse order, reverses each row and mirrors every byte through a table it builds at $B700. The artist drew one half of each face, and the code made the other.

03 · The speech bubble

Questions scroll through a speech bubble three pixels a frame

Mike Read asks every question in a speech bubble that scrolls the text from right to left. The bubble is eight sprites side by side, and its font is drawn 21 pixels high.

The bubble's 71 glyphs, from the font at $95DA-$A752, with each glyph's address from $A82D/$A87B and its width from $A753. Type any text and press Scroll: the page feeds it through the bubble 3 pixels a frame, as bubble_scroll ($0506) does. The game's "(" and ")" draw as opening and closing quotation marks, which is how the questions put song titles in quotes.

04 · The text panel

The answers are written into 24 sprites with a font of their own

The four answers, the menus and the announcements appear in a panel of 24 sprites, three rows of eight, 192 by 63 pixels. A second, smaller font writes them, with each letter as wide as it needs.

The panel's 70 glyphs, each with its width from $954E and its height (8 lines, or 16 for the letters that reach below the line) from $9594; a glyph 10 or more pixels wide has a second byte for each line, 8 bytes after the first ($1A3C). print_text ($194C) and draw_glyph ($19F2) write them into the panel's sprites, shifted to the pixel.

05 · The score

The score rolls like the drum of a counter

Each team's score is two digits, and each digit rolls up into the next one a line at a time.

00

The digits are a strip of eleven 16 by 16-pixel images at $A8C9, 0 to 9 and a second 0, so a 9 rolls into 0 without a jump. The page moves the strip one line a frame, as score_digits_frame ($1ED6) does, so a score rises by one every 16 frames.

06 · The Jukebox

Twelve numbered balls, a cursor and six subjects

The Jukebox round shows the numbers 1 to 12 on balls. A cursor moves from ball to ball, and the six subject icons are the specialist subjects the teams choose from.

The blank ball is 4 by 4 cells at $8000 with its colour RAM at $8080; draw_grid_number ($23B6) pastes a number's four cells from $8390 into the ball's middle before drawing it. The icons are 4 by 4 cells at $8090 plus 128 for each subject, in white with the greys highlight_cell gives them (screen colour $CF, $362D-$3639). The cursor is a sprite shape kept at $8EE8, which the menu copies to $4300; it is shown in yellow here, as in play.

07 · The bubble's outline

The bubble's outline is drawn into the screen from tiles

The text of the speech bubble is sprites, but its rounded outline is not: the game draws it into the bitmap behind them, one 8 by 8 cell at a time.

Drawn by the game's own draw_frame_tiles ($1265) run over the listing's bytes: it places the tiles listed at frame_tiles ($11AC, 54 entries) with draw_tile ($13C9), each tile 8 bytes at $AF62 with its colour RAM from $112C and its screen colour from $116B. Only the cells the routine wrote are shown. The pink pipes and grey towers round the screen are not tiles: they are part of the title picture below, which every screen keeps.

08 · The title picture

The menu is drawn over the title picture

The program loads with a whole picture in its bitmap: the logo, the pipes and towers round the screen, the two score boxes and the Elite name. The menu writes its text over it, and every later screen blacks out what it does not use.

The bitmap at $6000 with its screen colours at $5C00, and its colour RAM from the 1 KB at $F800 that copy_title_colours ($3ACC) copies. Compare the game's menu: screenshot.

09 · The loading picture

The picture the cassette shows while it loads

The first file after Novaload's own loader is a picture, shown while the rest of the program loads.

File "0" on the tape, decoded from the cassette: a multicolour bitmap at $2000, screen colours at $1000 and colour RAM at $13E8, which the loader's second stage copies to $0400 and $D800 before it loads the game. The game loads over it, so the listings do not hold it, and the page carries its 10,000 bytes. Compare the cassette loading: screenshot.