Nethereum Game Sample
This sample game demonstrates how to integrate Nethereum with the UrhoSharp SamplyGame (game sample) to create a cross-platform game that interacts with Ethereum.
A simple smart contract deployed to Ethereum allows you to tracks the users high scores and the top scores. The sample uses private keys to sign "offline" transactions and use a public node for all the communication, this way avoids the local installation of an ethereum client.
More information on UrhoSharp can be found on the Xamarin website, and in github the original sample. Kudos and all the credit goes to the Xamarin guys, specially @EgorBo and @migueldeIcaza for the great engine and sample.
There is an android package here.
##Forms or Original A newer version of the sample (which will be maintained if we do any changes) is the Xamarin.Forms version. This demonstrates decoupling the logic from the game, simplification of running other threads in the background, and support of copy and paste which was not provided in the Urho UI. The sample is still very simple, so not MVVM or dependecy injection has been added.
Small video tutorial
This video gives you a quick introduction on the sample:
- Quick overview of UrhoSharp and cross-platform development
- Overview of public nodes like infura.io
- Overview of private keys
- Overview of the solution structure
- Overview of the smart contract, .net service, offline transaction signing.