diff --git a/README.md b/README.md index b9f25158..e1619f79 100644 --- a/README.md +++ b/README.md @@ -9,17 +9,28 @@ [![Release](https://img.shields.io/github/v/release/esp-cpp/esp-box-emu?sort=semver)](https://github.com/esp-cpp/esp-box-emu/releases) [![License](https://img.shields.io/github/license/esp-cpp/esp-box-emu)](./LICENSE) +[![Build](https://github.com/esp-cpp/esp-box-emu/actions/workflows/build.yml/badge.svg)](https://github.com/esp-cpp/esp-box-emu/actions/workflows/build.yml) [![Platform: ESP32-S3](https://img.shields.io/badge/platform-ESP32--S3-red)](https://www.espressif.com/en/products/socs/esp32-s3) +[![Web console](https://img.shields.io/badge/web%20console-esp--cpp.github.io%2Fesp--box--emu-blue)](https://esp-cpp.github.io/esp-box-emu/) > A pocket-sized, Game Boy-style retro **emulation handheld** built around the > ESP32-S3-BOX. Drop in a micro-SD card of ROMs and play NES, Game Boy / Color, -> Sega, MSX, and Genesis games — plus a full-speed port of **Doom** — on hardware -> you can 3D print and build yourself. +> Master System / Game Gear, Genesis, MSX and PICO-8 games — plus ports of +> **Doom** and **Dark Forces** — on hardware you can 3D print and build yourself. ![image](https://github.com/user-attachments/assets/209ed9aa-22f0-4ee0-9868-65abb1b64bbc) https://github.com/user-attachments/assets/2d3da6ea-2e80-42c3-bbd6-5a2c59601201 +> [!TIP] +> **Sister project: [tab5-emu](https://github.com/esp-cpp/tab5-emu)**, the +> same launcher, cores and web console on the M5Stack Tab5 (ESP32-P4, 5" +> 1280x720), which adds the Super Nintendo, the Game Boy Advance, ScummVM +> and native ports of Metal Gear Solid, The Phantom Menace and Jedi Knight. +> The two share their emulator cores, web console and USB link as +> submodules, so a fix in one reaches the other. See +> [The esp-cpp handhelds](#the-esp-cpp-handhelds). + **Table of Contents** @@ -27,6 +38,7 @@ https://github.com/user-attachments/assets/2d3da6ea-2e80-42c3-bbd6-5a2c59601201 - [Overview](#overview) - [Emulators](#emulators) - [Gallery](#gallery) + - [The launcher](#the-launcher) - [Quick Start — Play It](#quick-start--play-it) - [Web Console](#web-console) - [Build the Hardware](#build-the-hardware) @@ -35,6 +47,7 @@ https://github.com/user-attachments/assets/2d3da6ea-2e80-42c3-bbd6-5a2c59601201 - [Boxart images](#boxart-images) - [metadata.csv format](#metadatacsv-format) - [Features and Roadmap](#features-and-roadmap) + - [The esp-cpp handhelds](#the-esp-cpp-handhelds) - [References and Inspiration](#references-and-inspiration) - [License](#license) @@ -51,9 +64,9 @@ interface with boxart, save states, and settings. **Highlights** -- 🎮 **Six systems + Doom** — NES, Game Boy / Color, Sega Master System / Game - Gear, Sega Genesis, and MSX 1/2 emulators, plus a full-speed **Doom** port — - all with sound. +- 🎮 **Eight systems and engines** — NES, Game Boy / Color, Sega Master System + / Game Gear, Sega Genesis, MSX 1/2 and PICO-8, plus ports of **Doom** and + **Dark Forces** — all with sound. - 🧬 **Full-speed Genesis** — a custom **dual-core** port of gwenesis splits the emulation across both of the ESP32-S3's cores (CPU + video on one, the sound unit on the other) for full-speed Sega Genesis / Mega Drive *with* audio. @@ -70,9 +83,10 @@ interface with boxart, save states, and settings. - 🔋 **Portable** — 1000 mAh LiPo battery with USB-C charging. - 📳 **Haptics** — LRA haptic feedback (DRV2605), including in-game effects in Doom (weapon fire, taking damage, pickups, and more). -- 🖼️ **Polished UI** — LVGL menus for ROM select (with boxart, over each - console's own theme) and settings (sound, brightness, display scaling, haptics), - shared with tab5-emu. +- 🖼️ **Polished UI** — an LVGL launcher with boxart, save counts and each + console's colors, a console picker, settings (sound, brightness, display + scaling, haptics) and a pause menu, shared with tab5-emu + ([emu-ui](https://github.com/esp-cpp/emu-ui)). - 🌐 **Web console** — plug into a computer and Chrome or Edge offers a control panel: watch and play the screen, manage games and boxart, browse the SD card, change settings, and update the firmware, with nothing to install. @@ -152,6 +166,17 @@ video scaling and save slots; save slots only work while in a mission. ## Gallery +Captured on the device over the USB link (`emulink screenshot`), at the +games' own resolution, scaled up. + +| | | | +|:---:|:---:|:---:| +| Super Mario Bros. 3's world map on the NES core
**NES**: Super Mario Bros. 3 | Link's Awakening DX's opening on the Game Boy Color core
**Game Boy Color**: Link's Awakening DX | Sonic 3's title screen on the Genesis core
**Genesis**: Sonic the Hedgehog 3 | +| Sonic the Hedgehog's first zone on the Master System core
**Master System**: Sonic the Hedgehog | Streets of Rage II's title screen on the Game Gear core
**Game Gear**: Streets of Rage II | Metal Gear 2's opening credits on the MSX core
**MSX**: Metal Gear 2: Solid Snake | +| Doom's first level
**Doom** (PrBoom) | Dark Forces' agent menu
**Dark Forces** (The Force Engine) | Celeste on the PICO-8 core
**PICO-8**: Celeste | + +On the hardware: + ![image](https://github.com/user-attachments/assets/d867d5fa-4c22-42e3-b04f-1edd5288c5d2) ![image](https://github.com/user-attachments/assets/ad892905-37d4-4e16-8d5f-a7ff8d2a2c52) ![image](https://github.com/user-attachments/assets/b141daab-2cda-481c-98c2-980b012f177e) @@ -162,6 +187,32 @@ https://github.com/esp-cpp/esp-box-emu/assets/213467/3b77f6bd-4c42-417a-9eb7-a64 https://github.com/esp-cpp/esp-box-emu/assets/213467/a3d18d03-c6a1-4911-89d1-e18119e8cc03 +## The launcher + +

+ The esp-box-emu launcher: scrolling down the NES games, each with its boxart and save count, then right through the consoles (Game Boy, Game Boy Color, Master System), each in its own colors + The console picker: a tile per console in its colors + The settings screen: volume, mute, brightness, video, resume last save, haptic, test haptic and Genesis CPU +

+ +- **Games by console**: the list is grouped by console, and each console + has its own colors and background. Left / right jump to the previous / + next console. +- **Save counts**: a save badge after each game's name shows how many save + states it has. +- **Console picker**: tap the console chip (or press X) for a grid of the + consoles, to show only one console's games or all of them again. + `emulink filter ` does the same over USB. +- **Boxart and names** come from `metadata.csv` on the card (see + [ROMs and SD Card Setup](#roms-and-sd-card-setup)). Per-console art can go + in `boxart/consoles/.jpg`. +- **A** or **Start** plays the selected game; **B** or **Select** opens the + settings: volume, mute, brightness, video scaling (original, fit, fill), + haptics, the SD card as a USB drive, resume last save and the Genesis CPU + overclock. +- **Pause menu** in game (the touch button or Start+Select): resume, save and + load up to 5 slots with screenshots, reset, quit, and the same settings. + ## Quick Start — Play It Already have the add-on hardware (or an ESP32-S3-BOX you want to flash)? You @@ -453,7 +504,7 @@ A checklist of what's implemented and what's still in progress. filter ` over USB) - [x] LVGL settings menu (volume, video, haptics) and in-game pause menu - [x] GUI data (titles + boxart) loaded from the [metadata file](./metadata.csv) -- [x] The launcher and pause menu screens shared with tab5-emu ([emu-ui](https://github.com/esp-cpp/emu-ui)): console themes, a console picker, button hints +- [x] Launcher and pause menu shared with tab5-emu ([emu-ui](https://github.com/esp-cpp/emu-ui)), previewed on a desktop **Video and audio** @@ -477,6 +528,21 @@ A checklist of what's implemented and what's still in progress. - [x] Control-board schematic / layout: joystick / d-pad / buttons (via I²C I/O expander + ADC), battery, charger, DRV2605 haptics, micro-SD, boost converter, and USB 2.0 passthrough from USB-C - [x] Case CAD in the GBC footprint: USB-C port, micro-SD slot, Start/Select, ABXY, and D-pad in familiar locations +## The esp-cpp handhelds + +esp-box-emu and [tab5-emu](https://github.com/esp-cpp/tab5-emu) are one +project on two devices. Both are built on [ESPP](https://github.com/esp-cpp/espp) +and share the emulator cores, the USB link, `emulink` and the web console. + +| | **esp-box-emu** | **[tab5-emu](https://github.com/esp-cpp/tab5-emu)** | +|---|---|---| +| Device | [ESP32-S3-BOX / BOX-3](https://github.com/espressif/esp-box) in a 3D-printed Game Boy Color style shell with a custom PCB | [M5Stack Tab5](https://docs.m5stack.com/en/core/Tab5), off the shelf | +| Chip | ESP32-S3, 2× Xtensa LX7 @ 240 MHz, PSRAM | ESP32-P4, 2× RISC-V @ 360 MHz, 32 MB PSRAM | +| Screen | 2.4" 320x240 touch | 5" 1280x720 touch | +| Controls | d-pad, A / B / X / Y, Start / Select, haptics | touch gamepad, USB gamepads / keyboards / mice | +| Systems | NES, Game Boy / Color, Master System / Game Gear, Genesis, MSX, PICO-8, Doom, Dark Forces | everything on the left, plus SNES, GBA, ScummVM and native MGS, TPM and Jedi Knight | +| Web console | [esp-cpp.github.io/esp-box-emu](https://esp-cpp.github.io/esp-box-emu/) | [esp-cpp.github.io/tab5-emu](https://esp-cpp.github.io/tab5-emu/) | + ## References and Inspiration **Other NES emulators** diff --git a/images/screenshots/dark-forces.png b/images/screenshots/dark-forces.png new file mode 100644 index 00000000..d290d1c3 Binary files /dev/null and b/images/screenshots/dark-forces.png differ diff --git a/images/screenshots/doom.png b/images/screenshots/doom.png new file mode 100644 index 00000000..bffb7674 Binary files /dev/null and b/images/screenshots/doom.png differ diff --git a/images/screenshots/gbc-links-awakening.png b/images/screenshots/gbc-links-awakening.png new file mode 100644 index 00000000..0bc81782 Binary files /dev/null and b/images/screenshots/gbc-links-awakening.png differ diff --git a/images/screenshots/genesis-sonic3.png b/images/screenshots/genesis-sonic3.png new file mode 100644 index 00000000..f59d2bb9 Binary files /dev/null and b/images/screenshots/genesis-sonic3.png differ diff --git a/images/screenshots/gg-streets-of-rage-2.png b/images/screenshots/gg-streets-of-rage-2.png new file mode 100644 index 00000000..ad5e48c7 Binary files /dev/null and b/images/screenshots/gg-streets-of-rage-2.png differ diff --git a/images/screenshots/launcher.gif b/images/screenshots/launcher.gif new file mode 100644 index 00000000..f7a2ae25 Binary files /dev/null and b/images/screenshots/launcher.gif differ diff --git a/images/screenshots/launcher.png b/images/screenshots/launcher.png new file mode 100644 index 00000000..ca106dca Binary files /dev/null and b/images/screenshots/launcher.png differ diff --git a/images/screenshots/msx-metal-gear-2.png b/images/screenshots/msx-metal-gear-2.png new file mode 100644 index 00000000..fdda986e Binary files /dev/null and b/images/screenshots/msx-metal-gear-2.png differ diff --git a/images/screenshots/nes-smb3.png b/images/screenshots/nes-smb3.png new file mode 100644 index 00000000..7997cece Binary files /dev/null and b/images/screenshots/nes-smb3.png differ diff --git a/images/screenshots/picker.png b/images/screenshots/picker.png new file mode 100644 index 00000000..8e182e4a Binary files /dev/null and b/images/screenshots/picker.png differ diff --git a/images/screenshots/pico8-celeste.png b/images/screenshots/pico8-celeste.png new file mode 100644 index 00000000..03d19d6c Binary files /dev/null and b/images/screenshots/pico8-celeste.png differ diff --git a/images/screenshots/settings.png b/images/screenshots/settings.png new file mode 100644 index 00000000..f1fa1492 Binary files /dev/null and b/images/screenshots/settings.png differ diff --git a/images/screenshots/sms-sonic.png b/images/screenshots/sms-sonic.png new file mode 100644 index 00000000..3a76b532 Binary files /dev/null and b/images/screenshots/sms-sonic.png differ