Objective-C Cocos2D in Swift

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

Cocos2D Objective-C to Swift

Cocos2D Objective-C to Swift

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

Swift Objective-C and Cocos2d

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s