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 ...

Get Swift: Developing iOS Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.