"ScriptTD is an open source project that allows anyone to easily create a new Tower Defense game for the Windows Phone 7 platform, without any prior programming knowledge. The project lets you create new art & audio and edit some XML files to bring it all together into a polished game without having to write all of the code required to make the game work.
If you are looking to just create a game without coding, this article isn’t for you, head to http://scripttd.codeplex.com and follow the instructions there to get started.
Extending the Code
You can easily get away with editing the XML and adding new assets to make a whole new Tower Defense game with ScriptTD as it is. If you know a bit of C#, however, you can take it further and extend the game to make a unique creation. The entire source code for the project is available for free on Codeplex (see links above), so feel free to download that and change any part of it that you want.
There are three key areas that are easy to change in ScriptTD:
- The GUI
- The Game Screens (Menus)
In this article we are going to focus on the main one you might want to edit the weapons.
You now know how to add a completely new weapon type to the game, which will let you add a unique touch to your Tower Defense game. There are other areas in the game that you can extend in code, and there is a lot of power in the XML definition files. So if you are interested in learning more, browse the code and the documentation at the Codeplex link at the start of the article. Play around with the behavior, create a new tower in XML, and tweak the values. If you find the sound annoying you can add a delay in between changing targets, or completely remove the sound from the XML. Make whatever you want using the tools available—turn it into something you made. Remember, the tools are free and with some creativity you can make a really great game
"I’m a big fan of Tower Defense games and I’ve always wanted to build my own. The problem is I’m better at graphics than programming. Script TD was born as a way to abstract the programming and create a Tower Defense engine that allows anyone to create a TD game with some simple scripting.
The Script TD project contains a Visual Studio project and a number of directories containing the engine, the XML that constructs the game, and the graphics. After extracting the project you can follow along with me as I walk you through each of the files and directories and explain how they work.
By changing the graphics and the attributes/behaviors of the maps, towers, and creeps, you too can make your own Tower Defense game and even sell it in the Windows Phone Marketplace. If you’re also a developer you can extend Script TD to include new features and additions.
So let’s get started.
Names and assumptions are a funny thing.
If you've always wanted to build a game, dig the tower defense category, would dig seeing it on a Windows Phone 7, but never knew where to start, this is the project for you!