XNA Creators Club Online
community forums

Search Forums

Page 1 of 23 (225 items) 1 2 3 4 5 Next > ... Last »
  • Re: Efficiency Optimised Collision Detection and Target Selection Algorithms

    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 ...
    Posted to Game Algorithms (Forum) by conkerjo on 12/11/2009
  • Re: How best to access a service?

    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.
    Posted to XNA Framework (Forum) by conkerjo on 11/11/2009
  • Re: Drawing a 2D Circle

    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.
    Posted to General (Forum) by conkerjo on 11/11/2009
  • Re: Questions regarding Debug and Release states.

    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
    Posted to General (Forum) by conkerjo on 07/11/2009
  • Re: Question about enums.

    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 ...
    Posted to General (Forum) by conkerjo on 07/11/2009
  • Re: So what's with ratings?

    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, ...
    Posted to General (Forum) by conkerjo on 06/11/2009
  • Re: XBox Live Rewards good for Indies?

    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 ? ...
    Posted to Game Publishing/Business (Forum) by conkerjo on 06/11/2009
  • Re: Problem with enemy movement

    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 ...
    Posted to General (Forum) by conkerjo on 06/11/2009
  • Re: 2D lighting

    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
    Posted to General (Forum) by conkerjo on 04/11/2009
  • Re: RTS-Scale Pathfinding

    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 ...
    Posted to Game Algorithms (Forum) by conkerjo on 30/10/2009
Page 1 of 23 (225 items) 1 2 3 4 5 Next > ... Last »