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 fire effect with a particle shader


Basic Particle System objects in Unity don't look very distinct; by default, they emit white particles in an inverted cone shape that slowly travel upwards, as shown in the following screenshot:

Before you knew about shaders, it was impossible to change the color or graphical effects on any Particle System object. However, you now know how to create materials with custom shaders that can be applied to any game object, including Particle System objects:

  1. Create a Particle shader with an Additive effect so that the particles look brighter when they overlap.

  2. Use this in combination with the Particle System properties in the Inspector window to create a semi-realistic fire effect, as demonstrated in the following screenshot:

The torch effect in the preceding example makes use of the Emission, Shape, and Color over Lifetime properties of the Particle System objects. The more you enable, the more you can customize your effect to look just...