   DirectX Book
  I was looking at some books which cover game programming with DirectX.  I want to start of with 2D graphics using DirectX, and would like a book which covers this topic.I was looking at "SAMS Teach Yourself Game Programming with DirectX in 21 Days" and it looks like it covers exactly what I want - it has a simple 2D RPG game as a goal.  I was just wondering - has anyone used this book?  If so, was it quite helpful?  I know that everyone will have their own opinion on a book, but I'd just like to know if it's easy for starting to learn DirectX?I already have "Programming ROle Playing Games with DirectX, 2nd Edition", but I'm finding it slightly difficult to start off with, and a lot of the code doesn't compile properly.  Does the code for the SAMS book compile ok?I know the book (SAMS Teach Yourself...) uses DirectX 8.1, and I'm using the latest DirectX 9 SDK, but I'm guessing that most of the code will be the same or easily modified?Many Thanks   
  Get Frank D. Luna's new book.  Although there are older books on 2D (or Isometric) game programming with DX, they are oooold.  You would need to uninstall the newer SDK and install the oooold one to get them to work without a lot of coding.  Frank's book has one cool chapter that does some 2D stuff with sprites, and he uses the latest SDK.;  Are you referring to "Introduction to 3D Game Programming with Direct X 9.0c: A Shader Approach"?   ;  Frank Luna's "Introduction to 3D Game Programming with Direct X 9.0c: A Shader Approach" should be a very good book. I bought the first edition which focused on the fixed function pipeline and it was really good. However, it really doesn't focus on 2d, at least the 1st edition didn't, and looking at a preview of the chapters this one looks like it won't either.Here's the site for the new book: http://moon-labs.com/ml_book2.htm   ;Quote:Original post by weegizzyAre you referring to "Introduction to 3D Game Programming with Direct X 9.0c: A Shader Approach"?Yes.  You said you want to start with 2D, and chapter 5 has a simple 2D program using sprites.  You will also learn billboarding and using sprites to draw text.Although the book does not focus on 2D, it is an excellent intro to DirectX book.  There are tutorials on the net for creating 2D games, like tetris.