Search Forums
-
I resolved a major performance problem in my game by switching to use a spatial hashing method to not only help with collision but also for A.I code to determine things that are close by to use in it's movement algorithm.
I wrote about the process ...
-
Use a service for when there is only one instance of that type of component. A bit like the singleton approach in a way.
I like to retrieve my services in any Loadcontent methods I may have in my classes and keep the member variable alive until the class is no longer needed.
-
If it's for debug purposes I personally prefer to draw this with primitives, a circle is just a series of lines.
Here's a good example of how to do it in primitives
http://forums.xna.com/forums/t/7414.aspx
If it's for the gameplay, do as others suggested, make a sprite and scale it appropriately.
-
There are already #define variables defined in the project file#if DEBUG// SOME CODE HERE#endif
#if RELEASE//SOME CODE HERE#else//SOME CODE HERE
#endif
-
Your enum must be public inside the class. Here's an example
namespace Test{ class TestClass { public enum Testenum { TestValue1 TestValue2 } }
}
To access this would be Test.TestClass.Testenum.TestValue1;
You could move it outside of the class and it would be Test.Testenum.TestValue1
And you ...
-
Not everyone, infact I would go so far to say less than half the people who play a game would not bother rating it. We all knew XBLIG doesnt get 20 million people looking at the games so I think this has just hit a point where all the regulars have rated their favourites and it's slowed down dramatically.
I hope this doesnt continue, ...
-
I think this will potentially be great for indies. Especially if people get these points at a time where they have nothing in their account. If I got given a free 80 MS points and that's all I had, I would feel compelled to spend it on something.
It may not revolutionise sales numbers, but an extra 5-10 sales is better than no sales right ? ...
-
You should consider pathfinding for this as I expect your game might get more complex and you want more than just walking between 4 points.
You can see a full engine with behaviors and pathfinding here with BRAINS. You're free to just cherry pick the bits you want and use in your app or utilize the whole ...
-
Take a look at this sample http://www.sgtconker.com/2009/10/simply-rendertargetsplaceholder/Using a render target and an image you can cut a hole out to produce a light effect. Just add a bit of fade to the image you use and you will get a nice torch effect
-
Take a look at BRAINS which has part of what JWatte describeshttp://www.sgtconker.com/affiliated-projects/brains/
You can split a "World" into a cluster of grids. Each grid can be searched independantly or you can search across grids and it will find the path across multiple grids.
It's not quite complete in that it's not ...