Cocos2d project overall framework-create a "Test2d" Project

Source: Internet
Author: User

IOS development is the most popular, cocos2d-x is a very good engine, worthy of everyone's learning, of course, blue ou is also worth everyone's attention! Today, I will explain the overall Cocos2d project framework and startup process!

I. First, I would like to explain how to create a project named "Test2d ".

InXcodeThe file structure seen in Group & Files in

650) this. width = 650; "title =" 1.jpg" alt = "153651956.jpg" src =" http://www.bkjia.com/uploads/allimg/131228/09364A350-0.jpg "/>

Cocos2dSources: storesCocos2dSource code

Classes: stores the source code of this application.

OtherSources: main function of the program entry

Resources: stores images, icons, and sound files of the project.

Frameworks: Framework, followed by the START process

Enter from the main function:

650) this. width = 650; "title =" 2.jpg" alt = "153846717.jpg" src =" http://www.bkjia.com/uploads/allimg/131228/09364623a-1.jpg "/>

The row 5th mark passes control of the program to the application proxy objects Test2dAppDelegate and Test2dAppDelegate.

650) this. width = 650; "title =" 3.jpg" alt = "153924920.jpg" src =" http://www.bkjia.com/uploads/allimg/131228/0936463525-2.jpg "/>

The third line shows that Test2dAppDelegate implements the system-defined application interface UIApplicationDelegate.

II,Various system events to be handled by the current application:

Give up control: applicationWillResignActive

Get control: applicationDidBecomeActive

Memory alert: applicationDidReceiveMemoryWarning

Application exit prompt: applicationWillTerminate

System time change: applicationSignificantTimeChange

650) this. width = 650; "title =" 4.jpg" alt = "154227802.jpg" src =" http://www.bkjia.com/uploads/allimg/131228/0936463B5-3.jpg "/>

To pay attention to the blue Gull is to pay attention to the technology, the top faculty, and the most awesome iOS training courses, so that you do not regret it!

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.