Book Image

Swift by Example

By : Giordano Scalzo
Book Image

Swift by Example

By: Giordano Scalzo

Overview of this book

Table of Contents (15 chapters)

Summary


This chapter was shorter than most of the others in this book. Nevertheless, we finished building the Cube Runner game by adding a proper game over feature, 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 fun, there's always room for improvement; for example, different lanes could easily be added, or you could put 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 some small cubes inside the lanes.

However, adding these enhancements could be challenging. Nevertheless, you must have a good amount of knowledge of Swift and the frameworks by now—enough to start developing iOS apps in Swift on your own.