A version of the classic 1996 video game Tomb Raider is now running on a compact development board powered by an ESP32-P4 microcontroller. This chip is typically used for controlling smart devices and IoT projects, not for running full-fledged video games. Developer Alejandro Villegas Alonso, who goes by the name alexkid77, has adapted OpenLara, an open-source version of the original Tomb Raider engine. Unlike a PlayStation emulator, this project does not attempt to mimic the console itself but instead runs a version of the game engine specifically tailored to work with the ESP32-P4's capabilities.
The board used, called the ESP32-P4-Function-EV-Board, has two 400 MHz processors, 16 MB of flash memory to store the program, and 32 MB of external memory for running the game. This setup requires careful configuration and is not something that can be accomplished by simply using an old ESP32 microcontroller found in a drawer.
To render the game, the board processes the image at a resolution of 320 x 240 pixels and then scales it up to fit a 1,024 x 600 pixel display. This scaling is handled by the PPA (Pixel Processing Accelerator), a specialized component on the chip that reduces the workload on the main processor. This approach allows the game to run smoothly at around 30 frames per second, which is quite impressive for a device not designed for gaming.
The adaptation includes sound support, the ability to save progress to a microSD card, and a frame rate counter that can be displayed using the F12 key. A USB keyboard is required for gameplay, with arrow keys controlling movement and the spacebar used for jumping. The developer recommends using ESP-IDF, Espressif’s development environment, version 5.4 or newer, to compile and transfer the program to the microcontroller. As a result, this project is more suited for hardware enthusiasts who enjoy working with low-level components.
While OpenLara provides the game engine, the actual levels and graphics from the original Tomb Raider must be added separately to a data folder on the microSD card. Without these files, the game cannot run. The project highlights the creativity of developers in repurposing old engines and hardware, offering new ways to experience classic games on modern, compact platforms.
Tomb Raider Runs on ESP32-P4 Microcontroller Using OpenLara Engine
AI-rewritten from original reportingHow it works
tomb-raideresp32-p4open-sourcegaming-hardwareretro-gamingembedded-systems
Original sources:
- 🇫🇷Korben



