From XNA to DirectX/DirectXTK, a Bizzy Bee conversion series
Tess Ferrandez, If broken it is, fix it you should, just posted a great series where she, an admitted C# Dev playing in C++, converts her Windows Phone 7 based Bizzy Bee app, Bizzy Bees - A XNA for Windows Phone 7 game building walkthrough, from XNA to C++, DirectX/DirectXTK.
Bizzy Bees is super simple. It is raining flowers, and the task at hand is to match up same colored flowers with same colored bees to remove them before the flowers reach the bottom of the screen. Rainbow flowers can be matched with all bees and if you match a rainbow flower you score a point.
I’ve divided the walkthrough into 8 small articles to make the information a bit more digestable
1. Setting up the base project with DirectX and DirectTK
2. Creating the game assets (sprites and fonts)
3. Drawing the scene – Background/Foreground/HUD
4. Adding flowers
5. Making things move
6. Adding bees
7. User Interaction
8. Tidying up and adding finishing touches
If you want to follow along, you can download DirectXTK (DirectX ToolKit) from codeplex. DirectXTK is a toolkit that sits on top of DirectX enabling you to use XNA like constructs like the SpriteBatch, SpriteFont etc. making the transition from XNA to DirectX fairly easy and it comes directly from some of the guys that made XNA so it’s good stuff:)
Disclaimer: I am not really a C++ developer since I work mainly in C# so keep that in mind when you look at the code since there might be better ways to do things. I welcome any and all comments that could make things better.
As Tess says, each post in the series is nicely digestable and easy to follow...
Here’s a few more links you might find interesting: