This is a learning project for using Objective-C Game Framework Cocos2D with the new Apple programming language named Swift .
The idea was to learn Cocos2D and Swift at the same time. Started working with Swift with XCode Beta 4 and learned alot of things along the way. Some annoying some very cool.
This project is based mostly of the book “Learning iPhone Game Development with Cocos2D 3.0” by Kiril Muzykov – http://kirillmuzykov.com/.
Also thanks to the following Whackylabs article for helping in setting up the Swift XCode Project:
http://whackylabs.com/rants/?p=1053
Below are some of the findings during this project related to Objective-C and Swift mostly, Cocos2D works preatty solidly ported from Objective-C to Swift:
Things learned from Objective-C – Cocos2D porting and testing in Swift – Part 2
Things learned from Objective-C – Cocos2D porting and testing in Swift – Part 1
You can check out the Source Code for the project in GitHub:
https://github.com/lionadi/Objective-CCocos2DToSwift
If you are having trouble with Cocos2D in Swift hope this sample code helps.