Game Development Reference
In-Depth Information
Are you ready to go gung ho?
A Hotshot challenge
We have learned many things from this chapter, such as save and load the value locally by
using
PlayerPrefs
, using the
WWWForm
to post and load the high score from the server,
encrypt the key code with
MD5
, and load the XML string by using
XmlDocument
. However,
those aren't the things that we can do. Let's try something out and see how much we
learned from this chapter:
F
Create the save game posiion for our game by using
PlayerPrefs
to save the
current posiion of our character in the game and load it as well
F
Try adaping the
XMLParser
script to load the XML file by using
xml.
Load
(
filename.xml
) to load the XML file to your game
F
Create your database and PHP on your website by using
HiScore.php
and
changing the
PHPUrl
to your website; you can also change the hash key to the one
that you prefer
F
Make the game prompt the user to enter their name only if they actually qualify for
the new high score