Cocos2d development and learning 1: Development Environment establishment and entry-level learning resources

Source: Internet
Author: User

Since the recent project is in a simple schedule, visit the cocoachina forum to see 2-3 tutorials on cocos2d-html5 development.

So I thought that the iOS platform is actually more entertaining, and the application categories are all fighting for the background of users accumulated on traditional PCs.

Gaming is generally less demanding on the background. After all, the pursuit is still creative and entertaining.

Cocos2d, as a game development engine, has been derived from the HTML5 version mentioned above, and now more popular cocos2d-x.

Based on the traditional introduction and development languages:

Cocos2d-html5 I have not seen specific, but look at the name, is the class web development, then the front-end language base JS what should be more important, I have not touched the front-end ~

Cocos2d-x, originally, made a Android and iOS contacts, this should be a good choice, but the tragedy is that this is based on C ++ programming. The C ++ syntax only understands a little bit.

Cocos2d is basically biased towards objective-C, and I am new to developing an iOS project about the company, so I can be better familiar with OC.

So I want to learn the original version cocos2d. After I have almost understood the basics of the engine, I will go deep into the C ++ syntax, and it will not be too embarrassing to get started.


Question: Build the environment

1. Download The cocos2d dependency package, but it is encapsulatedTemplate resources for use, googlecode: http://code.google.com/p/cocos2d-iphone/downloads/list

Official website address: http://www.cocos2d-iphone.org /.

2. decompress the package and run the Installation Template to xcode: Enter $ sudo./install_template.sh in the decompressed folder under the terminal to install the template to xcode.

3. Check the command line prompt. When you open xcode to create a project, you will be able to see

4. You can create a helloword project according to the template.

5. At the same time, you can go to the downloaded and decompressed folder with an example code project.

The environment is basically so simple.


Learning Resources

I personally think there are actually a lot of resources on the Internet, so I have to say nothing about the forum.

Csdn also has several major tutorials.

However, I prefer a simple demo,

To put it bluntly, it is not difficult to get started when learning a new technology, because you have a programming Foundation.

The most important thing is to familiarize yourself with the Framework process of a project and then call various APIs. There may be a lot of algorithms for the game. Of course that's not enough.

Therefore, my habit is to familiarize myself with the basic API and process with a project demo after I have understood the basic concepts.

Here, we recommend the online process: Zhiyi cocos2d game development tutorial, which seems to include a game of tank wars. I am stupid. I started to contact and build the environment yesterday afternoon and then asked for information, why can't I find the demo? (there is only a tutorial, but the most important thing to do a game is to have material resources. If you want to know it, you can recommend an iPhone library website ).

In addition, we recommend a good ebook, the Chinese version of learn iPhone and iPad cocos2d game development.

I think it's pretty good. I uploaded it to my resources: http://download.csdn.net/detail/nono_love_lilith/4422448.

You can learn by yourself based on the book above, and it is estimated that the progress will be faster. I just want to take my study notes and I have to wait for the updates.

In general, it hurts me too much ~

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.