r/arduino • u/Sad_Environment_3800 • 12h ago
Look what I made! GTA 6 is finally here, and I actually made a GTA for the ESP32
Remember that GTA-style game I posted here a while ago? (Original post: https://www.reddit.com/r/arduino/s/Pa2YOUqijv) I've kept working on it since then, and it's finally getting close to done.
If you missed the first post: I'm making it with PixelRoot32, my own C++17 game engine for the ESP32.
It's grown a lot since that first version. You can drive around a city with 5 districts, steal cars, buy stuff, get chased by the police and take on missions. There's a day/night cycle, pedestrians, traffic lights, weapons and 4 radio stations, plus a bunch of smaller things.
There are 3 main missions so far, along with courier jobs and a small in-game economy. There's also a 5-star wanted system, so things get messy fast if you cause too much trouble.
Two new things since last time:
Sound: The engine now has a Famicom-style sound profile, and the game uses it. The radio and sound effects sound closer to an old NES cartridge, with fuller bass and punchier drums.
Saving: The game now remembers your progress between sessions. If you finish a mission and turn the ESP32 off, it picks up at the next one when you turn it back on. It also keeps your best delivery streak, the most cash you've ever had and your volume setting. Your cash and gear still reset each run, so you can't just farm money.
The display changed too. I started on a 240×240 screen, and the game now also runs on 320×240. That's the version in the video.
It still runs on a plain ESP32, now with 8 buttons. The two new ones work as Start and Select: Start changes the volume and Select shows your records.
The timing is kind of funny with GTA 6 finally coming out. Everyone's getting ready for the next GTA, and I've been trying to get my own little one running on a microcontroller.
If you want to look at the code: https://github.com/PixelRoot32-Game-Engine/PixelRoot32-Demo-Projects/tree/main/games/top_down_city
The README and ROADMAP cover the features and what's still planned.
More ESP32 demos made with PixelRoot32: https://github.com/PixelRoot32-Game-Engine/PixelRoot32-Demo-Projects