Book Image

Unity 2017 Mobile Game Development

By : John P. Doran
Book Image

Unity 2017 Mobile Game Development

By: John P. Doran

Overview of this book

Unity has established itself as an overpowering force for developing mobile games. If you love mobile games and want to learn how to make them but have no idea where to begin, then this book is just what you need. This book takes a clear, step-by-step approach to building an endless runner game using Unity with plenty of examples on how to create a game that is uniquely your own. Starting from scratch, you will build, set up, and deploy a simple game to a mobile device. You will learn to add touch gestures and design UI elements that can be used in both landscape and portrait mode at different resolutions. You will explore the best ways to monetize your game projects using Unity Ads and in-app purchases before you share your game information on social networks. Next, using Unity’s analytics tools you will be able to make your game better by gaining insights into how players like and use your game. Finally, you’ll learn how to publish your game on the iOS and Android App Stores for the world to see and play along.
Table of Contents (11 chapters)

Adding particle effects

The game itself currently works, but it could use some more polish. One of the things we do to increase the polish of game is make use of particle systems; let's get started:

  1. First, select the Player in the Hierarchy window and right-click and select Effects | Particle System.
    This will make this system a child of the player, which will be good for what we are going to do.
  2. Change the Start Speed to 0 and the Simulation Space to World.

  1. Open up the Shape section by clicking on it. Change the Shape to Sphere and set the Radius to 0 (it will automatically change to 0.01).
  2. Then, change the Start Color to something to make it easy to see, such as purple:

This is a step in the right direction.The particles are now following the player, but there's still a number of things we can do to improve this.

  1. Instead of just a single color, we can change...