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

This chapter was shorter than most of the other chapters in this book. Nevertheless, we finished building the Cube Runner game by adding a proper game-over features, explosions, and a vibration in the case of a crash with a cube. We set up Game Center to collect the scores.

Although the game is pretty entertaining, there's always room for improvement; for example, different lanes could easily be added, or you could use different building functions for every section. You might even want to change the texture and shape of the cube to create planets. A bullet shooting from the jet could be added to wipe out small cubes inside the lanes.

However, adding these enhancements could be challenging. Nevertheless, by now you must have a good amount ...

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