BitShares Forum

Main => General Discussion => Topic started by: bluebit on January 08, 2015, 10:26:03 pm

Title: Automatic Game Payouts - Bitcoin, BitGLD, etc
Post by: bluebit on January 08, 2015, 10:26:03 pm
So, on Bitcoin Reddit the top story is about a iOS game called SaruTobi that rewards players in Bitcoin:
http://www.coindesk.com/apple-approves-ios-game-tips-players-bitcoin/
https://www.reddit.com/r/Bitcoin/comments/2rqlj6/apple_approves_ios_game_that_tips_players_in/

I've download the game and already made over 63 cents, check it out: https://blockchain.info/address/17jVL3LR9UG2QVU9H2FDsuQ9JwuwTcrHLe

I'm a Game Developer myself and currently preparing to launch an iOS game in a week or so, and would like to do the same thing, offer rewards/payouts in Bitcoin as well as in other currencies like maybe BitGold :)

Anyone know how to do automatic game payouts like this guy did, what code he used? You can download the game here: https://itunes.apple.com/us/app/id932194840?mt=8
Title: Re: Automatic Game Payouts - Bitcoin, BitGLD, etc
Post by: monsterer on January 08, 2015, 10:36:33 pm
In all cases, you'll need every game validated on a central server of some kind to make sure no-one can cheat by hacking the client.

Since you'll already have a central server, you can run a daemon node for the currency in question and issue RPC commands to send coins to your users, which you'll store in your own database.
Title: Re: Automatic Game Payouts - Bitcoin, BitGLD, etc
Post by: bluebit on January 08, 2015, 10:40:37 pm
Since you'll already have a central server, you can run a daemon node for the currency in question and issue RPC commands to send coins to your users, which you'll store in your own database.

How can do this? I'm just a game developer, do not have knowledge how to run a daemon node and issue RPC commands, is there an easy way I can learn this? Lead me in the right direction, youtube videos maybe? :)
Title: Re: Automatic Game Payouts - Bitcoin, BitGLD, etc
Post by: bluebit on January 08, 2015, 10:45:10 pm
By the way, it looks like the Bitcoin Pot Address for the game has stopped paying out, have a look: https://blockchain.info/address/17ZgzoQUAiCrCgSieYfGhAvToW9kn6uaLt
Title: Re: Automatic Game Payouts - Bitcoin, BitGLD, etc
Post by: monsterer on January 08, 2015, 10:51:21 pm
How can do this? I'm just a game developer, do not have knowledge how to run a daemon node and issue RPC commands, is there an easy way I can learn this? Lead me in the right direction, youtube videos maybe? :)

You know how to run a wallet, so you ought to know how to run bitcoind?

This is all the RPC commands which bitcoind supports: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

Then you'll need to use something like https://github.com/BitKoot/BitcoinRpcSharp to communicate with bitcoind, or if you don't use C# just google for bitcoin RPC library in your language of choice.

Hope that helps!
Title: Re: Automatic Game Payouts - Bitcoin, BitGLD, etc
Post by: bluebit on January 09, 2015, 12:41:24 am
How can do this? I'm just a game developer, do not have knowledge how to run a daemon node and issue RPC commands, is there an easy way I can learn this? Lead me in the right direction, youtube videos maybe? :)

You know how to run a wallet, so you ought to know how to run bitcoind?

This is all the RPC commands which bitcoind supports: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

Then you'll need to use something like https://github.com/BitKoot/BitcoinRpcSharp to communicate with bitcoind, or if you don't use C# just google for bitcoin RPC library in your language of choice.

Hope that helps!

Thanks yep, that helps a lot!!!