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

Chapter 4. Moving Your Player with Controller Input

One of the most important features of a well-developed game is a system that allows the player to move their character in a way that feels natural and intuitive. In the previous chapter, you wrote your first scripts to make objects move and change color based on a key press. In this chapter, you'll use the key press logic from the previous chapter to create an input script that moves the player in the game world. There's not one single right answer for how to process input and movement in your game, but in this chapter, we'll work with several techniques that contribute to a quality-control scheme. These techniques will be integrated into a "rolling marble" game prototype, which will give you the opportunity to learn about win and loss states.

In this chapter, we will cover the following topics:

  • Creating an interactive marble prototype

  • Adding additional functionalities to our marble

  • Completing our game