Computers & Mobile

simcity_20080112.jpg
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.

More:

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

6 thoughts on “Micropolis: Sim City open sourced

  1. 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. Ports to other platforms “at some point”? My kids just spent all weekend playing SimCity on their XO laptops.

  3. 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.

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

View more articles by Phillip Torrone