Spreading your wings

Run the project. Tap the screen to make Pierre fly higher; release to let him fall. Play with the action; Pierre rotates toward his vector and builds or loses momentum as you tap and release. Terrific! You have successfully implemented the core mechanic of our game. Take a minute to enjoy flying up and down, as in this screenshot:

Spreading your wings

Get Swift Game Development - Third Edition 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.