O'Reilly logo

Unity 3 Game Development HOTSHOT by Jate Wittayabundit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Posting and loading high scores to the server

In this section, we will create the ServerHiScore script to post and load the high score data from the server, which we will use in the WWWForm class to communicate with the PHP file on the website, which I already set up. We will also create a hash key and encrypt it with the MD5 encryption to protect and check for the user before posting the score to the database.

Prepare for Lift Off

Before we create the ServerHiScore script, we will need to get the MD5 encryption script to encrypt our data. Let's create the new Unity JavaScript and name it MD5.js in MonoDevelop. Then, browse to the following link:

http://www.unifycommunity.com/wiki/index.php?title=MD5.

On this page, you will see the MD5 class for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required