how to make a game like flappy bird in swift€¦ · how to make a game like flappy bird in swift...

Post on 28-Sep-2020

7 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

How to Make a Game Like Flappy Bird

in Swift

Step 1: Scene Size and Aspect Ratios

Prerequisites

Swift Knowledge Swift Video Tutorials iOS Apprentice

Sprite Kit Knowledge Free tutorials on our site iOS Games by Tutorials

… or YOLO!

Aspect Ratios and Screen Sizes

Scene Size vs. Screen Size

Aspect Fill Aspect Fit Fill

Scene Size 640x640

Option 1: Same Scene Size, Aspect Fill

Problem: Cuts Off Evenly

Option 2: Same Width, Different Aspect Ratio

Width: 320 Height: 320 x ratio 320 x 1.5 = 480 320 x 1.7777 = 568

320x480 320x568

Adding Background1.77 aspect ratio

1.5 aspect ratioBackground.png

Ground.pngplayableStart

0

winSize.height

playableHeight

Demo: Adding Background

Challenge Time!

top related