在Android游戏中销售商品 [英] Selling items in Android Game

查看:70
本文介绍了在Android游戏中销售商品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我几乎没有问题。



例如:



我有关于骑士的游戏。



玩家希望得到更好的剑。



他可以支付它(使用真钱) )



1.如果他使用销售应用程序内产品向我支付1美元,我可以卖出更好的剑(游戏项目,它有更好的统计数据)吗? br />
2.好的。玩家买了剑。几天后他卸载了应用程序。 1个月后,他想再次玩我的游戏并安装我的应用程序。如果他有这把剑或者他可以再次开始游戏,那么他的剑消失了吗?

3.如果他应该有这个项目,我怎么能保存它甚至包括卸载和两次内置?

4.我可以为他的谷歌账户保存这些数据(高级项目),你知道。他是约翰的记录。约翰在他的smarthpone上买了剑,但约翰丢了手机/买了新手。如果他在新手机上登录John并下载了我的应用程序,他应该有这个项目吗?

解决方案

使用销售应用内商品?

2.好的。玩家买了剑。几天后他卸载了应用程序。 1个月后,他想再次玩我的游戏并安装我的应用程序。如果他有这把剑或者他可以再次开始游戏,那么他的剑消失了吗?

3.如果他应该有这个项目,我怎么能保存它甚至包括卸载和两次内置?

4.我可以为他的谷歌账户保存这些数据(高级项目),你知道。他是约翰的记录。约翰在他的smarthpone上买了剑,但约翰丢了手机/买了新手。如果他在新手机上以John身份登录并下载我的应用程序,他应该有这个项目吗?


您正在谈论的此功能被称为应用程序内购买并且习惯于允许用户购买您的应用程序的产品。无论您的应用程序中的产品或项目是什么,它都可以是功能,升级或服务等。



您可以在此处了解有关此类功能的更多信息,上的href =http://developer.android.com/google/play/billing/billing_overview.html> [ ^ ]网站。您的问题的答案已经发布在该网页上,以防我想在这里为您提问。





  1. 是的,您可以允许用户通过付费购买具有更好功能和功能的商品给你。 Google将负责该交易,用户将在您的帐户获得付款后获得该项目。
  2. 根据该网页:

    Quote:

    所有购买均为托管(即Google Play跟踪用户对应用程序内产品的所有权。)

  3. 如上所述,即使重新安装,用户也将拥有该项目。谷歌播放服务或Play游戏(谷歌)可以在这种情况下使用,从他中断的所有包和项目开始用户的状态。
  4. 项目存储在Google帐户中,而不是设备中(除非您需要),所以每当John再次登录时,他都会收回他的剑。


I have few questions.

For example:

I've got game about knights.

Player want to have got better sword.

He can pay for it(using real money)

1. Can I sell better sword(game item, which has got better stats) if he paid me 1$ using "Selling in-app Products" ?
2. Ok. Player bought sword. And after few days he uninstalled app. 1 month later he want to play in my game again and instal my app. Should he have got that sword or he can start play again, beacuse his sword disappeared?
3. If he should have this item, how can I save it even include uninstaling and twice innstaling?
4. Can I "save this data("premium" item)" for his google acount, you know. He's logged as John. John bought sword on his smarthpone, but John lost his phone/bought new. If he logged as John on new phone and downloaded my app he should have got this item?

解决方案

using "Selling in-app Products" ?
2. Ok. Player bought sword. And after few days he uninstalled app. 1 month later he want to play in my game again and instal my app. Should he have got that sword or he can start play again, beacuse his sword disappeared?
3. If he should have this item, how can I save it even include uninstaling and twice innstaling?
4. Can I "save this data("premium" item)" for his google acount, you know. He's logged as John. John bought sword on his smarthpone, but John lost his phone/bought new. If he logged as John on new phone and downloaded my app he should have got this item?


This feature you're talking about is known as "In-app purchases" and is used to allow the users to purchase the products of you applications. No matter what product or item in your application, it can be a feature, an upgrade or a service etc.

You can learn more about such feature here, on Android Developer[^] website. Answers to your questions are already posted on that web page, in case I want to qoute them out here for you.


  1. Yes, you can allow the users to purchase an item with better features and capabilites by paying for them to you. Google will take care of the transaction, and user will get the item once your account gets the payment.
  2. According to that web page:

    Quote:

    All purchases are "managed" (that is, Google Play keeps track of the user's ownership of in-app products).

  3. As above, user will own the item, even after re-installing. Google Play services, or Play Games (by Google) can be made use of in this scenario to start the user's state from where he left off with all of the packages and items.
  4. Items are stored in the Google account, not the device (unless you want them to) so whenever the John logs in again, he will get his sword back.


这篇关于在Android游戏中销售商品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆