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.
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.
A world and a hero
A map of characters in flash, and someone to walk it.
| Lesson | Time | What 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 |
|
| 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 |
|
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".
Story and battles
Words in flash, flags that open doors, and turns that decide fights.
| Lesson | Time | What 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 |
|
| 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 |
|
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".
Finish the game
Saves that survive a reset, a score, and the whole quest.
| Lesson | Time | What 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 |
|
| 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 |
|
| 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 |
|
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".
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.