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
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – creating a purchase screen


To sell our product in our game, we first need a screen that offers the option for users to buy it. As a developer, you can put the purchase screen anywhere, but for this demonstration, we'll add it to a pause screen. Perform the following steps to create a purchase screen:

  1. Create an empty GameObject to hold our pause screen code by clicking on Create Empty in the GameObject menu on Unity's toolbar.

  2. Name the new object PauseManager in the Hierarchy window.

    Your new object should now appear in the Inspector and Hierarchy windows as shown in the following screenshot:

    Next, we'll create the pause screen window that will contain the purchase button.

  3. Add a new GUI Texture component to your PauseManager object by selecting it from the Rendering category in the Add Component menu.

  4. Use your preferred image editor to create a basic texture that reads PAUSED at the top and apply it to your GUI Texture component.

    Make sure your texture is positioned at the proper...