How to Make a Game Like Flappy Bird in Swift Step 1: Scene Size - - PowerPoint PPT Presentation

how to make a game like flappy bird in swift
SMART_READER_LITE
LIVE PREVIEW

How to Make a Game Like Flappy Bird in Swift Step 1: Scene Size - - PowerPoint PPT Presentation

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!


slide-1
SLIDE 1

How to Make a Game Like Flappy Bird in Swift

Step 1: Scene Size and Aspect Ratios

slide-2
SLIDE 2
slide-3
SLIDE 3
slide-4
SLIDE 4

Prerequisites

Swift Knowledge

Swift Video Tutorials iOS Apprentice

Sprite Kit Knowledge

Free tutorials on our site iOS Games by Tutorials

… or YOLO!

slide-5
SLIDE 5

Aspect Ratios and Screen Sizes

slide-6
SLIDE 6

Scene Size vs. Screen Size

Aspect Fill Aspect Fit Fill

Scene Size

640x640

slide-7
SLIDE 7

Option 1: Same Scene Size, Aspect Fill

slide-8
SLIDE 8

Problem: Cuts Off Evenly

slide-9
SLIDE 9

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

slide-10
SLIDE 10

Adding Background

1.77 aspect ratio 1.5 aspect ratio Background.png Ground.png playableStart winSize.height playableHeight

slide-11
SLIDE 11

Demo: Adding Background

slide-12
SLIDE 12

Challenge Time!