views:

72

answers:

2

Hello,

I'm just setting out in android development. I want to make a kind of card based game. I'm just looking for suggestions really on how I might start it.

I know I have to make the menu layout and view, then use an Intent from that to get to the main game view. My sticking points are:

-There's going to be a deck of cards. It's going to be a set number so I was thinking I could just have each card defined as a button in the layout. I don't know if that is the right way to do it though.

-Storage of card details. I'm thinking of using an xml file to store these.

Thanks in advance.

A: 

I have a similar project in mind. I'm also a beginner when it comes to Android and game programing. The game I'm interested in developing is a trick-based game.

  • For card layout I think I'll go for drawing inside a view. I may start with simple pictures with numbers and letters only. but this way it may be easy later on to modify for a nicer layout.

  • As for data storage I was going for MySQL, I may store configuration into a XML file though.

Have fun.

mbadawi23
+1  A: 

You could try to check out this project: http://code.google.com/p/bestcardgameever-android/ And a post of the author about this (there is a second post in the same blog): http://developreality.blogspot.com/2009/05/overcoming-absolutelayout-deprecation.html

janfsd
The code was useful to browse through, even though it is still based on the older API v3. I liked this project's layout style and Activity setup. But the blog wasn't too helpful.
Mufasa