cocos2d-x-samples
cocos2d-x-samples copied to clipboard
Swift sample does not with with xcode6 beta4
Due to some changes in Xcode6 beta4, the Swift example does not work out of the box. A line like var a = CGFloat(aFixedValue) results in an error saying CGFloat is not convertible to UInt8. It can be fixed with an extra cast var a = CGFloat(Uint(aFixedValue)) but I doubt this is the right solution in the long run
Actually the cast must be to Int, not UInt, or the Tetris game crashes
Beta5 fixes some of these issues. I will do a code pass on this soonish and get it to build with Beta5.
Justin, try Beta6 instead of Beta5, just in case.
Sorry, I meant Beta6 :)