how to make a game like flappy bird in swift
play

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!


  1. How to Make a Game Like Flappy Bird in Swift Step 1: Scene Size and Aspect Ratios

  2. Prerequisites Swift Knowledge Swift Video Tutorials iOS Apprentice Sprite Kit Knowledge Free tutorials on our site iOS Games by Tutorials … or YOLO!

  3. Aspect Ratios and Screen Sizes

  4. Scene Size vs. Screen Size Scene Size 640x640 Aspect Fill Aspect Fit Fill

  5. Option 1: Same Scene Size, Aspect Fill

  6. Problem: Cuts Off Evenly

  7. Option 2: Same Width, Different Aspect Ratio Width: 320 Height: 320 x ratio 320 x 1.5 = 480 320 x 1.7777 = 568 320x568 320x480

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

  9. Demo: Adding Background

  10. Challenge Time!

Recommend


More recommend