You are previewing OUYA Game Development by Example Beginner's Guide.
O'Reilly logo
OUYA Game Development by Example Beginner's Guide

Book Description

An all-inclusive, fun guide to making professional 3D games for the OUYA console

In Detail

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.

What You Will Learn

  • Control camera functions, lighting, and appearance in a 3D game engine
  • Script gameplay in Unity3D in the C# programming language
  • Use the OUYA API to process input from controllers
  • Create longer games by coding, saving, and loading systems
  • Configure your computer to deploy code directly to the OUYA console
  • Improve the appearance of games with materials and textures
  • Implement in-app purchases in the game in order to monetize the game in a more effective manner
  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. OUYA Game Development by Example Beginner's Guide
      1. Table of Contents
      2. OUYA Game Development by Example Beginner's Guide
      3. Credits
      4. About the Author
      5. Acknowledgments
      6. About the Reviewers
      7. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why subscribe?
          2. Free access for Packt account holders
      8. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Time for action – heading
          1. What just happened?
          2. Pop quiz – heading
          3. Have a go hero – heading
        6. Reader feedback
        7. Customer support
          1. Downloading the example code
        8. Downloading the color images of this book
          1. Errata
          2. Piracy
          3. Questions
      9. 1. Experiencing the OUYA
        1. Setting up the console
        2. Networking
        3. Displaying games
        4. Time for action – installing your first game
          1. What just happened?
        5. Playing the OUYA
        6. Touch controls
        7. Summary
      10. 2. Installing Unity and the OUYA ODK
        1. Installing the game engine
        2. Time for action – setting up Unity
          1. What just happened?
        3. Downloading and configuring additional packages
        4. Time for action – downloading Java, the Android SDK, and the ODK
          1. What just happened?
        5. Modifying the PATH variable
        6. Time for action – editing PATH on Mac OS
          1. What just happened?
        7. Time for action – editing PATH on Windows
          1. What just happened?
          2. Installing packages with the Android SDK
        8. Time for action – installing Android packages
          1. What just happened?
        9. Configuring the USB connection
        10. Time for action – configuring the USB driver on Windows
          1. What just happened?
        11. Time for action – exporting OUYA packages from Unity
          1. What just happened?
        12. Time for action – importing packages into a new workspace
          1. What just happened?
          2. Pop quiz – small parts of a whole
        13. Summary
      11. 3. Diving into Development
        1. Creating a 3D text prototype
        2. Time for action – manipulating the scene
          1. What just happened?
        3. Time for action – creating and scripting 3D text
          1. What just happened?
          2. Have a go hero – flexing your new muscle
        4. Creating a custom function
        5. Time for action – writing a function
          1. What just happened?
        6. Time for action – capturing data with return values
          1. What just happened?
        7. Time for action – controlling functions with parameters
          1. What just happened?
        8. Making our scripts interactive
        9. Time for action – adding keyboard interaction to scripts
          1. What just happened?
        10. Deploying our code on OUYA
        11. Time for action – running your first test on OUYA
          1. What just happened?
          2. Pop quiz – hello world
        12. Summary
      12. 4. Moving Your Player with Controller Input
        1. Creating an interactive marble prototype
        2. Time for action – setting the scene
          1. What just happened?
        3. Time for action – importing a Unity input script
          1. What just happened?
        4. Time for action – turning input into movement
          1. What just happened?
        5. Time for action – movement with the OUYA SDK
          1. What just happened?
        6. Adding additional functionality to our marble
        7. Time for action – adding button features
          1. What just happened?
        8. Time for action – improving the camera
          1. What just happened?
          2. Have a go hero – creating your own camera
        9. Completing our game
        10. Time for action – adding a goal zone
          1. What just happened?
          2. Pop quiz – coming full circle
        11. Summary
      13. 5. Enhancing Your Game with Touch Dynamics
        1. Using the touchpad to interact with buttons
          1. Creating the cannonball prototype
        2. Time for action – creating a cannon prefab
          1. What just happened?
        3. Time for action – creating an interactive button
          1. What just happened?
        4. Time for action – adding an impulse force to a rigidbody component
          1. What just happened?
        5. Using cursor data to add touch input to games
        6. Time for action – reading mouse position in Unity
          1. What just happened?
        7. Time for action – creating a vector from cursor movement
          1. What just happened?
          2. Have a go hero – capturing touch input over multiple frames
        8. Incorporating touch data into your mechanics
        9. Time for action – hiding the cursor on the screen
          1. What just happened?
        10. Time for action – creating a target for the cannon
          1. What just happened?
          2. Pop quiz – touching the sky
        11. Summary
      14. 6. Saving Data to Create Longer Games
        1. Creating collectibles to save
        2. Time for action – creating a basic collectible
          1. What just happened?
          2. Have a go hero – make your prototype stand out with materials
        3. Time for action – scripting the collectible
          1. What just happened?
        4. Time for action – accessing the scripts on other objects
          1. What just happened?
        5. Saving data with the Unity engine
        6. Time for action – saving data with PlayerPrefs
          1. What just happened?
        7. Time for action – setting up a GUI Text object
          1. What just happened?
          2. Using save data in multiple scenes
        8. Time for action – counting cannonballs
          1. What just happened?
        9. Time for action – checking high scores in a new scene
          1. What just happened?
        10. Time for action – displaying high score values
          1. What just happened?
          2. Have a go hero – adding a reset button to your high score list
        11. Saving data with the OUYA API
          1. Pop quiz – saving (and loading) the day
        12. Summary
      15. 7. Expanding Your Gameplay with In-app Purchases
        1. The different kinds of in-app purchases
          1. Entitlements
          2. Consumables
        2. Setting up a product on the OUYA developer portal
        3. Time for action – preparing your game for in-app purchasing
          1. What just happened?
        4. Coding in-app purchasing in your game
        5. Time for action – creating a purchase screen
          1. What just happened?
        6. Time for action – creating your first purchase function
          1. What just happened?
          2. Have a go hero – initializing product variables dynamically
        7. Time for action – saving and loading successful purchases
          1. What just happened?
        8. Time for action – reflecting unlocked functionality in games
          1. What just happened?
        9. Adding polish with Unity Asset Store packages
        10. Time for action – adding explosions to your cannonballs
          1. What just happened?
        11. Pricing your in-app purchases
          1. Setting the price of your full game
        12. Picking a monetization model
          1. Have a go hero – tying it all together with more products
          2. Pop quiz – talking shop
        13. Summary
      16. 8. Polishing and Prepping Your Game for Deployment
        1. Meeting the OUYA content guidelines
        2. Time for action – containing game elements within the safe zone
          1. What just happened?
        3. Time for action – creating icons for your game
          1. What just happened?
          2. Following the Unity Submission Checklist
        4. Polishing Unity projects in depth
          1. Creating your game flow
        5. Time for action – creating a title screen
          1. What just happened?
        6. Time for action – creating a loss screen
          1. What just happened?
          2. Creating a tutorial
        7. Time for action – creating a tutorial scene
          1. What just happened?
        8. Time for action – linking your tutorial to your game
          1. What just happened?
        9. Creating a following camera in Unity
        10. Time for action – creating a following third-person camera
          1. What just happened?
          2. Have a go hero – add rotation controls to your camera
        11. Time for action – adding audio to your game
          1. What just happened?
        12. Packaging your project for submission
        13. Time for action – creating your game on the developer portal
          1. What just happened?
          2. Pop quiz – the end of the beginning
        14. Summary
      17. 9. Blazing Your Own Development Trail
        1. Expanding your skills with advanced challenges
          1. Working with shaders in depth
        2. Time for action – creating a custom font with a text shader
          1. What just happened?
        3. Time for action – creating a fire effect with a particle shader
          1. What just happened?
          2. Advanced data saving
        4. Time for action – saving the player's position
          1. What just happened?
          2. Making a more polished GUI
        5. Time for action – creating a reusable GUI Skin
          1. What just happened?
        6. Time for action – making an automatically scaling GUI texture
          1. What just happened?
          2. Lighting your scenes perfectly
        7. Time for action – adding realism to your scene with lightmapping
          1. What just happened?
          2. Have a go hero – experiment with Light Probes in Unity Pro
          3. Making your world feel real with Physics Materials
        8. Time for action – applying an ice Physics Material
          1. What just happened?
          2. Have a go hero – playing with other Physics Materials
          3. Have a go hero – making Physics Materials react realistically
        9. Popular game development methodologies
          1. The Waterfall model
          2. The Agile methodology
          3. The Scrum methodology
        10. Basic design patterns for larger code projects
          1. The Singleton pattern
          2. The Factory pattern
          3. The Command pattern
          4. Have a go hero – implement one of the preceding patterns
        11. Getting started with version control
        12. Time for action – creating a BitBucket repository
          1. What just happened?
        13. Time for action – preparing Unity for version control
          1. What just happened?
        14. Time for action – making your first commit and push
          1. What just happened?
        15. Finding your own answers to questions online
          1. Stack Overflow
          2. OUYA Forums
          3. Unity Forums
          4. Pop quiz – leaving the nest
        16. Summary
      18. A. Pop Quiz Answers
        1. Chapter 2, Installing Unity and the OUYA ODK
          1. Pop quiz – small parts of a whole
        2. Chapter 3, Diving into Development
          1. Pop quiz – hello world
        3. Chapter 4, Moving Your Player with Controller Input
          1. Pop quiz – coming full circle
        4. Chapter 5, Enhancing Your Game with Touch Dynamics
          1. Pop quiz – touching the sky
        5. Chapter 6, Saving Data to Create Longer Games
          1. Pop quiz – saving (and loading) the day
        6. Chapter 7, Expanding Your Gameplay with In-app Purchases
          1. Pop quiz – talking shop
        7. Chapter 8, Polishing and Prepping Your Game for Deployment
          1. Pop quiz – the end of the beginning
        8. Chapter 9, Blazing Your Own Development Trail
          1. Pop quiz – leaving the nest
      19. Index