Monday, 23 July 2012

XNA Samples in C++

So I was looking at one of the 2D samples on the creators club site, namely this one, where MS show how to use XNA to create a quick 2D shooter. I thought this would be a good test to see how far I am with my library as far as my sprite batch code goes, and hoped it would show up a few issues (which thankfully it did)

Now, due to my poor C++ I still have a number of issues, so I wont be putting this library up yet, but I plan to take take the existing creators club samples and use them and their assets (hope MS don’t mind) to do samples for my library.

I am also hoping to get working samples for Windows 8 Metro applications too, time willing.

In the mean time, take a look at where I am so far with this first sample. As you can see in the clip I have animated sprites now as well, still no sound, music is played by the clip and is not in game music, but that’s just another on the TODO list :P All assets in the clip are rendered using my C++ library, but all the assets are from the XNA sample as is.

As ever your comments are more than welcome :)

6 comments:

  1. I really like the artwork style! everything looks great!

    ReplyDelete
    Replies
    1. Thanks, but I can't take credit for that, the assets are all from the MS XNA Samples, I agree though, they are nice.

      Delete
  2. Hey Charles, did you get enough of working with C++ :-)

    Still hoping that you will continue some of your C++ tutorials as they are very educational especially for C#/XNA folks.

    Anyway I was actually writing this post hoping you would share your C++ implementation of the XNA Shooter Sample.

    I need some good approach at doing Spritebatch in C++, since I cannot get the DirectXTK to work with VS2010.

    Regards,
    @JSchandorff

    ReplyDelete
    Replies
    1. Yes, still playing with C++, just lacking in time more than anything. I am hoping to open source what I have done, so the stuff you see in the clip above, it's not a lot and it's not Win8 compliant, but as you can see it's a start.

      I want to get it Win8 compliant first as well as tidy it up a bit, it's just time. I am willing to mail you the source as it stands if you like.

      Post your email address here, and I will remove it before I publish your comment, I can mail it onto you then.

      Delete
    2. Got it and responded to make sure I have the right address :)

      Delete
  3. I also send you an email back to confirm it.

    ReplyDelete