Highscore: Example

PreviousNext

Overview

The example consits of several scene, each is described here very briefely.

NEW_ENTRY_SCENE

In this scene, the user is asked for a name and a score. The input is checked to make sure there are no special characters in the name, which would cause problems when saving the name and sending it over the network.

LOCAL_HIGHSCORE_SCENE

In this scene, the local highscore is displayed.

SUBMIT_SCENE

This scene handles the synchronisation between the client and the server. The synchronisation is started, and the scene waits until the network traffic has finished.
There's also a cancel button to stop the synchronisation.

REMOTE_HIGHSCORE_SCENE

This scene looks a lot like LOCAL_HIGHSCORE_SCENE, it just displays the remote highscore.