XNA 4 game for both profiles

Posted by Vodácek on Game Development See other posts from Game Development or by Vodácek
Published on 2012-06-04T19:07:57Z Indexed on 2012/06/04 22:47 UTC
Read the original article Hit count: 202

Filed under:
|
|

I am writing game in XNA 4 and this version have two profiles hi-def and reach. My problem is that I need to have my game code for each of these profiles and is very uncomfortable to have two projects and do all changes in both of them. My idea was to use preprocessor directive (i am not sure about name of this, http://msdn.microsoft.com/en-us/library/ed8yd1ha%28v=vs.71%29.aspx) and use IF statement at places with problems with profile. There is only problem that program needs to be compiled two times (for each profile) and manually changed directive and project settings to another profile. And my questions are: Is that good way? Is there better and cleaner way how to do this?

© Game Development or respective owner

Related posts about XNA

Related posts about c#