← Back to slides

Print double-sided, or choose Save as PDF in the print window to download it. Each section says which slide it goes with; the slide number shows in the corner of the slides. Teachers: log in for the answer key.

Game Developers · Lesson 3 · Grades 6–8

Guided Notes: Carol Shaw

River Raid, 4 kilobytes, and a river grown from a seed

Video game design and programming · American (grew up in Palo Alto, California) · born 1955

Name
Date
Class

Follow along as your teacher presents. Fill in each section when its slide is on the screen.

Slide 1 Carol Shaw

Slide 2 Good at math, period

Carol Shaw was born in blank 1 and grew up in Palo Alto, California. She won math contests. Still, she remembers people saying, "Gee, you're good at math — for a girl." Her answer: "Why shouldn't girls be good at math?"

She first programmed a computer in high school, then earned a degree in electrical engineering and computer science at UC Berkeley in blank 2. In 1978 Atari hired her as a microprocessor software engineer. The Strong National Museum of Play calls her the first widely recognized female game designer and blank 3. Her 3-D Tic-Tac-Toe let players choose among eight difficulty levels.

Slide 3 The problem of 4 kilobytes

In 1982 Shaw joined blank 4 and created River Raid, a vertically scrolling shooter. You pilot a jet up a river, steering between islands and banks and refueling over fuel depots that get scarcer as you go.

The Atari 2600 had only 128 bytes of RAM, and River Raid's blank 5 held 4 kilobytes of ROM. As Shaw put it, "you don't have space to store a lot of graphics." So she split the river into sections 32 lines tall. For each section, a pseudorandom number generator decided the next width.

Slide 4 Her story

Write what happened in each year.

YearWhat happened
1955Write your answer
1977Write your answer
1978Write your answer
1979Write your answer
1982Write your answer
1983Write your answer
2017Write your answer

Slide 5 Quick check

Why couldn't River Raid just store a picture of its whole river? Circle one.

  1. A The Atari 2600 could not display the color blue
  2. B Activision wanted each player to get a new river
  3. C The 4 KB cartridge had far too little room
  4. D The joystick could only steer on short maps

Why is that the right answer?

Slide 6 Zoom into the Atari 2600

As we zoom in, write what you learn about each spot.

SpotWhat I learned
Cartridge slotWrite your answer
RAM and I/O chipWrite your answer
The CPUWrite your answer
The TIAWrite your answer
Joystick portWrite your answer

Slide 7 From a seed to a river

Write one detail for each card.

CardThe detail
SeedWrite your answer
RuleWrite your answer
WidthWrite your answer
Same river every timeWrite your answer
Long before it repeatsWrite your answer

Slide 8 Be the generator

  1. This is a toy 4-bit LFSR, simpler than River Raid's, but it works the same way. Start with the seed 1000.

  2. Step 1: Look at the two leftmost bits. If they are the same, the new bit is 0. If they are different, the new bit is 1.

  3. Step 2: Shift every bit one place left, dropping the leftmost bit, and write the new bit on the right.

  4. Step 3: Repeat until you have 8 new numbers.

  5. Step 4: Use each number's rightmost bit to draw a river: 1 means one square wider, 0 means one square narrower.

Slide 9 Check your generator

Using the toy rule (compare the two leftmost bits, shift left, write the new bit on the right), what number comes after 0100? Circle one.

  1. A 1000
  2. B 1001
  3. C 0010
  4. D 0101

Show your work:

Slide 10 Stored or generated?

Sort each item: is it stored in River Raid's 4 KB ROM, or generated while you play? Check one box for each.

ItemStored in the cartridge ROMGenerated while you play
The program code Shaw wrote
The width of the next river section
The shape of the player's jet
The generator's next number
The seed the generator starts from
The layout of the river far ahead

Slide 11 Quick check

Every River Raid game begins with the same river. What is the best explanation? Circle one.

  1. A Shaw drew the full river and stored it
  2. B The cartridge saves the last player's river
  3. C The joystick sends the same signal each game
  4. D The generator always starts from one seed

Why is that the right answer?

Slide 12 Jobs like hers

For each job, write what they do.

JobWhat they do
Game programmerWrite your answer
Game designerWrite your answer
Embedded software engineerWrite your answer
Game historian or archivistWrite your answer

Slide 13 Think, pair, share

River Raid's river is the same every game because it always starts from the same seed. If you were the designer, would you make the world the same every time, or different every time? What does each choice do for the player?

Think: my idea before we talk

Sentence starters: “I would make it the same every time because ...”“I would make it different every time because ...”“A same-every-time world helps players ..., but ...”“One way to get both would be ...”

Pair: something my partner said

Slide 14 A river from a seed

Carol Shaw grew a river from one small number and a simple rule. Next time something will not fit, ask whether you can generate it instead of storing it.

One thing I learned today:

One question I still have:

How could Carol's work connect to my life or community?