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!