Book Image

Practical Game Design with Unity and Playmaker

By : Sergey Mohov
Book Image

Practical Game Design with Unity and Playmaker

By: Sergey Mohov

Overview of this book

<p>Unity is a powerful yet intuitive game development tool and environment for creation of interactive 3D and 2D content.&nbsp; Playmaker&nbsp; is&nbsp; a&nbsp; flexible&nbsp; visual&nbsp; state&nbsp; machine&nbsp;&nbsp; editor and runtime library for Unity 3D that facilitates visual scripting for Unity 3D.</p> <p>This book is a step-by-step tutorial that thoroughly explains how to make a game from scratch quickly and effortlessly. This books details the steps required to make a game in seven chapters, each of them examining one of the aspects of game development in the most practical and concise way possible.</p> <p>This book starts by explaining you the component-based approach to game development. It then moves on to teach you how to use state machine's interface to make a game with minimum code and how to add AI and Photon networking to it. The book then progresses through helping you understand how to write a Kongregate API code and upload your game on it. The book finally ends up enabling you to make a complete web Multiplayer game in Unity and add an external API to it.</p>
Table of Contents (14 chapters)

Exercises


There are some exercises that I would like to suggest that you try doing before you move on to the next chapters, which cover more advanced topics. You already know the basics of Unity and Playmaker—enough to make your game better or make a completely new one from scratch. Doing these exercises will improve your skills and help consolidate the new information that you have been exposed to in this book. Exercises are sorted by difficulty, from the easiest to the hardest one:

  1. Debug log all the important events in the game, including puck hits, goal hits, and wall collisions for both mallets.

  2. Hit sounds: Your Wall prefab has a FSM. Use it to play some sounds when a mallet and/or a puck hits the wall. Freesound.org is a good resource for free sound effects. If you are more into retro sounds, try bfxr.net.

  3. Multiple levels: Try making multiple levels with obstacles/additional walls in the middle. You can just duplicate them all over the place and then, when the round is over, move on to...