← 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 9–12

Guided Notes: Carol Shaw

Procedural generation, LFSRs, and designing under a 4 KB constraint

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 An engineer in the home console era

Carol Shaw, born in 1955, grew up in Palo Alto and earned a degree in electrical engineering and computer science at UC Berkeley in 1977. Atari hired her in 1978 as a microprocessor software engineer. The Strong National Museum of Play calls her the first widely recognized female game designer and blank 1.

Her 3-D blank 2 fit in a 2 KB blank 3. Rather than a fixed lookup table, which was too big and too predictable, she used game-tree search with eight difficulty levels, each looking one move further ahead. Atari's CEO joked that she could make cosmetics and decorating cartridges; colleagues came to rank her among the best programmers of the 6502 chip family.

Slide 3 River Raid: trading memory for computation

At Activision in blank 4, Shaw built River Raid, a vertically scrolling shooter in which a jet flies up a river, refueling at depots that grow scarcer. She chose vertical scrolling because the 2600 could scroll smoothly one line at a time.

The constraints were severe: 4 KB of cartridge blank 5 for all code and graphics, and 128 bytes of blank 6. Storing a long river was impossible. Instead she divided the river into 32-line sections, and a pseudorandom number generator chose each next width. That generator was a linear-feedback shift register seeded with a fixed value, so the river is identical every game yet runs a long time before repeating.

Slide 4 Career and context

Write what happened in each year.

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

Slide 5 Anatomy of an LFSR

Write one detail for each card.

CardThe detail
RegisterWrite your answer
Taps and feedbackWrite your answer
SeedWrite your answer
PeriodWrite your answer
CostWrite your answer

Slide 6 Apply it: period of an LFSR

A maximal-length 4-bit LFSR runs from a nonzero seed. How many distinct states does it visit before repeating, and which state never appears? Circle one.

  1. A 16 states; 1111 never appears
  2. B 15 states; 0000 never appears
  3. C 8 states; 1000 never appears
  4. D 15 states; 1111 never appears

Show your work:

Slide 7 Apply it: memory budget

Suppose a designer stored River Raid's river instead, using 1 byte per 32-line section. A strong player crosses 2,000 sections in one long game. About what share of the 4,096-byte ROM would that map alone take? Circle one.

  1. A About 5%
  2. B About 25%
  3. C About 49%
  4. D More than 100%

Show your work:

Slide 8 Zoom in: the hardware budget

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

SpotWhat I learned
Cartridge slotWrite your answer
CO10750: RAM + I/OWrite your answer
CO10745: the CPUWrite your answer
CO10444: the TIAWrite your answer
Controller portWrite your answer

Slide 9 Apply it: choosing a generator

Why is an LFSR a good fit for generating River Raid's river on the Atari 2600? Circle one.

  1. A It is deterministic and needs only a few bits of state
  2. B It produces truly random values from electrical noise
  3. C It compresses a stored river map into fewer bytes
  4. D It runs on the TIA chip, leaving the CPU free

Why is that the right answer?

Slide 10 Take a side

River Raid fit an endless-feeling river into 4 KB because it had to. Today's games can use thousands of times more memory. Resolved: tight technical constraints lead to more creative game design than abundant resources do.

My side: ☐ Agree ☐ Disagree

My strongest reason, with evidence from the slides:

The best argument for the other side, and my response:

Slide 11 Pathways from here

For each job, write what they do and one step to get there.

JobWhat they doOne step to get there
Game engine programmerWrite your answerWrite your answer
Technical designer, procedural contentWrite your answerWrite your answer
Embedded software engineerWrite your answerWrite your answer
Communications or security engineerWrite your answerWrite your answer

Slide 12 Generate, don't store

Carol Shaw turned a 4 KB limit into a river that players chased for hours. Constraints are not only obstacles; they can point you toward a better idea.

One thing I learned today:

One question I still have:

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

Challenge: Go further: write a short program (any language) for an 8-bit LFSR. Confirm it visits 255 states from a nonzero seed. Then use it to generate and print a text river 40 rows long, with width set by the low bits of each state. Change the seed and compare rivers. Finally, find one modern game that lets players share a world seed, and explain in a paragraph what the seed controls.