Thursday, September 28, 2006

Source Code Extravaganza (+Extra)

Today is the day for a very special exclusive event: I'm going to provide the full source code to every game that I've talked about on this blog. That's Extinguish, Zi, Vertical, RRRRRPG, Zombie City 2, Zombie City 3, and Zombie City Tactics.

For those who wish to skip all my incoherent ranting and get to the files, you can download all seven of them in one dandy package right here:

7 Games Source Code

All games but one are coded in C++ (Zi is in Python), using OpenGL and SDL for graphics. If you're not the type to be interested in programming, skip to the end and there's a picture.

Okay, now to talk about each one in a little more (self-depreciating) detail (in roughly chronological order):

Zombie City II
This is the oldest program in the lot, and it shows. Biggest uncool thing here is the lack of a dedicated Display object. If you want to change the visual scheme of the game, then you have to go shuffling around in half a dozen different files. What a pain!
I'm rather fond of the AI code here, even if it is VERY closely tied to the original Zombie Infection Simulator's AI code. Also note: some of the map-drawing functions used here will also be used in all future Zombie City games!

Another old one, still no Display object. Pretty crude code overall - all special techniques (and virtually everything else) are hard-coded. Not much to talk about here.

Zombie City III
Same problems as the previous entries, but now with a ludicrously complex lighting algorithm! Hit detection is also handled horribly, too - every being checks its distance from every other being every frame. If (when) I make the next non-grid-based Zombie City, I'll definitely improve on this.

Ahh, the ill-fated NaViGaWriMo project. This only got to version 0.1, and it is very heavily based on the ZC3 code, and it crashes pretty frequently, but I am including it in here for posterity's sake.

This one is a little bit more elegantly coded than most of the above projects. Included is my very own hand-coded Sprite class, simple but it works. Also look within for alarmingly complex collision detection code!

This project is particularly unique in being the only one not coded in C++. It is, in fact, coded in Python, and coded pretty awkwardly at that. I was trying to cram Python into my C++-shaped programming mind, and this is the result. Works... mostly!

Zombie City Tactics
And this brings us to my latest creation. Coded decently well all around, no huge complaints. Zombie Lord code a tad buggy, and my implementation of the A* Algorithm is wince-worthy. Also packaged is ZCTEDIT, a simple program I used to create the 100 maps packaged with the game.

And that's that. All .zip files come with all .DLLs and data files required to compile and run the program. Recently, I've been listening to my CompSci professor rave about how great Scheme is, and it sounds pretty interesting. After this is all over, I may try to make a game in it.

Feel free to use this code to make your own games/mods/whatever, under two conditions: Credit me for my work, and send me a link to it so I can check it out.

On an almost-but-not-quite-entirely unrelated note, I recently recieved the first ever piece of Zombie City Survivors fanart, from artist Mike Yi! Check it out:

Ajax Turtledove: The Fanart

Lookin' good, Ajax!


Geca said...

Hi, can you disponibilize the source code of Phoenix 2X ? My email is


Anonymous said...

buy products wholesaleThis phenomenom is typified by China Wholesalersthe rise ofbusiness. Incredible range of products available with China Wholesale “Low Price and High Quality” not only reaches directly to their target clients worldwide but also ensures that wholesale from china from China means margins you cannot find elsewhere and China Wholesale will skyroket your profits.china wholesale productsbuy china wholesalewholesale chinawholesale productsbuy products

Anonymous said...

cell phones
mobile phone
cheap cell phones wholesale

Adi said...

Oes Tsetnoc one of the ways in which we can learn seo besides Mengembalikan Jati Diri Bangsa. By participating in the Oes Tsetnoc or Mengembalikan Jati Diri Bangsa we can improve our seo skills. To find more information about Oest Tsetnoc please visit my Oes Tsetnoc pages. And to find more information about Mengembalikan Jati Diri Bangsa please visit my Mengembalikan Jati Diri Bangsa page and other update like as Beratnya Mengembalikan Jati Diri Bangsa, Mengembalikan Jati Diri Bangsa di perpanjang and Jangan Berhenti Mengembalikan Jati Diri Bangsa. Thank you So much.

Oes Tsetnoc | Lanjutkan Mengembalikan Jati Diri Bangsa

pitt brid said...

Ralph Lauren (Ralph Lauren) Brand Identity:

1. Polo logo: This is Lauren (Ralph Lauren) the most famous symbol, selected from the Ralph Lauren Polo brand aristocratic LOGO, you can associate the origins of clothing he designed.

2.POLO shirt: by Lauren (Ralph Lauren) created by polo shirts, long and short in front of Yibai is playing polo for the charge when the forward movement and design.

3. Cotton long-sleeved shirt: This is almost polo ralph lauren Safe for men and women of classic style to go with a formal suit, narrow skirt, very American style.

4. American flag logo: cowboy wear the best expression of American spirit, so polo ralph lauren outlet online to represent the United States flag.

◆ POLO (Ralph Lauren) Outlet Website:

Susan said...

What are some of the cheapest places to travel to in the world? From Asia to Africa and Europe, Things to do 's got budget breakdowns for the cheapest places.