Micropolis: Sim City open sourced

Computers & Mobile

Jason @ Hackszine writes –

Don Hopkins has released a GPLed version of the original Sim City, cleaned up and renamed to the original title, Micropolis:

The “MicropolisCore” project includes the latest Micropolis (SimCity) source code, cleaned up and recast into C++ classes, integrated into Python, using the wonderful SWIG interface generator tool. It also includes a Cairo based TileEngine, and a cellular automata machine CellEngine, which are independent but can be plugged together, so the tile engine can display cellular automata cells as well as SimCity tiles, or any other application’s tiles.

The key thing here is to peek inside the mind of the original Maxis programmers when they built it. Remember, this was back in the day when games had to fit inside of 640k so some “creative” programming techniques were employed. SimCity has been long a model used for urban planning and while it’s just a game, there are a lot of business rules, ecosystem modeling, social dependencies, and other cool stuff going on in this codebase. It may not be pretty code but it’s content sure is interesting to see.

The source will compile for X86/Linux systems, and we;re betting we’ll see ports to other platforms at some point. If you’re on a Mac and just want to play the game, just run a copy of Ubuntu in an emulator like QEMU and install the binary there.


  • SimCity Source Code Released to the Wild – [via] Link
  • Micropolis Downloads – Link

6 thoughts on “Micropolis: Sim City open sourced

  1. Tom says:

    Pretty code is in the eye of the beholder!
    Today’s young ‘uns never had to learn by necessity the skill required to write efficient code.
    In all honesty, we may seldom be constrained by such memory limitation today, but I still find efficient programming “beautiful”.

  2. desiredusername says:

    Ports to other platforms “at some point”? My kids just spent all weekend playing SimCity on their XO laptops.

  3. isforinsects says:

    Not only did Don update the code, he added a function set for cellular automata. Expect to see some interesting hacks to come out of Micropolis.

Comments are closed.

Discuss this article with the rest of the community on our Discord server!

current: @adafruit - previous: MAKE, popular science, hackaday, engadget, fallon, braincraft ... howtoons, 2600...

View more articles by Phillip Torrone
Maker Faire Bay Area 2023 - Mare Island, CA

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 15th iteration!

Buy Tickets today! SAVE 15% and lock-in your preferred date(s).