Character Movement in 2D Games with DirectX

Category: windows metro apps games

Question

David Nall on Wed, 03 Oct 2012 17:07:18


I've never made a game before and am wondering what is the proper way to program character movement as far as GPU usage is concerned.  Should the character be a bitmap or a class of geometry primitives re-rendered to each frame or should it be a sprite?  An example game would be something like angry birds.  For this would you use Direct2D/XAML (no supported sprite in Direct2D) or use Direct3D or just use C#/XAML with animation functions?  I've made animations with javascript/html before which seems to be what the latter option would be like, but then I'd be stuck doing all of the physics and collisions and such.

Thanks in advance.

Replies

Shazen on Wed, 03 Oct 2012 21:37:45


Sounds like you might want to checkout the DirectX TK (tool kit) spritebatch functionality.

http://blogs.msdn.com/b/shawnhar/archive/2012/05/02/directxtk-now-includes-spritefont.aspx