O'Reilly logo

Swift 2 By Example by Giordano Scalzo

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

Summary

In this chapter, we shifted gears and introduced a new framework. You learned about the most common and useful features when it comes to building a video game.

You also learned how to implement scrolling using different speeds to simulate depth. Then, we added a character, animated it, and made it move.

Finally, we introduced a physics engine. It is useful for many purposes, including collision detection. Although the game is functionally complete, in the next chapter we'll continue to polish it by adding music, video, sound effects, and a connection to the Game Center.

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