Setting up an Object Framework
Tutorial 2
This entry was posted
on Wednesday, September 17th, 2008 at 12:10 pm and is filed under XNA Tutorials.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Hey Mike, can you add to the tutorial how you are organizing all of your source in the engine and demo projects? In this tutorial when you are describing the object framework you don’t state what source files the code should be in, existing one or a new cs file.
I downloaded the svn source so I can see that you put some in their own cs files even in their own directories.
BTW, was the svn source created with VS2008? I can’t open it with VS2005
Yes, all projects have been updated to VS2008
I am also confused as to where these code snippets are supposed to be going. Do I create a new .cs file or add the code to the HMDemo.cs or the HMEngine.cs? It would help if above the code snippet it were to show the .cs file it is supposed to be for.
Every code snippet in this tutorial has either a namespace or a comment at the top saying where the code should be put.
The standard way of organizing files and namespaces for something like HMEngine.HMObjects { HMObjectManager } would be to put the file HMObjectManager.cs in the folder HMEngine/HMObjects.
I’ll see if I can come up with a more standard way of indicating the files in the next round of updates.