newlinedotco / FlappySwift

swift implementation of flappy bird. More at fullstackedu.com

Home Page:https://www.fullstackedu.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bird can fly off the screen

albertor24 opened this issue · comments

If you keep touching the screen, the bird is able to fly off the screen and avoid all obstacles. This can be easily fixed by adding

if bird.position.y > self.frame.size.height {
bird.position.y = self.frame.size.height
}

inside override func update(currentTime: CFTimeInterval)

The bird can fly off the screen? That's what we call "innovation" and not "issue". héhé. Thank you for the solution, I was having the same problem.

I support bird freedom