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

Chapter 7. Polishing Flappy Swift

We ended the previous chapter with a complete clone of Flappy Bird.

Although the game is fun and you can play exactly as you do in the original, you might have noticed that the game is lacking something that makes professional games more interesting to play.

The goal of this chapter is to fill this lacuna by adding some juiciness and integrating the game with the Game Center to create a leaderboard and increase the engagement of your players.

Adding juiciness

Juiciness in a game or an app can be defined as all the effects such as sounds, zooming, or shaking elements. Although they are not indispensable to the game, they make the experience of gaming more pleasant.

Let there be sounds!

The first thing we add is sound ...

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