O'Reilly logo

Mastering Oculus Rift Development by Jack Donovan

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

Implementing gameplay around input

The controls to your game are the crux of your player's experience, so it's important to make each action feel like it impacts the game in a meaningful way. A control scheme that includes jumping wouldn't suit a level with no obstacles to jump over, and a control scheme that includes shooting won't do if there's nothing to shoot at.

In this section, we'll create some targets for the firing mechanic you created in the previous section, and the objectives of our game will start to take form (as will our level's environment).

Creating a target dummy

Eventually, the targets in our game will be other real players when we implement online multiplayer later in this book, but for now, we'll just implement a target dummy ...

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