• Advertisement
Sign in to follow this  

How easy will it be for me to make a pure 2d platformer/rpg in directx 11?

This topic is 1756 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm an experienced c++ programmer and I've coded multiple games in GDI(old and slow), XNA and SDL. For reasons which I don't want to explain, I want to make some 2D games in directx 11 with c++. Does directx 11 support 2D programming, or am I going to have to learn 3D programming and make a fake 2D game using an orthogonal view or something? 
 
Does directx 11 have some out of the box functions(after setup) to blit bitmaps to a surface that's associated with the window? Would something like per-pixel collision be possible, i.e. getting access to the pixel data of a surface?

Share this post


Link to post
Share on other sites
Advertisement

As you are looking to target DX11 but want some out of the box functionality for 2D stuff, why don't you take a look at the DirectXTK, it offers various things you'll likely be familiar with (from XNA): http://directxtk.codeplex.com/

 

Aimee

Share this post


Link to post
Share on other sites

Why don't you want to explain your reasons for wanting to use DirectX11? Or will that give it away? :P

You can use Direct3D and fake 2D using an ortho view, which will be blazing fast if done correctly, should blow SDL and XNA out of the water. Alternatively you could use the new Direct2D which I've heard very little about. There are fewer resources available, and I'm not sure it's actually any easier to use than D3D

Share this post


Link to post
Share on other sites

Why don't you want to explain your reasons for wanting to use DirectX11? Or will that give it away? tongue.png

You can use Direct3D and fake 2D using an ortho view, which will be blazing fast if done correctly, should blow SDL and XNA out of the water. Alternatively you could use the new Direct2D which I've heard very little about. There are fewer resources available, and I'm not sure it's actually any easier to use than D3D

 

The thing is although Direct2D maintains interoperability with GDI/GDI+, he specifically stated DX11 and want's the ability to manipulate pixel data, Direct2D (a DX10 thing I believe) seems to lean more towards vector based rendering, it does offer this sort of functionality, but at the expense of mixing API's. If his intent is to release on the Windows 8 store or something similar, then I believe mixing Direct2D would cause a whole world of pain.

 

Just my two cents smile.png

Aimee

Edited by AmzBee

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement