denna69

Hiya, after playing with XNA, I decided my best bet would be to delve into DirectX using c# and the SDK, I've looked at loads of tutorials regarding programming a 2D game, and mostly (and surprisingly), I understand whats going on! :)

The problem I have is that nealy all the well versed tutorials I've found for 2D in Managed DirectX are based on DirectDraw, which for most of my understanding, is obselete!

Can anyone point me in the right direction on how to setup Direct3D for 2D game programming in C# e.g. links to tutorials, examples etc

Any advice would be great!

Thanks in advance

Dabz

 

P.S. I'm not sure if this is in the right place, if it isnt, sorry about that!

 




Re: Game Technologies: DirectX 101 Anyone know any good 3D (for 2D) programming tutorials?

Glenn Wilson

Just a question... Why did you go back to Managed DirectX and C# from XNA

On another note, the managed DirectX system is not changing from what it is at the moment. At the moment you have the 1.1 system that is based on the .Net framework 1.1, the good old MDX 2.0 which was in beta has evolved to become the XNA Framework.

In regards to 2d in MDX yes DDraw is no more and you have beed asked when doing the 2d stuff to use the normal 3d functions and libraries in the DirectX systems. This is an easy task and you can see samples of it in the SDK under simple2d from memory. But XNA and 2d is just as easy as the DDraw systems and is supported.

In regards to tutorials there are a few around and some simple searches on Google will help you find them, or you could drop over to the www.gamedev.net site and have a look at the FAQs for the DirectX group and the .Net group as they have some listed there.

But all in all if you want Managed DirectX stuff you really need to have a look at www.thezbuffer.com.






Re: Game Technologies: DirectX 101 Anyone know any good 3D (for 2D) programming tutorials?

denna69

Thanks for the links Glenn! :)

Basically, XNA is a nice piece of software, but currently, the licensing issues that goes with it are a little confusing, am I right I cannot sell any games at the moment using XNA

I used C# in 2002, and found it a nice language, never touched it since the back-end of last year. And its seems to have grown up a lot, as well as being more resources on the internet surrounding the language, which is a big help!

I've decided, since I like using C# so much, to move from my current languange (www.blitzbasic.com), its still at DirectX7, its newest language, BlitzMax, to me, falls flat on the floor. It's not fully OOP implemented, and the IDE is terrible (Imagine a colourful version of notepad, with a 'Build' menu item, and your there)

Now, I have a few things on my hard-drive that I'd like to convert from their original language, though, with this conversion, I'm going to update the lot, graphics, sound, code that I wasnt happy with etc. And basically, if I can sell it, I'll ship it. Thats where XNA falls down for me at the moment, so its looks like using Managed DirectX with C# is the only way to go!

Now I dont mind learning, I'm a quick learner and will happily sift through tutorials, read code archives... but its just finding them, especially ones that show you how to do it as standard. :)

Anyway, Thanks for your help Glenn

All the best

Dabz

 

 






Re: Game Technologies: DirectX 101 Anyone know any good 3D (for 2D) programming tutorials?

Code_Cruncher

Here are a couple of excellent tutorials I use (I use the unmanaged versions, though, so that's based on those tutorials and what other people said).

DirectX 9 Tutorial using C#, C++ and Visual Basic
Managed DirectX 2.0

Riemer (the writer of the first site) is porting over to XNA, but he still keeps up the managed site. I hope those help.





Re: Game Technologies: DirectX 101 Anyone know any good 3D (for 2D) programming tutorials?

Glenn Wilson

You are able to sell windows based games, this includes only selling published or packaged code. ie msi or installer.

But for an Xbox 360 game you still need to publish it with the code as the end point needs to be part of the creators club.






Re: Game Technologies: DirectX 101 Anyone know any good 3D (for 2D) programming tutorials?

enablerbr

you might want to have a try with the Garage Games product Torque X. it will be for both 3D and 2D games with XNA. yet currently only handles 2D. so not a tutorial but might give you some help.

http://www.garagegames.com/products/torque/x/