Chapter 7. Throwing Your Weight Around – Physics and a 2D Camera
In the previous chapter, we learned about the special features of a mobile device and how to create touch and tilt controls. We also created a Space Fighter game to use these new controls. The steering of the ship was done by tilting the device and shooting by touching the screen. Using some special movement tricks, we gave the player an infinite amount of space to fly and enemies to fight.
In this chapter, we take a short break from the Space Fighter game to explore Unity's physics engine. We will also take a look at options for creating a 2D game experience. To do all of this, we will be recreating one of the most popular mobile games on the market, Angry Birds. We will use physics to throw birds and destroy structures. We will also take a look at the creation of a level-selection screen.
In this chapter, we will be covering the following topics:
- Unity Physics
- Parallax scrolling
- Isometric camera
- Level...