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

Got some compiling errors shown in the image when the simulator is iPhone 5s, OK on iPhone 5

LiLejia opened this issue · comments

Same errors here

same problem

tye this
line 35 for var i = 0; Float(i) < 2.0 + Float(self.frame.size.width) / Float(groundTexture.size().width * 2.0 ); ++i
line 72 var distanceToMove = Double(self.frame.size.width + 2.0 * pipeTextureUp.size().width);

I found that casting values to CGFloat worked.

the same!

alright i merged #3 so this should be fixed