Pages

Setting up Cocos2d-x in Mac OSX for iOS Game Development

Tuesday, March 26, 2013

Cocos2d-x support multi-platform game development including iOS game developments. In this tutorial I will discuss how to install the Cocos2d-x game engine in your workstation for iOS game development.

Prerequisites:

  • Mac OSX version 10.6 or upper.
  • XCode 3.2.5+ 

Steps:

  1. Download the Cocos2d-x library form here. You can visit the Cocos2d-x download page and installed any stable version. I have installed cocos2d-2.1rc0-x-2.1.2 version for this tutorial. Right now this is the stable version for the Cocos2d-x. You can installer previous versions at your choice. For the latest release there is some changes in the core library. So, be careful when you select other versions.

  2. Unpack the ZIP file to a location of your choice. I recommend putting it in an easily accessible place. Rename it as you wish but it would be better to just leave it be once you unpacked it. For this tutorial, I will refer the path as $COCOS2DX_PATH. You should replace this variable with your cocos2d-x folder location.

  3. Now open up the Terminal and change the directory to the Cocos2d-x Root using the cd command.
    cd $COCOS2DX_PATH

  4. Inside the $COCOS2DX_PATH folder run the install-templates-xcode.sh using the sudo command like
    sudo install-templates-xcode.sh

    You might asked for password to install the template for security reason.

  5. After you successfully installed the template you can create your first cocos2d-x game using Xcode. Open the Xcode and select "Create a new Xcode project". This will open a popup to select a project type. Select cocox2d-x project type form iOs section and choose cocos2dx. Now enter the product name and select the project directory.

    Create a new cocos2d-x proejct

  6. Now, run the application from xcode and you will see your first hello-world project for cocos2d-x game in the iOS emulator.
Thats it,  now you are now all set to develop your 2d game in cocos2d-x for iOS platform. 

10 comments

  1. Hi my family member! I want to say that this article is amazing, nice written and include approximately
    all vital infos. I'd like to peer extra posts like this .

    Feel free to visit my webpage ... Papers Please

    ReplyDelete
  2. I could not refrain from commenting. Perfectly written!

    Take a look at my blog post - Video Keyword Suggestions

    ReplyDelete
  3. I'm not sure why but this website is loading incredibly slow for me. Is anyone else having this problem or is it a problem on my end? I'll check back later
    on and see if the problem still exists.

    Feel free to visit my homepage :: Path of Exile Wraeclast

    ReplyDelete
  4. I think the admin of this web site is really working hard in support of his
    website, for the reason that here every information is quality
    based stuff.

    Feel free to visit my webpage; Path Of Exile Commentary

    ReplyDelete
  5. Hello, yup this paragraph is in fact fastidious and I
    have learned lot of things from it concerning blogging.
    thanks.

    My homepage ... Dota 2

    ReplyDelete
  6. You really make it seem so easy with your presentation but I find this
    matter to be really something that I think I would never understand.
    It seems too complicated and very broad for me. I'm looking forward for your next post, I'll try to get the hang of it!


    Feel free to visit my blog: Game Dev Story

    ReplyDelete
  7. Hi there! Do you know if they make any plugins to help with Search Engine Optimization?
    I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good
    success. If you know of any please share. Kudos!


    my weblog: Minecraft Bukkit Server

    ReplyDelete
  8. I am curious to find out what blog system you have been using?
    I'm experiencing some minor security issues with my latest website and I'd like to find something
    more secure. Do you have any recommendations?

    My site Action RPG

    ReplyDelete
  9. Many thanks for the exciting blog posting! I really enjoyed reading it, you are a brilliant writer. I actually added your blog to my favorites and will look forward for more updates. Great Job, Keep it up..
    cocos2d-x game development

    ReplyDelete
  10. Setting Up Cocos2D-X In Mac Osx For Ios Game Development
    -
    Developers Circle >>>>> Download Now

    >>>>> Download Full

    Setting Up Cocos2D-X In Mac Osx For Ios Game Development
    -
    Developers Circle >>>>> Download LINK

    >>>>> Download Now

    Setting Up Cocos2D-X In Mac Osx For Ios Game Development
    -
    Developers Circle >>>>> Download Full

    >>>>> Download LINK Gd

    ReplyDelete