安卓卡的游戏,需要帮助启动游戏、安卓卡

2023-09-06 13:29:33 作者:草莓胞妹

我只是设置在Android的发展。我想要一种卡的游戏。我只是在寻找的建议真的,我怎么可能会启动它。

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.

我知道我必须做的菜单布局和视图,然后用一个Intent从去游戏主视图。我的症结是:

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.

卡详细信息存储。我想使用XML文件来存储这些的。

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

推荐答案

您可以尝试看看这个项目: HTTP://$c$c.google.com/p/bestcardgameever-android/ 而关于这个作者的职位(有在同一个博客第二次后): 的http://develo$p$pality.blogspot.com/2009/05/overcoming-absolutelayout-de$p$pcation.html

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