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 – setting the scene


To begin with, we'll use the basic scene elements from Chapter 3, Diving into Development, to quickly create a stage to start developing our game on. Perform the following steps to set the scene:

  1. Open a new project in Unity and name it RollingMarble.

  2. Create a directional light to illuminate the scene and set its position to 0, 0, 0.

    You may recall that the position of directional lights doesn't matter, but keeping things at the origin point of the scene makes it easy to find them when they've been highlighted.

    Note

    In two-dimensional coordinate systems, the value of 0 is sometimes used as a low-end boundary or the bottommost value. However, most 3D engines use 0 as the very center of the game world, instead of as an outlier. If you set an object's X, Y, and Z coordinates to 0, 0, and 0, its pivot point will be in the exact center of your scene.

  3. After adding the light, add a cube from the Create menu in your Hierarchy menu. This cube can be used as the first...