Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

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.

Screenshot

Play along!!

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.

Cross platform game development with Ethereum using UrhoSharp and .Net

Note: in this sample, a special INFURA API key is used: 7238211010344719ad14a89db874158c. If you wish to use this sample in your own project you’ll need to sign up on INFURA and use your own key.

About

Crossplatform game sample using Nethereum and UrhoSharp

Topics

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.