Video Tutorial: How To Make a Game Like Flappy Bird in Swift Part 9: Sharing Score

Learn how to let the player share their score with other users using the Activity View Controller. By Ray Wenderlich.

Leave a rating/review
Save for later
Share

Contents

Hide contents

Video Tutorial: How To Make a Game Like Flappy Bird in Swift Part 9: Sharing Score

1 min

Challenge

Your challenge is to:

  • Add a “tutorial screen” before the game begins, using the “Tutorial” and “Ready” sprites
  • The initial state should be GameStateTutorial; when the user taps you should switch to GameStatePlay
  • Be sure to create switchToGame and switchToPlay methods
  • Hint: If you’re doing it right, there shouldn’t be any setup calls in initWithSize:delegate: anymore!

Please Note: The artwork in this game is by Mike Berg at weheartgames.com. He’s a great guy, highly recommended btw! :] You have permission to use the code from this game in your own apps, but you do not have permission to use the artwork.

Download lecture slides

Download demo starter

Download demo finished

Download challenge finished

View next video: Main Menu
View previous video: Presenting a Scorecard

We’ve added a new feature to our newest videos, English subtitles! You can now click the ‘CC’ button in the video player bar to turn subtitles on or off.

Contributors

Over 300 content creators. Join our team.