Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I've worked with the Microsoft Foundation Classes(MFC) and now I want to enter the world of game development.But should I start with directX or XNA? I'm hesitant towards DirectX because I feel it would be quite a laborious thing to work with. I'd really appreciate some expert advice on this, Thankyou.

share|improve this question
2  
"what language/engine/SDK you should learn" questions are explicitly called out in the FAQ as a type of question not to ask here. –  Byte56 Apr 19 '13 at 17:27
1  
@Byte56 I think this can be answered fairly unbiased; both have specific purposes and are directed at different types of users. See my answer, you're free to disagree, though. –  Vaughan Hilts Apr 19 '13 at 17:28
1  
@VaughanHilts You've provided a good answer. However, I still think the question shows lack of research and can only really be answered by Ghost, because only they know exactly what their end goals are and what their current skills would allow. –  Byte56 Apr 19 '13 at 17:35
    
@Byte5 Yes I do admit I'd not done substantial research myself before posting the question. But I simply wanted a short and concise comparison between of the two, something I was facing a hard time finding. As I've mentioned in the question, I wanted merely any advice more experienced people had to offer. –  Ghost Apr 19 '13 at 17:41
    
Perhaps in the future it might be better to word the question so that it can be "answered" instead of just given advice. e.g. "What does XNA do for me on top of DirectX" might be better as it's more applicable to the general audience of the internet as opposed to "what should I do" which we really can't answer. –  Tetrad Apr 19 '13 at 21:49
show 2 more comments

closed as not constructive by Byte56, John McDonald, Anko, Jimmy, Tetrad Apr 19 '13 at 21:48

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 4 down vote accepted

Do you want to learn high level or lower level? Do you want to make games or do you want to learn new tech? PS: XNA is dead but it lives in updates through MonoGame; check them out. It's well worth your time.

XNA and MonoGame are a framework. They allow you to devleop your game with structured utilities and pre-defined classes. This allows you to begin just writing game logic and forget about all the laborour stuff like handling your window, setting up a game loop, timing, effective sprite batch rendering, rendering basic models, setting up an effect framework and the like. Many other quick and easy modular libraries are available as well. You can't say the same for DirectX. If you have to choose between two, and you just want to make a GAME; pick this option if you are comfortable with C# or willing to learn. You'll develop faster without having to worry about everything "under the hood". MonoGame also gives cross compatibility fairly easily which is a bonus.

DirectX is an API to interface with GPUs and Windows. We use it to make games but it's a lot lower level than that; it provides no easy rendering pipeline, resource manager, or matrix transformation utilities. No game loop. If you want to learn it all from the ground up ... this or OpenGL is pretty much where it's at. You can't get much lower than this without stepping into some pretty insane territory. If you're already adept at C++ this might be an option - but if that is the case C# shouldn't be hard to pick up. DirectX is for those who want to roll their own stuff.

The other case where one might want to use DirectX is if they need extremely, highly optimized rendering techniques they need to implement themselves or they need to write a VERY intensive game that C# and XNA fail to complete. If you have to ask this question, though it's probably not the case.

share|improve this answer
    
It may be worth pointing out that learning Xna binds one to DirectX9 which is slowly slipping into obsolescence. Whereas learning DirctX itself you would start with DirectX11 which is growing into the future. –  Steve H Apr 19 '13 at 20:15
    
@SteveH That depends whether you're running on MonoGame or XNA. –  Vaughan Hilts Apr 19 '13 at 20:53
    
While I agree with general advice I personally don't see how something that is dead can be worth time. If someone is afraid of low-lvl stuff and just want to make a game probably UDK is safer bet (it's sdk for one of the top engines). Even Unity would be better. Then again, question was about XNA vs DirectX only. –  Lufi Apr 19 '13 at 23:06
    
@Luft The question was focused on XNA vs DirectX; but I did point to MonoGame which is NOT dead. –  Vaughan Hilts Apr 19 '13 at 23:33
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.