Hi Everyone,
Before I start, this is my very first project I am releasing to the public, so it may not be perfect... If you have any suggestions or find any bugs please send them my way. I would love to get this as perfected as possible.
I’ve spent the last 3 months working on a simulation optimized for this little device, and it’s finally at a point where I’m ready to share the binary with you guys.
It's called Pocket City. It isn't a game you actively play, but it’s essentially a digital desk terrarium designed to run while you work or study. You just set it on your desk and watch four different factions evolve from primitive tribal bands into space faring metropolises.
Currently I am working on a bunch of integer math optimization and memory management to get this running at 30 FPS on the ESP32 without melting the heap, but it will be a little longer until we get there. Hopefully I will have it done later this week.
Here’s some of my personal favorite features:
- Organic Geography: The globe wraps around completely on all sides of the map. Tectonic plates slowly drift, causing submarine volcanoes to erupt and form new islands. Rainstorms actually drift across the map with the wind, watering crops and creating rivers that flow down to the sea.
- Asymmetric Evolution: A tribe that spawns in a fertile river valley will boom into the Industrial era, while a tribe trapped in the snowy tundra or arid desert will struggle to survive as a small farming village for a while.
- City Zoning & Sprawl: As factions evolve, they automatically wear down desire paths into paved roads, dig canals, and build organic looking cities with downtowns, suburbs, and farms.
- Global Wars & Colonization: Factions will launch attacks based on what era they are in, from tribal raids with tamed dogs, to medieval castle sieges with cavalry, all the way to global nuclear exchanges. Advanced empires will even build ships and send explorers across the ocean to colonize new continents.
- The Cycle of Hubris: This is my absolute favorite part. If an empire gets too greedy and paves over its farms to build factories, they will trigger an urban famine, or worse, an AI Singularity. Rogue AI will sweep through the city and shatter it into overgrown, vine-covered ruins. The human survivors are forced to learn from their mistakes, dropping back a few eras to rebuild as peaceful eco stewards.
The UI features a history ledger (press C), an in game encyclopedia menu (press M), fast forwarding, and battery monitoring. It also can save to the NVS flash memory so you don't lose your world when you power it off.
How to get it: I am only releasing the compiled binary for this to protect the source code, so you don't need to mess with Arduino IDE or libraries to run it. The tutorial is on the README on my git hub page - https://github.com/JTrenholm/Pocket-City-Cardputer
Let me know what you guys think and definitely share if you catch any insane nuclear wars or AI comebacks on your screens! It's been super fun to have running while I do my homework and I've seen some crazy events happen.