Game Development Reference
In-Depth Information
which is a method for the app to relay status information to the user when the app is not
running.
Secondary Tiles Sample - This sample shows how to pin and use a secondary tile,
which is a tile that directly accesses a specific, non-default section or experience within
an app, such as a saved game or a specific friend in a social networking app.
Flyout Panels
Flyout panels are a great way to hide more advanced configuration options from the player
until they really need to access them. We discuss how to make a simple flyout panel in the
publishing section for the privacy policy. These panels are simply HTML pages you can load
up on request, so anything you would do with a pop-up window or additional div overlay in
your game will be moved over to these developer-defined flyout panels. Here are some more
resources about setting them up:
Visual Studio Sample
App Settings Sample - This sample demonstrates how to use the ApplicationSettings
API and settings flyout to integrate an app's settings UI with the Settings Charm.
Edge Gesture Invocation Sample - This sample shows how to listen for events that oc-
cur in relation to edge-based UI, using the EdgeGesture class.
Loading/Saving to Local File System
Now that we have gone over how to store data locally, you may want to take advantage of
the larger storage allocations Windows 8 offers you. One technique I use is to test to see if
WinJS exists and switch over to saving to the computer instead of local storage. You can cre-
ate a similar API like we did in the previous section to manage it. Of course in Windows 8
we are going to have to deal with some extra code, but let's take a look at how to get that set
up.
Visual Studio Sample
File Access Sample - This sample shows how to create, read, write, copy, and delete a
file; how to retrieve file properties; and how to track a file or folder so that your app can
access it again.
Search WWH ::




Custom Search