SimCity has just been released as free software under the GPL version 3 license (though the name has been changed to Micropolis for trademark reasons; it was the original working title). This was precipitated by the inclusion of SimCity on the One Laptop Per Child XO machines, but no reason the kids should have all the fun. Can't wait to see the SimCity hacks that emerge now:
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.
In any case, it's out there for you to grab and have fun with. It was originally written in C and of course is old (created before 1983 which is ancient in Internet time). Don spent a lot of time cleaning the code up (including ANSIfying it, reformatting it, optimizing, and bullet-proofing it) as best he could. Don ported the Mac version of SimCity to SunOS Unix running the NeWS window system about 15 years ago, writing the user interface in PostScript. A year or so later he ported it to various versions of Unix running X-Windows, using the TCL/Tk scripting language and gui toolkit. Several years later when Linux became viable, it was fairly straightforward to port that code to Linux, and then to port that to the OLPC.
BB pal Mitch Altman informs us that he’s ceased manufacturing on his marvelous invention the TV-B-Gone, a keychain remote control that turns off any television with a push of the button. It’s great fun in sports bars, airports, restaurants, and wherever else there’s an idiot box that annoys you! Grab one now because when they’re […]
Graham Dunning made this fantastic techno music-making contraption in which a DJ turntable triggers a variety of mechanical percussive sounds that are fed through effects boxes. Incredible!
British maker and video host Colin Furze dug up his backyard and built a fantastic underground bunker under his lawn to save himself from the apocalypse or at least hide out and play videogames, rock out on his drum kit, and chow down on canned goods. “There are more things to add such as air […]
Store more on your Mac without making a scene thanks to this microSD memory card adapter. Compatible with MicroSD, MicroSDHC, and MicroSDXC, HyperDrive sits unnoticeably inside your machine without any protruding parts getting your way. Store everything from documents, movies, music, and photos, to Time Machine backups without spending major cash on cloud storage.Instantly expands […]
Carrying this EDC card is like slinging around a handheld toolbox wherever you go. Its minimal design is small enough to fit in your wallet’s billfold, and it’s TSA-compliant so you’ll never leave it behind. It’s got hex wrenches, metric and imperial rulers, flathead and Phillip’s screwdrivers, and a bottle opener so that you’re ready […]
Today only take an additional 15% off the below drones today using coupon code: DRONE15 at checkoutThe Code Black is our top-selling drone of all time—and for good reason. This powerful, palm-size drone is not only insanely fun to fly, but can capture some serious video footage from up above. With a flight time of […]