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 – adding a goal zone


Perform the following steps to add a goal zone and complete our game:

  1. Extend your main platform by adding other platforms that create a straight path.

  2. Reposition your marble to start on the leftmost platform so that it can be rolled to the rightmost one.

    Exact positioning isn't necessary; just make sure your marble can roll from one platform to another.

  3. Add in at least one small wall for your marble to jump over in order to reach the end.

    Your finished product should look somewhat similar to the following screenshot:

    Next, we'll create the goal object by performing the following steps:

  4. Create a new cube with default scale and put it somewhere on the other side of the wall.

    We will want to know when our marble hits the goal, so we'll write a code to access the collider property of this goal object.

  5. Create a new C# script called GoalBox, attach it to your new cube, and open it for editing.

    Just like the rigidbody component, the collider component also grants the...