1984 · Epyx

Summer Games: venues

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/summer-games with me to Gold.

The stadium, the diving tower, the gymnastics hall, the skeet field, the track, and the pool: every event's backdrop, drawn here from the bytes each event loads.

01 · Five pictures

Multicolour bitmaps, one to an event

Five of the venues are a single multicolour bitmap: 320 by 200 pixels in pairs, each 4 by 8 cell free to use three colours of its own over the background. The bitmap takes 8,000 bytes, its colours 1,000 more in screen memory and 1,000 in colour memory, and each event carries all three inside its own file. The athletes, the bar, the clays, and the doves are sprites moved over the picture. Choose a venue to draw it from the event's own bytes.

The ceremony and the pole vault share a stadium: the same stands, the same flags, and the vaulting uprights at the right, with the ceremony's steps and bowl added on the left. The bottom row of the pole vault's and skeet's pictures is left plain, and the events write their text into it as pixels, copying each letter from the machine's character ROM (draw_char, draw_char).

02 · The track

Seven rows that scroll

The relay: a runner waiting on the yellow track in front of a crowd drawn in brown and white, with the clock 0:00.0 at the top
The relay before the start. The clock's digits are characters three wide and three high (big_digits).

The running track is built of characters rather than a bitmap. Seven rows of the stands and the track, 80 columns wide, form a ring that scrolls past under the runners: the video chip's fine scroll moves it a pixel a frame, and every eighth frame the rows move a whole character and the next column comes in from the ring (scenery_ring, irq_scroll, scroll_rows). The start line, the baton zones, and the finish tape are drawn into the moving rows as they come (move_marker, move_finish).

03 · The pool

A hundred columns of water

The pool: four numbered starting blocks on the left, lanes divided by red ropes, and the stands above
The near end of the pool.

The pool is longer than the screen. Its picture is a map of 100 columns by 20 rows, each cell a tile number for its character and colour (pool_map, tile_char), and eight bytes of pattern for every cell, 16,000 bytes in all (pool_gfx). The view follows the leading swimmer, and when the camera has moved a character's width the program draws the next column into a second screen and switches to it, so the scroll never shows a half-built screen (irq_pool, draw_column, irq_switch).