Video Tutorial: How To Make a Game Like Flappy Bird in Swift Part 2: Player Movement

Learn how to create your own mini physics engine to move your sprite and get the specific behavior and feel you want for your game. 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 2: Player Movement

1 min

Challenge

Your challenge is to:

  • On scene initialization, create a “play sound effect” action for each sound file in the project
  • Store the actions in instance variables for use later
  • Play the “flap” sound when the user taps the screen

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: Moving The Background
View previous video: Scene Size and Aspect Ratios

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.