Game Development Reference
In-Depth Information
Hotshot challenges
We have learned many things from this project, such as saving and loading the value loc-
ally using
PlayerPrefs
and
Serialization
, using
WWWForm
to post and load the
high score from the server, encrypting the key code with MD5, and loading the XML string
using
XmlDocument
. However, these aren't the only things that we can do. Let's try
something out and see how much we learned from this project:
• Create the save game position for our game using the
PlayerPrefs
and
Seri-
alization
techniques to save the current position of our character in the game
and load it as well
• Save the game to the file using the
PlayerPrefs
and
Serialization
tech-
niques
• Try to adapt the
XMLParser
script to load the XML file using
xml.Load(filename.xml)
to load the XML file to your game
• Create your database and PHP on your website using
HiScore.php
and chan-
ging
phpUrl
on your website; you can also change the hash key to the one that
you prefer
• Make the game prompt the user to enter their name only if they actually qualify for
the new high score
• Post to the server the high score data using the serialization technique and the MD5
encryption