Using C# for game scripts, part 2

In my last post I showed you how to get scripts to be compiled dynamically at run-time. This makes things super easy, but I left you guys hanging on two fronts. I didn’t show you how to compile multiple scripts into the same assembly. I totally spaced on the fact that this won’t work when…

7

Using C# for game scripts, part 1

Alright, today I’m going to continue where my previous posts (Loading Map/Game Data from XML) left off. Those posts showed you how to get game data into your game, but how do you define game behavior? Simple! With scripts. Now, there are lots of solutions for scripting available with one of the mose popular being…

4

Loading Map/Game Data from XML, part 3

So far we have the backing map.xml file, we have the classes that we are going to use to store the data in our game, now all we need to do is to parse the XML file and create the instances. We could have tried to use the XML serialization support that is built into…

1

Loading Map/Game Data from XML, part 2

Alright, in the last part we dealt with creating the basic map file. This time around we’re going to look at the classes that hold the data that we will eventually be reading in. The first class we’re going to be looking at is the Map class. 1: public class Map { 2: private Vector2D…

1

Loading Map/Game Data from XML, part 1

Over at 3D Buzz (http://www.3dbuzz.com/) there is an XNA class that is currently going: XNA 101. The class is currently going through the process of creating a text-based adventure game as it’s “Hello World!” app – ambitious for beginners yes, but way more interesting. Of course, this class is geared toward beginners so all of…

1