Aug 1, 2008
PyAdventure Release – Game – Source

I blew past the 5 days that I wanted to take to complete this game, but considering the time spent on actually developing it (7 days), through all of the distractions, it still works for me. I’ve been traveling up to Kansas City (on my second trip now), and I spent a week playing phone tag with a company that contacted me for employment. I’ve got to say that it’s really nice that companies are coming after me, instead of just me applying to companies. Unfortunately, things didn’t work out with that interview, but things happen for a reason. It’s just nice that people are finding me, and from what I can tell, they are hitting my new portfolio site.
So, PyAdventure.
It’s an XML based adventure game. I wrote the maps that are composed of tiles. In the script, I run through the files and build objects from them. I don’t look for any files, except for the base file ‘DeathForest.xml’ in the source code. So you could build on, and on and on because the script loads the file you specify in the base file (yes, there is a performance hit, but we’re not dealing with huge maps. Nor do I have the desire to adventure around on a huge map). The code could easily be modified to enable you to initialize a file from a given settings document. You could change the structure of the XML files and write a new adventure game just by changing them. Or you could build a tool to do it for you.
Here is the structure of a tile.
Situation: What happens when I step on this tile?
Start: Does the player start on this tile?
Items: Item on the tile
Object: The ‘actionitem’ means that a player must have that item in order for this object to work. You can link this object to an NPC by specifying the ‘actionlink’ as the npc name.
Npc: Like the object, if an ‘actionitem’ is needed, it will not greet the user.
If you’re interested, feel free to download the game. Try it out, and provide me any critical bugs that you may have found. If you want a spoiler, just look in the map files.
Run PyAdventure.exe from the console for a better experience. Otherwise, the console will close on you when the game ends.
[Game] Download PyAdventure Game
[Source] Download PyAdventure Source Code
[Text File] View Spoiler



