O'Reilly logo

Practical Game Design with Unity and Playmaker by Sergey Mohov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Creating Your First Game

In Chapter 3, Components and State Machines, you made your first game mechanic for the air hockey game, which we are going to keep improving for the rest of this book. You made a puck and a mallet that is controlled using the mouse pointer and pushes the puck. The pushing mechanic was rather complex and requires some in-depth analysis, which will be the first thing we talk about in this chapter. This chapter is going to cover the following topics:

  • Using vector geometry and physics
  • Win/lose conditions
  • Creating artificial intelligence
  • Playmaker debugging

In the end, I will give you a couple of exercises that you will be able to complete with skills and knowledge you will have acquired by the end of this chapter, as ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required