1985 · Epyx

How the games are played

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-ii with me to Gold.

The menu, the countries, and the medals, then each of the eight events and the two swimming events, as their code runs them. Each heading's addresses link to the routine on the Source tab.

02 · Players and countries

Eighteen flags and an Epyx anthem

Up to eight players each type a name of up to ten letters (name_entry), and a name already taken is refused (same_name). Each then picks a country from eighteen flags, scrolled a page of nine at a time. The countries are stored as three-letter codes at $3CD1: the United States, France, Great Britain, West Germany, Austria, Italy, the Soviet Union, Canada, Mexico, Spain, Denmark, Australia, Japan, the Netherlands, Norway, Ireland, Brazil, and EPX, Epyx's own country, whose flag is a drawing and whose anthem is a tune of Epyx's.

PICK YOUR COUNTRY: nine flags with their names, from U.S.A. to EPYX
The first page of flags. Pressing S plays the country's anthem before choosing it. All eighteen anthems are on the Music tab.

Each country's anthem is found through a table of tune numbers, tune_by_country. It has room for 24 numbers. The eighteen countries take 0 to 5, 8 to 13, and 16 to 21, and when the game wants the final standings' tune or the world records' it asks play_tune for country 6 or 7, numbers no flag uses, so one routine plays the anthems and those two tunes.

03 · The awards

Five points for gold

After each event in a competition, show_results sorts the players by score and lists them with their countries. A score of zero, a disqualification, is written as FAULT. The first three get gold, silver, and bronze, worth 5, 3, and 1 points (score_medals), and players with the same score share a place and a medal. Then the winner's flag waves over the screen while their anthem plays (wave_flag).

Every event keeps its score in three bytes in the player's record, higher always better. An event timed by a clock, such as Rowing, stores its time turned upside down, so that the shortest time is the highest score.

04 · World records

Records saved to the disk

The winner of each event is checked against that event's world record (check_record). A score at least as good replaces it, and the game writes the records page back to the disk through its loader. Practice never gets that far, so a practice score is never a record. The menu's seventh option lists the eight records with their holders while a tune plays.

05 · The champion

From last place up

When every event is done, champion_ceremony shows FINAL STANDINGS. It plays the standings' tune and adds the players one line at a time from last place up, with a pause before each from the tables that follow it. Last comes the champion, with their flag and anthem.

06 · Opening ceremony

The torch and the doves

The torch bearer runs left across the stadium and up the steps (runner_step), holds five poses as he lights the flame (lighting), and eight doves climb and drift away (dove_step). A raster interrupt at line $6E splits the screen, so the doves use the eight sprites above it and the bearer and his torch the same eight below. The ceremony plays its own three-voice tune, and a press of the joystick ends it, but only after the stick has been let go: a button still held from the menu does not skip it.

The flame burning at the top of the steps, doves over the stand
The flame lit. Its two flickering bytes are rewritten with random numbers each frame.

07 · Triple Jump

Hop, step, and jump

Fire starts the run (st_wait), and the button pressed picks the joystick. At the board, right makes the hop and the step and left the jump, and up in the air gives lift. Overstepping the board, a hop or step left too late, or running past the line is a FAULT (mark_fault). In competition each player has three rounds and keeps the best (tj_main); in practice ANOTHER JUMP? asks for Y or N.

The triple jump: the athlete on the runway, the sand pit, the crowd, and a monitor on the stand
The athlete is drawn in five sprites, from 100 frames stored packed. After each jump the monitor on the stand plays an animation, and the crowd cheers a jump of 15 metres or more.

08 · Rowing

A stroke in sixteen steps

Two boats race 250 metres, one in each half of the screen. Each half follows its own boat, and the other boat is drawn ahead or behind by the gap between them. The stick, read every fourth frame, steps a stroke of sixteen phases (read_stroke): left lifts the oars and right pulls them through. Only the phases with the oars in the water add speed, and the drag grows with the speed, so rhythm beats force.

Rowing: two lanes of water, each with a single scull, and the times and speed meters
The two lanes. The clock counts a tenth every 5 frames, which is real time on a European machine; three minutes is a FAULT.

Against the computer the second boat is a pacer (pacer_choice). Each phase it pulls the right way when a random number falls under its skill. The skill starts at 88 out of 256, so at first the pacer pulls the right way about a third of the time, and it rises by one each step it trails, and falls while it leads (pacer_adjust): a rubber band that keeps the race close.

09 · Javelin

Speed from the button, angle from the stick

Fire starts the run, and each new press of the button adds speed, up to 31: pressing it, not holding it, is what counts. Pushing left starts the throw (start_throw), and while left is held the angle rises in steps of 9 degrees, up to 90; right lowers it. The javelin leaves the hand at a fixed frame of the throw (release), and the foul line is 16.50 metres into the run.

Javelin: the thrower on the track before the stand
The thrower's legs and throwing arm are three sprites from a table of 44 frames, copied into place each frame.

The throw is measured from the foul line. A throw of 48 metres makes the crowd cheer (cheer), louder at 64, 80, and 96. Each round the players throw from the last to the first.

10 · Show jumping

Pace, fences, and faults

Fire starts a count from FIVE to GO. Up starts the horse and quickens its pace through five steps, and down slows it (pace_up). At each fence the ride (st_ride) reads the fence's code from the course and whether the stick is pushed right, and decides the jump (pick_jump); left at the landing keeps the rider on. A horse brought in wrong refuses, and pulling down backs it away for another try.

Show jumping: horse and rider before a fence, mountains and trees behind
The horse and rider, unpacked from 60 frames. The gallop's tune takes its note length from the pace, so the hoofbeats quicken as the horse speeds up.

Faults are added by add_faults: 20 for a refusal, 6 for a fall, and one for every second over 50. A rider is disqualified at 99 seconds or 100 faults. The clock adds 3 hundredths a frame (clock_step), so a game second takes 33 frames, about two thirds of a real second. This clock runs fast on any machine: the 50 seconds allowed before time faults begin are 33 real seconds on a European machine (28 on an American one), and the 99-second limit is 65 real seconds (Discoveries).

The course under the horse carries a code at each step of the approach to a fence, and st_ride acts on it with the stick. Fire plays no part: the code reads it only to start the count and after a fall, though the manual says it makes a medium jump.

CodeStick right heldStick right not held
1jumpsrides on
2jumpsjumps
3jumpsrefuses
4refusesrefuses
7refuses, unless the horse has already refused hererides on

Code 5 changes the field's character set and colours, and 0 rides on. When the horse jumps, pick_jump takes the jump's speed from a table for the fence and the pace.

11 · High Jump

Where the jumper takes off

Each tap of right adds a quarter of a pixel a frame to the run's speed, and left halves it; up and down move the line the jumper runs along. Fire in the 36-pixel take-off zone jumps (take_off). The clearance is the value of the place in the zone, from zone_values, plus a bonus for the speed from speed_bonus. The jump clears when the clearance reaches the bar's level, its height in 5-centimetre steps less 20. Then, in the flight, up held too early or let go too late knocks the bar off anyway.

Loading the event's tables…

The tables are read from the event's listing. Each column is a place in the zone, from the end farthest from the bar on the left to the nearest on the right, as tall as the clearance a jump from there gets at the chosen speed. Solid columns clear the bar's level, the dashed line; outlined ones knock it off; the triangle marks the chosen place. The best places, 16 to 19, are worth 26, and speed adds at most 5, which a run reaches at speed 13. So where the jumper takes off counts for far more than how fast: the highest bar, 2.50 m (level 30), is cleared only from the middle of the zone.

In competition the bar goes 1.50, 1.75, 1.90, and 2.00 metres, then up 5 centimetres at a time to 2.50 (next_height). Each height allows three tries, three failures in a row end a jumper's competition, and left passes a height, except from 2.45 m, where the stick goes straight to the run. A run past the zone is a fault that sends the jumper back to the same attempt without counting it. In practice the bar can be set from 1.20 to 2.50 m.

High jump: the jumper on the red track before the bar and the mat
The high jump. The crowd's cheer is louder the higher the bar.

12 · Fencing

Hold fire to attack

Without the button, the stick picks one of nine guards (set_guard). With the button held, it steps, thrusts, or lunges. A thrust or lunge hits when the fencers are close enough, unless the other fencer's guard is in the same line, which parries it. Two hits at once cancel: HITS NULLIFY EACH OTHER. A fencer who steps off the end of the piste is warned once (piste_warning), and another step back gives the other fencer a hit.

Fencing: two fencers in white on the piste, the referee's screen of hits above
The bout. The board above counts the hits, with each fencer's name and country.

A bout is won with five hits, or with the most hits when the three-minute clock runs out. A tie on time goes to sudden death (to_sudden_death). The computer's fencer, the droid, plays at four skill levels or at random (skill_menu). With two joysticks every player fences every other once; with one, each fences the droid at skill 3.

13 · Cycling

Turning the stick like a pedal

Every second frame the routine pedal reads the stick's direction as a quarter of the crank's turn, right, down, left, and up, and each read in the quarter the crank is in adds 1 to the speed, up to 16 (match_crank). The speed falls by 1 on a countdown that is shorter the faster the rider goes. Two riders race 200 metres, each in a half of the screen, with the other rider drawn in red at the distance between them.

Cycling: two riders on a road, each half of the screen with its own view
The split screen: eleven raster interrupts a frame and two screens drawn in turn. The tune plays while the riders wait to press their buttons.

The computer's rider uses the same rubber band as Rowing's pacer (pacer_rubber_band): its skill rises while it trails.

14 · Kayaking

Fifteen gates down the river

Up strokes forward and down backward, each stroke on the other side of the boat; left and right sweep the paddle to turn the kayak through 16 headings (paddle_push). The hull is four sprites, and when one touches the bank or a rock the kayak stops (bump). Each gate is judged as the kayak leaves it (judge_gate): SUCCESSFUL, or CROSSED MORE THAN ONCE, MISSED GATE, FACED WRONG DIRECTION, or ENTERED FROM WRONG SIDE, and each fault adds 20 seconds (gate_fault). Most gates are passed facing the way the course runs, but gates 6, 10, and 13 are passed facing back toward the start: Zzap!64 called them reverse and upstream gates.

Kayaking: the kayak among rocks in a river, with numbered gates
The river from above. The clock in its sprite is the chip's own time-of-day clock (draw_clock).

The run is timed by CIA 2's time-of-day clock, set for 60 Hz mains, and ends past the finish or at 9:59. The whole river is drawn on the Maps tab.

15 · Swimming

The first game's pool, on the second disk

Side 2 also holds Summer Games' Freestyle Relay and 100 metres Freestyle, the menu's route to the first game's events. Each player presses their button to be ready, then comes MARK, SET, and GO! Joystick right dives; leaving before GO! is a FALSE START, and the third is a FAULT (false_start). In each half of a stroke the button is sampled three times (stroke): one press at the first sample gains 2 speed, while none or all three lose 2. At the far wall left starts a flip turn (start_turn), and the glide under water is longer the better the turn was timed.

Swimming: two swimmers in lanes of a pool, with the clock and lap panel above
The relay. The 100 metres is two lengths, the relay eight, with the next swimmer dived in by the player at each hand-over.

The camera scrolls to follow, and a swimmer left behind is pulled back into view (keep_up). The clock adds a tenth every six frames up to 9:59.9 (clock_tick).

16 · Closing ceremony

Jet pack, blimp, and fireworks

One routine (run_stage) drives eight stages. The sky darkens through nine colours while the floodlights flicker on (sky_colour), a jet-pack flyer crosses and turns (flyer), the flame on the cauldron dies (flame_dies), and the Epyx blimp passes. Fireworks of eight kinds burst at random (new_firework), then the blimp passes again and again, with a banner scrolling along it (banner). Four tunes play in turn, each started when the last has ended (next_tune); Zzap!64 heard Ride of the Valkyries and the 1812 Overture among them.

The blimp over the dark stadium, the flame gone out
The blimp. Its banner advertises Winter Games and Epyx's other games.