Lesson plan

Build a handheld RPG lesson plan

Make a role playing game for a handheld you wire yourself: a tile map, a hero, dialogue, turn based battles, saves, music and a quest.

3 chapters, 7 lessons, about 7 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

The unit

Objectives and materials

By the end, students can

  • A map of characters in flash, and someone to walk it.
  • Words in flash, flags that open doors, and turns that decide fights.
  • Saves that survive a reset, a score, and the whole quest.

Materials for the whole unit

  • Arduino Uno R3
  • Full-size breadboard
  • Piezo speaker
  • TFT display, 240x320
  • Thumb stick

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 1 h 50 min

A world and a hero

A map of characters in flash, and someone to walk it.

LessonTimeWhat students do
Tile mapsDraw a whole world from ten lines of characters in flash, paint it on a color TFT a tile at a time, and look up any tile under a frame you steer.55 min
  1. A world in characters
  2. Paint time
  3. Look up a tile
  4. Steer the frame
  5. Solid ground
A heroPut Wren on the map and walk her a tile at a time: collisions from the map, a facing direction, and only the two tiles that change repainted.55 min
  1. Meet Wren
  2. Walk
  3. Bump
  4. Over the bridge
  5. The river

Materials

  • Arduino Uno R3
  • Full-size breadboard
  • Piezo speaker
  • TFT display, 240x320
  • Thumb stick

Check for understanding

Each student finishes "A hero" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "The river".

Chapter 2. About 2 h 10 min

Story and battles

Words in flash, flags that open doors, and turns that decide fights.

LessonTimeWhat students do
DialogueGive the elder a voice: lines kept in flash, typed into the panel a word at a time with word wrap, a press to go on, and a story flag that changes the world.65 min
  1. The narrator
  2. Face the elder
  3. Talk
  4. The lantern
  5. Too dark
  6. Into the cave
BattlesTurn based battles: encounters in tall grass, a three item menu on the stick, a damage formula with a dice roll, experience, level ups and a boss.65 min
  1. Into the grass
  2. Fight
  3. Victory
  4. Level up
  5. The Fog Warden
  6. Run away

Materials

  • Arduino Uno R3
  • Full-size breadboard
  • Piezo speaker
  • TFT display, 240x320
  • Thumb stick

Check for understanding

Each student finishes "Battles" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Run away".

Chapter 3. About 2 h 55 min

Finish the game

Saves that survive a reset, a score, and the whole quest.

LessonTimeWhat students do
Save gamesSave the whole hero to the Uno EEPROM at the ember stone, with a magic number, a version and a checksum, and load it again after a reset.55 min
  1. A new game
  2. The ember stone
  3. Eighteen bytes
  4. Press reset
  5. Why not save every step?
MusicScore the game on a piezo: a world theme, a battle loop and a victory jingle, stored as notes in flash and played with tone() while the game keeps running.55 min
  1. The theme
  2. Up an octave and a bit
  3. The game never waits
  4. Battle music
  5. The victory jingle
Project: a short questPlay Emberfold from start to finish: the elder, the meadow, the Fog Warden and the ending, then make the world your own and share it.65 min
  1. Begin
  2. The lantern
  3. The meadow
  4. The Fog Warden
  5. The end
  6. Make it yours

Materials

  • Arduino Uno R3
  • Full-size breadboard
  • Piezo speaker
  • TFT display, 240x320
  • Thumb stick

Check for understanding

Each student finishes "Project: a short quest" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Make it yours".

Your class

Teach this unit as a class

Start a class from this course and its 7 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.