Source: https://mokxi.com/learn/path/build-handheld-rpg
Updated: 2026-11-20

All paths

# Build a handheld RPG

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.

Arduino Uno R3 Free 7 lessons 7 h 3 chapters 2,621 XP Maker · Advanced +250 XP

0 of 7 done

Start the course free Tile maps Lesson plan for teachers

What you will build

## 3 projects, built step by step

7 lessons in 3 chapters, about 7 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

### A hero

Put 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.
Open it in the simulator

Chapter 2 project

### Battles

Turn 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.
Open it in the simulator

Chapter 3 project

### Project: a short quest

Play Emberfold from start to finish: the elder, the meadow, the Fog Warden and the ending, then make the world your own and share it.
Open it in the simulator

The map

## Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

## A world and a hero

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

Open 250 XP

### Tile maps

Draw 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.

0 of 5 steps

Start What is in it

Project Locked 500 XP

### A hero

Put 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.

0 of 5 steps

4 questions, graded as you go.

Chapter 2

## Story and battles

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

Locked 288 XP

### Dialogue

Give 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.

0 of 6 steps

Project Locked 576 XP

### Battles

Turn 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.

0 of 6 steps

4 questions, graded as you go.

Chapter 3

## Finish the game

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

Locked 227 XP

### Save games

Save 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.

0 of 5 steps

Locked 250 XP

### Music

Score 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.

0 of 5 steps

Project Locked 530 XP

### Project: a short quest

Play Emberfold from start to finish: the elder, the meadow, the Fog Warden and the ending, then make the world your own and share it.

0 of 6 steps

4 questions, graded as you go.

Syllabus

## Every lesson in the course

All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

### A world and a hero

- Tile maps Draw 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.
- A hero Put 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.

Chapter 2

### Story and battles

- Dialogue Give 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.
- Battles Turn 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.

Chapter 3

### Finish the game

- Save games Save 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.
- Music Score 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.
- Project: a short quest Play Emberfold from start to finish: the elder, the meadow, the Fog Warden and the ending, then make the world your own and share it.

Keep going

## The next course on your track

Build a handheld RPG is part of the maker track, a ladder of courses from zero to expert.

Next course

### Build a hexapod walker

Six legs, twelve servos, real gaits: leg geometry, servo maps and calibration, a current budget, tripod, ripple and wave gaits with their support polygons, turning, terrain and a walking demo.
Open the next course

Track

### Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.
See every course on the track

Kits

## Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

### Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kit

Questions

## About Build a handheld RPG

Is Build a handheld RPG free?

Yes. All 7 lessons of Build a handheld RPG are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a handheld RPG take?

About 7 hours: 7 lessons in 3 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: A hero, Battles and Project: a short quest.

Where do I start?

With "Tile maps", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
