locked
Using XNA Game Studio Express to develop solitaire game

    Question

  • I am an experienced developer but a newcomer when it comes to developing games.  I recently downloaded XNA Game Studio Express and have been studying the space war game.

     

    I am developing a solitaire-type card game where the player can drag and drop cards from one pile to another.  I have much of the domain logic written, and now I am tackling the user interface. 

     

    Most of the XNA tutorials I have seen use arcade-type games for their examples, and I have not seen any that use a solitaire-type card game.  This brings up several questions:

     

    1) Is the XNA framework suitable for developing a solitaire-type card game?

     

    2) Does any know of any XNA tutorials that use a solitaire-type card game (preferably with dragging and dropping of cards) as an example?

     

    3) Is there a more suitable framework I should use?

     

    Thanks for any help you can provide.

     

    Thomas Hawk

     

     

    Thursday, November 02, 2006 6:40 PM

Answers

  • Hello, Thomas!

    XNA is great for such things!  With the use of 2D textures (or a 3D environment, if you're feeling fancy), you could easily build a card game.  I think that most people that have worked on the demos and tutorials are just going for action/adventure for their genre because it's a popular choice (hell, I know I love it :) ).  But there's definitely room in the XNA family for card games, puzzle games, and such!

    In reply to your questions:

    1)  Absolutely :)

    2) None yet that I'm aware of, though I'm sure the rest of the community will chime in on this.  For a simple card game, I'd recommend looking at some of the 2D-based tutorials, such as the tile-based tutorials.  I have a small app (uncommented) that I've been working on as a map tool for RPGs.  It consists of picking up and moving tiles (representing people) around on a map.  If you'd like to see that, let me know :)  It's pretty rough, I should warn you. :)

    3) XNA should do just fine. :)

    Thursday, November 02, 2006 7:11 PM
  • Whilst you can use XNA for this - you might also want to checkout the blackjack starter kit from c# express http://msdn.microsoft.com/vstudio/downloads/starterkits/ which uses GDI.

    Also it is possible to wrap the cards.dll that comes with the windows card games - see http://www.codeproject.com/csharp/drawcardscp1.asp and http://www.catch22.net/tuts/cardtut.asp and http://thehouseofcards.com/card_images.html (links to card images and also more articles on using cards.dll)

    Of course is xbox is your goal then these are all non starters.

    Thursday, November 02, 2006 8:04 PM

All replies

  • Hello, Thomas!

    XNA is great for such things!  With the use of 2D textures (or a 3D environment, if you're feeling fancy), you could easily build a card game.  I think that most people that have worked on the demos and tutorials are just going for action/adventure for their genre because it's a popular choice (hell, I know I love it :) ).  But there's definitely room in the XNA family for card games, puzzle games, and such!

    In reply to your questions:

    1)  Absolutely :)

    2) None yet that I'm aware of, though I'm sure the rest of the community will chime in on this.  For a simple card game, I'd recommend looking at some of the 2D-based tutorials, such as the tile-based tutorials.  I have a small app (uncommented) that I've been working on as a map tool for RPGs.  It consists of picking up and moving tiles (representing people) around on a map.  If you'd like to see that, let me know :)  It's pretty rough, I should warn you. :)

    3) XNA should do just fine. :)

    Thursday, November 02, 2006 7:11 PM
  • Whilst you can use XNA for this - you might also want to checkout the blackjack starter kit from c# express http://msdn.microsoft.com/vstudio/downloads/starterkits/ which uses GDI.

    Also it is possible to wrap the cards.dll that comes with the windows card games - see http://www.codeproject.com/csharp/drawcardscp1.asp and http://www.catch22.net/tuts/cardtut.asp and http://thehouseofcards.com/card_images.html (links to card images and also more articles on using cards.dll)

    Of course is xbox is your goal then these are all non starters.

    Thursday, November 02, 2006 8:04 PM