[One of iOS-Cocos2d Game Development] Build cocos2d game engine environment helloworld!

Source: Internet
Author: User

Li huaming himiOriginal, reprinted must be explicitly noted:
Reprinted from[Heimi gamedev block]Link: http://www.himigame.com/iphone-cocos2d/415.html

After carefully understanding the iOS game development engine, commonly used cocos2d and unity engines in recent days, unity is not free, while cocos2d is free and open-source;

Finally, I chose cocos2d for two reasons:

1. The most important reason is its corresponding development tools, especially the"Participant designer", Particle system Editor, very fond of (pay $7.99 USD), download the trial version of the Operation below, did not say,; below: (then took out a credit card to buy, it was just a little unexpected. I didn't buy it. I had to cough up and talk about it later)

2. its cocos2d-x cross-platform very optimistic, because I also developed the Android system, it is clear that the android game engine cocos2d also has its corresponding version; such an engine can be used on both platforms, he Lewei;

This section describes how to build a development environment for the cocos2d engine:

Step 1: download the latest cocos2d-iphone version; Address: http://code.google.com/p/cocos2d-iphone/downloads/list (current latest 1.0)

Step 2: Decompress the downloaded file to the "document". (click "Finder" and click "document" on the left ");

Step 3: Start the terminal. (Click Finder-go-utility-Terminal)

Step 4: first use the command to enter the current "CD documents" to enter the Documents folder, then "CD cocos2d-iphone-1.0.0" to enter the cocos2d engine folder, and finally"/Install-templates.sh-u"Command to start cocos2d installation,

When you see done, it means it is finished. Then open xcode and create a new project. On the left side, you can see "cocos2d 1.0.0". After you click it, The cocos2d-based framework is on the right side, as shown in:

Then, we create a cocos2d application, run build & run directly, and then run the simulator as follows:

OK. the development environment of the cocos2d engine and the creation of an instance project are also running normally, so we will keep writing about the cocos2d EngineArticle, Hope you can give more advice;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.