Book Image

OUYA Game Development by Example

By : John Donovan
Book Image

OUYA Game Development by Example

By: John Donovan

Overview of this book

The OUYA console and development kit gives you the power to publish video games for the players, creating a console marketplace of the gamers, for the gamers, and by the gamers. Using the OUYA developer kit and the Unity3D game engine, even beginners with a captivating game idea can bring it to life with a hint of imagination. OUYA Game Development by Example uses a series of feature-based, step-by-step tutorials that teach beginners how to integrate essential elements into a game engine and then combine them to form a polished gaming experience.
Table of Contents (18 chapters)
OUYA Game Development by Example Beginner's Guide
About the Author
About the Reviewers

Saving data with the OUYA API

You may remember from the beginning of the chapter that Unity's storage method isn't the only one that you can use to save data. OUYA features its own storage API that can be used to save data with keys just like Unity, but the purpose is slightly different.

Unity's saving mechanism is great because it handles storage and organization of the files all on its own and can be easily accessed using keys. However, if you were to uninstall the game from OUYA or your computer, the saves would no longer be present as they're tied to the project files.

OUYA's storage API, on the other hand, makes sure that the data remains in place even if the game is uninstalled. That way, if a player uninstalls a game that they've made progress on but then reinstall it later, their game will load the OUYA API's saved data from the original installation.

So why not just use OUYA's storage API all the time? For one, it can only store values as strings. You could theoretically save any aspect...