diff --git a/libs/cocos2d-x b/libs/cocos2d-x deleted file mode 120000 index 6ad4049..0000000 --- a/libs/cocos2d-x +++ /dev/null @@ -1 +0,0 @@ -../../cocos2d-x/ diff --git a/proj.ios_mac/Mac-Info.plist b/proj.ios_mac/Mac-Info.plist deleted file mode 100644 index 26a4afc..0000000 --- a/proj.ios_mac/Mac-Info.plist +++ /dev/null @@ -1,36 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIconFile - Icon - CFBundleIdentifier - org.cocos2dx.${PRODUCT_NAME} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSApplicationCategoryType - public.app-category.games - LSMinimumSystemVersion - ${MACOSX_DEPLOYMENT_TARGET} - NSHumanReadableCopyright - Copyright © 2014. All rights reserved. - NSMainNibFile - MainMenu - NSPrincipalClass - NSApplication - - diff --git a/proj.ios_mac/Programmers Guide.xcodeproj/project.pbxproj b/proj.ios_mac/Programmers Guide.xcodeproj/project.pbxproj deleted file mode 100644 index 0d82015..0000000 --- a/proj.ios_mac/Programmers Guide.xcodeproj/project.pbxproj +++ /dev/null @@ -1,4457 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 258B03651A8908D70078E3EF /* Chapter6_3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 258B03631A8908D70078E3EF /* Chapter6_3.cpp */; }; - 258B03661A8908D70078E3EF /* Chapter6_3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 258B03631A8908D70078E3EF /* Chapter6_3.cpp */; }; - 258B036A1A89131B0078E3EF /* Button_Disable.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03671A89131B0078E3EF /* Button_Disable.png */; }; - 258B036B1A89131B0078E3EF /* Button_Disable.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03671A89131B0078E3EF /* Button_Disable.png */; }; - 258B036C1A89131B0078E3EF /* Button_Normal.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03681A89131B0078E3EF /* Button_Normal.png */; }; - 258B036D1A89131B0078E3EF /* Button_Normal.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03681A89131B0078E3EF /* Button_Normal.png */; }; - 258B036E1A89131B0078E3EF /* Button_Press.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03691A89131B0078E3EF /* Button_Press.png */; }; - 258B036F1A89131B0078E3EF /* Button_Press.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03691A89131B0078E3EF /* Button_Press.png */; }; - 258B03731A892CFD0078E3EF /* Chapter6_4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 258B03711A892CFD0078E3EF /* Chapter6_4.cpp */; }; - 258B03741A892CFD0078E3EF /* Chapter6_4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 258B03711A892CFD0078E3EF /* Chapter6_4.cpp */; }; - 258B037A1A892DC90078E3EF /* CheckBox_Disable.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03751A892DC90078E3EF /* CheckBox_Disable.png */; }; - 258B037B1A892DC90078E3EF /* CheckBox_Disable.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03751A892DC90078E3EF /* CheckBox_Disable.png */; }; - 258B037C1A892DC90078E3EF /* CheckBox_Normal.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03761A892DC90078E3EF /* CheckBox_Normal.png */; }; - 258B037D1A892DC90078E3EF /* CheckBox_Normal.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03761A892DC90078E3EF /* CheckBox_Normal.png */; }; - 258B037E1A892DC90078E3EF /* CheckBox_Press.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03771A892DC90078E3EF /* CheckBox_Press.png */; }; - 258B037F1A892DC90078E3EF /* CheckBox_Press.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03771A892DC90078E3EF /* CheckBox_Press.png */; }; - 258B03801A892DC90078E3EF /* CheckBoxNode_Disable.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03781A892DC90078E3EF /* CheckBoxNode_Disable.png */; }; - 258B03811A892DC90078E3EF /* CheckBoxNode_Disable.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03781A892DC90078E3EF /* CheckBoxNode_Disable.png */; }; - 258B03821A892DC90078E3EF /* CheckBoxNode_Normal.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03791A892DC90078E3EF /* CheckBoxNode_Normal.png */; }; - 258B03831A892DC90078E3EF /* CheckBoxNode_Normal.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03791A892DC90078E3EF /* CheckBoxNode_Normal.png */; }; - 258B03861A892F330078E3EF /* Chapter6_5.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 258B03841A892F330078E3EF /* Chapter6_5.cpp */; }; - 258B03871A892F330078E3EF /* Chapter6_5.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 258B03841A892F330078E3EF /* Chapter6_5.cpp */; }; - 258B03891A892FF60078E3EF /* LoadingBarFile.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03881A892FF60078E3EF /* LoadingBarFile.png */; }; - 258B038A1A892FF60078E3EF /* LoadingBarFile.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03881A892FF60078E3EF /* LoadingBarFile.png */; }; - 258B038D1A8942A40078E3EF /* Chapter6_6.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 258B038B1A8942A40078E3EF /* Chapter6_6.cpp */; }; - 258B038E1A8942A40078E3EF /* Chapter6_6.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 258B038B1A8942A40078E3EF /* Chapter6_6.cpp */; }; - 258B03941A8942ED0078E3EF /* Slider_Back.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B038F1A8942ED0078E3EF /* Slider_Back.png */; }; - 258B03951A8942ED0078E3EF /* Slider_Back.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B038F1A8942ED0078E3EF /* Slider_Back.png */; }; - 258B03961A8942ED0078E3EF /* Slider_PressBar.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03901A8942ED0078E3EF /* Slider_PressBar.png */; }; - 258B03971A8942ED0078E3EF /* Slider_PressBar.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03901A8942ED0078E3EF /* Slider_PressBar.png */; }; - 258B03981A8942ED0078E3EF /* SliderNode_Disable.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03911A8942ED0078E3EF /* SliderNode_Disable.png */; }; - 258B03991A8942ED0078E3EF /* SliderNode_Disable.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03911A8942ED0078E3EF /* SliderNode_Disable.png */; }; - 258B039A1A8942ED0078E3EF /* SliderNode_Normal.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03921A8942ED0078E3EF /* SliderNode_Normal.png */; }; - 258B039B1A8942ED0078E3EF /* SliderNode_Normal.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03921A8942ED0078E3EF /* SliderNode_Normal.png */; }; - 258B039C1A8942ED0078E3EF /* SliderNode_Press.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03931A8942ED0078E3EF /* SliderNode_Press.png */; }; - 258B039D1A8942ED0078E3EF /* SliderNode_Press.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03931A8942ED0078E3EF /* SliderNode_Press.png */; }; - 258B03A01A8948CD0078E3EF /* Chapter6_7.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 258B039E1A8948CD0078E3EF /* Chapter6_7.cpp */; }; - 258B03A11A8948CD0078E3EF /* Chapter6_7.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 258B039E1A8948CD0078E3EF /* Chapter6_7.cpp */; }; - 258B03AA1A8965110078E3EF /* isometric_grass_and_water.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03A81A8965110078E3EF /* isometric_grass_and_water.png */; }; - 258B03AB1A8965110078E3EF /* isometric_grass_and_water.png in Resources */ = {isa = PBXBuildFile; fileRef = 258B03A81A8965110078E3EF /* isometric_grass_and_water.png */; }; - 258B03AC1A8965110078E3EF /* isometric_grass_and_water.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 258B03A91A8965110078E3EF /* isometric_grass_and_water.tmx */; }; - 258B03AD1A8965110078E3EF /* isometric_grass_and_water.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 258B03A91A8965110078E3EF /* isometric_grass_and_water.tmx */; }; - 258B03B01A8C0DF40078E3EF /* Chapter7_2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 258B03AE1A8C0DF40078E3EF /* Chapter7_2.cpp */; }; - 258B03B11A8C0DF40078E3EF /* Chapter7_2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 258B03AE1A8C0DF40078E3EF /* Chapter7_2.cpp */; }; - 258B03B41A8C10B60078E3EF /* Chapter7_3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 258B03B21A8C10B60078E3EF /* Chapter7_3.cpp */; }; - 258B03B51A8C10B60078E3EF /* Chapter7_3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 258B03B21A8C10B60078E3EF /* Chapter7_3.cpp */; }; - 25D87BA01A84036100456FF7 /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77617EB970100C73F5D /* Icon-120.png */; }; - 25D87BA11A84036100456FF7 /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77B17EB970100C73F5D /* Icon-76.png */; }; - 25D87BA21A84036100456FF7 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77417EB970100C73F5D /* Default@2x.png */; }; - 25D87BA31A84036100456FF7 /* Icon-100.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629517ECD46A001EB2F8 /* Icon-100.png */; }; - 25D87BA41A84036100456FF7 /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77817EB970100C73F5D /* Icon-152.png */; }; - 25D87BA51A84036100456FF7 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77217EB970100C73F5D /* Default-568h@2x.png */; }; - 25D87BA61A84036100456FF7 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77A17EB970100C73F5D /* Icon-72.png */; }; - 25D87BA71A84036100456FF7 /* Icon-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A117ECD613001EB2F8 /* Icon-50.png */; }; - 25D87BA81A84036100456FF7 /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 25D87BA91A84036100456FF7 /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77517EB970100C73F5D /* Icon-114.png */; }; - 25D87BAB1A84036100456FF7 /* Icon-29.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A017ECD613001EB2F8 /* Icon-29.png */; }; - 25D87BAD1A84036100456FF7 /* Icon-40.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629217ECD46A001EB2F8 /* Icon-40.png */; }; - 25D87BAE1A84036100456FF7 /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77717EB970100C73F5D /* Icon-144.png */; }; - 25D87BAF1A84036100456FF7 /* Icon-80.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629417ECD46A001EB2F8 /* Icon-80.png */; }; - 25D87BB31A84036100456FF7 /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77917EB970100C73F5D /* Icon-57.png */; }; - 25D87BB81A84036100456FF7 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77317EB970100C73F5D /* Default.png */; }; - 25D87BBA1A84036100456FF7 /* Icon-58.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629317ECD46A001EB2F8 /* Icon-58.png */; }; - 25D87BBD1A84036100456FF7 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FB17EB989F00D1A890 /* AppController.mm */; }; - 25D87BC01A84036100456FF7 /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FF17EB989F00D1A890 /* RootViewController.mm */; }; - 25D87BC21A84036100456FF7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FC17EB989F00D1A890 /* main.m */; }; - 25D87BC41A84036100456FF7 /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599319D492B60070A133 /* libcocos2d iOS.a */; }; - 25D87BC51A84036100456FF7 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6B0611A1803AB670077942B /* CoreMotion.framework */; }; - 25D87BC61A84036100456FF7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 25D87BC71A84036100456FF7 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 25D87BC81A84036100456FF7 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; }; - 25D87BC91A84036100456FF7 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB012928DE900B8313A /* OpenGLES.framework */; }; - 25D87BCA1A84036100456FF7 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 25D87BCB1A84036100456FF7 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 25D87BCC1A84036100456FF7 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 25D87BCD1A84036100456FF7 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 25D87BCE1A84036100456FF7 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 25D87BE41A84037000456FF7 /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 503AE0F617EB97AB00D1A890 /* Icon.icns */; }; - 25D87BEB1A84037000456FF7 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 503AE10317EB98FF00D1A890 /* main.cpp */; }; - 25D87BED1A84037000456FF7 /* libcocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599119D492B60070A133 /* libcocos2d Mac.a */; }; - 25D87BEE1A84037000456FF7 /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11117EB99EE00D1A890 /* libcurl.dylib */; }; - 25D87BEF1A84037000456FF7 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 25D87BF01A84037000456FF7 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11A17EB9C5A00D1A890 /* IOKit.framework */; }; - 25D87BF11A84037000456FF7 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78A17EB975400C73F5D /* OpenGL.framework */; }; - 25D87BF21A84037000456FF7 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78817EB974C00C73F5D /* AppKit.framework */; }; - 25D87BF31A84037000456FF7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 25D87BF41A84037000456FF7 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 25D87BF51A84037000456FF7 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 25D87BF61A84037000456FF7 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 25D87BF71A84037000456FF7 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 25D87C041A84045700456FF7 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 25D87BFE1A84045700456FF7 /* AppDelegate.cpp */; }; - 25D87C051A84045700456FF7 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 25D87BFE1A84045700456FF7 /* AppDelegate.cpp */; }; - 25D87C061A84045700456FF7 /* Chapter7.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 25D87C001A84045700456FF7 /* Chapter7.cpp */; }; - 25D87C071A84045700456FF7 /* Chapter7.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 25D87C001A84045700456FF7 /* Chapter7.cpp */; }; - 25D87C081A84045700456FF7 /* Chapter7_1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 25D87C021A84045700456FF7 /* Chapter7_1.cpp */; }; - 25D87C091A84045700456FF7 /* Chapter7_1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 25D87C021A84045700456FF7 /* Chapter7_1.cpp */; }; - 25F1DB671A85412000A31EA4 /* CloseNormal.png in Resources */ = {isa = PBXBuildFile; fileRef = 25F1DB651A85412000A31EA4 /* CloseNormal.png */; }; - 25F1DB681A85412000A31EA4 /* CloseNormal.png in Resources */ = {isa = PBXBuildFile; fileRef = 25F1DB651A85412000A31EA4 /* CloseNormal.png */; }; - 25F1DB691A85412000A31EA4 /* CloseSelected.png in Resources */ = {isa = PBXBuildFile; fileRef = 25F1DB661A85412000A31EA4 /* CloseSelected.png */; }; - 25F1DB6A1A85412000A31EA4 /* CloseSelected.png in Resources */ = {isa = PBXBuildFile; fileRef = 25F1DB661A85412000A31EA4 /* CloseSelected.png */; }; - 25F1DB6E1A85413100A31EA4 /* CloseNormal.png in Resources */ = {isa = PBXBuildFile; fileRef = 25F1DB6C1A85413100A31EA4 /* CloseNormal.png */; }; - 25F1DB6F1A85413100A31EA4 /* CloseNormal.png in Resources */ = {isa = PBXBuildFile; fileRef = 25F1DB6C1A85413100A31EA4 /* CloseNormal.png */; }; - 25F1DB701A85413100A31EA4 /* CloseSelected.png in Resources */ = {isa = PBXBuildFile; fileRef = 25F1DB6D1A85413100A31EA4 /* CloseSelected.png */; }; - 25F1DB711A85413100A31EA4 /* CloseSelected.png in Resources */ = {isa = PBXBuildFile; fileRef = 25F1DB6D1A85413100A31EA4 /* CloseSelected.png */; }; - 25F1DB801A8551F700A31EA4 /* bitmapRed.fnt in Resources */ = {isa = PBXBuildFile; fileRef = 25F1DB7E1A8551F700A31EA4 /* bitmapRed.fnt */; }; - 25F1DB811A8551F700A31EA4 /* bitmapRed.fnt in Resources */ = {isa = PBXBuildFile; fileRef = 25F1DB7E1A8551F700A31EA4 /* bitmapRed.fnt */; }; - 25F1DB821A8551F700A31EA4 /* bitmapRed.png in Resources */ = {isa = PBXBuildFile; fileRef = 25F1DB7F1A8551F700A31EA4 /* bitmapRed.png */; }; - 25F1DB831A8551F700A31EA4 /* bitmapRed.png in Resources */ = {isa = PBXBuildFile; fileRef = 25F1DB7F1A8551F700A31EA4 /* bitmapRed.png */; }; - 25F1DB8A1A85672E00A31EA4 /* Chapter6_2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 25F1DB881A85672E00A31EA4 /* Chapter6_2.cpp */; }; - 25F1DB8B1A85672E00A31EA4 /* Chapter6_2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 25F1DB881A85672E00A31EA4 /* Chapter6_2.cpp */; }; - 25F2FF9E1A78393800CE153F /* Chapter6_1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 25F2FF9C1A78393800CE153F /* Chapter6_1.cpp */; }; - 25F2FF9F1A78393800CE153F /* Chapter6_1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 25F2FF9C1A78393800CE153F /* Chapter6_1.cpp */; }; - 288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; }; - 296358BC19F78D4F003732AB /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77617EB970100C73F5D /* Icon-120.png */; }; - 296358BE19F78D4F003732AB /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77B17EB970100C73F5D /* Icon-76.png */; }; - 296358BF19F78D4F003732AB /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77417EB970100C73F5D /* Default@2x.png */; }; - 296358C019F78D4F003732AB /* Icon-100.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629517ECD46A001EB2F8 /* Icon-100.png */; }; - 296358C319F78D4F003732AB /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77817EB970100C73F5D /* Icon-152.png */; }; - 296358C519F78D4F003732AB /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77217EB970100C73F5D /* Default-568h@2x.png */; }; - 296358C619F78D4F003732AB /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77A17EB970100C73F5D /* Icon-72.png */; }; - 296358CB19F78D4F003732AB /* Icon-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A117ECD613001EB2F8 /* Icon-50.png */; }; - 296358CC19F78D4F003732AB /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 296358CD19F78D4F003732AB /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77517EB970100C73F5D /* Icon-114.png */; }; - 296358CE19F78D4F003732AB /* Icon-29.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A017ECD613001EB2F8 /* Icon-29.png */; }; - 296358CF19F78D4F003732AB /* Icon-40.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629217ECD46A001EB2F8 /* Icon-40.png */; }; - 296358D019F78D4F003732AB /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77717EB970100C73F5D /* Icon-144.png */; }; - 296358D119F78D4F003732AB /* Icon-80.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629417ECD46A001EB2F8 /* Icon-80.png */; }; - 296358D519F78D4F003732AB /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77917EB970100C73F5D /* Icon-57.png */; }; - 296358D919F78D4F003732AB /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77317EB970100C73F5D /* Default.png */; }; - 296358DA19F78D4F003732AB /* Icon-58.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629317ECD46A001EB2F8 /* Icon-58.png */; }; - 296358DE19F78D4F003732AB /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FB17EB989F00D1A890 /* AppController.mm */; }; - 296358E019F78D4F003732AB /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FF17EB989F00D1A890 /* RootViewController.mm */; }; - 296358E119F78D4F003732AB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FC17EB989F00D1A890 /* main.m */; }; - 296358E319F78D4F003732AB /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599319D492B60070A133 /* libcocos2d iOS.a */; }; - 296358E419F78D4F003732AB /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6B0611A1803AB670077942B /* CoreMotion.framework */; }; - 296358E519F78D4F003732AB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 296358E619F78D4F003732AB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 296358E719F78D4F003732AB /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; }; - 296358E819F78D4F003732AB /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB012928DE900B8313A /* OpenGLES.framework */; }; - 296358E919F78D4F003732AB /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 296358EA19F78D4F003732AB /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 296358EB19F78D4F003732AB /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 296358EC19F78D4F003732AB /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 296358ED19F78D4F003732AB /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 296358F819F78D81003732AB /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 296358F419F78D81003732AB /* AppDelegate.cpp */; }; - 296358F919F78D81003732AB /* Chapter6.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 296358F619F78D81003732AB /* Chapter6.cpp */; }; - 2963592B19F78F74003732AB /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 503AE0F617EB97AB00D1A890 /* Icon.icns */; }; - 2963593219F78F74003732AB /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 503AE10317EB98FF00D1A890 /* main.cpp */; }; - 2963593419F78F74003732AB /* libcocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599119D492B60070A133 /* libcocos2d Mac.a */; }; - 2963593519F78F74003732AB /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11117EB99EE00D1A890 /* libcurl.dylib */; }; - 2963593619F78F74003732AB /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 2963593719F78F74003732AB /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11A17EB9C5A00D1A890 /* IOKit.framework */; }; - 2963593819F78F74003732AB /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78A17EB975400C73F5D /* OpenGL.framework */; }; - 2963593919F78F74003732AB /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78817EB974C00C73F5D /* AppKit.framework */; }; - 2963593A19F78F74003732AB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 2963593B19F78F74003732AB /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 2963593C19F78F74003732AB /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 2963593D19F78F74003732AB /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 2963593E19F78F74003732AB /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 2963594419F78F9D003732AB /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 296358F419F78D81003732AB /* AppDelegate.cpp */; }; - 2963594519F78F9D003732AB /* AppDelegate.h in Sources */ = {isa = PBXBuildFile; fileRef = 296358F519F78D81003732AB /* AppDelegate.h */; }; - 2963594619F78F9D003732AB /* Chapter6.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 296358F619F78D81003732AB /* Chapter6.cpp */; }; - 2963594719F78F9D003732AB /* Chapter6.h in Sources */ = {isa = PBXBuildFile; fileRef = 296358F719F78D81003732AB /* Chapter6.h */; }; - 3EE7F8C019ED607500448914 /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77617EB970100C73F5D /* Icon-120.png */; }; - 3EE7F8C219ED607500448914 /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77B17EB970100C73F5D /* Icon-76.png */; }; - 3EE7F8C319ED607500448914 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77417EB970100C73F5D /* Default@2x.png */; }; - 3EE7F8C419ED607500448914 /* Icon-100.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629517ECD46A001EB2F8 /* Icon-100.png */; }; - 3EE7F8C519ED607500448914 /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77817EB970100C73F5D /* Icon-152.png */; }; - 3EE7F8C619ED607500448914 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77217EB970100C73F5D /* Default-568h@2x.png */; }; - 3EE7F8C719ED607500448914 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77A17EB970100C73F5D /* Icon-72.png */; }; - 3EE7F8C919ED607500448914 /* Icon-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A117ECD613001EB2F8 /* Icon-50.png */; }; - 3EE7F8CA19ED607500448914 /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77517EB970100C73F5D /* Icon-114.png */; }; - 3EE7F8CB19ED607500448914 /* Icon-29.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A017ECD613001EB2F8 /* Icon-29.png */; }; - 3EE7F8CC19ED607500448914 /* Icon-40.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629217ECD46A001EB2F8 /* Icon-40.png */; }; - 3EE7F8CD19ED607500448914 /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77717EB970100C73F5D /* Icon-144.png */; }; - 3EE7F8CE19ED607500448914 /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 3EE7F8CF19ED607500448914 /* Icon-80.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629417ECD46A001EB2F8 /* Icon-80.png */; }; - 3EE7F8D219ED607500448914 /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77917EB970100C73F5D /* Icon-57.png */; }; - 3EE7F8D419ED607500448914 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77317EB970100C73F5D /* Default.png */; }; - 3EE7F8D519ED607500448914 /* Icon-58.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629317ECD46A001EB2F8 /* Icon-58.png */; }; - 3EE7F8D919ED607500448914 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FB17EB989F00D1A890 /* AppController.mm */; }; - 3EE7F8DB19ED607500448914 /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FF17EB989F00D1A890 /* RootViewController.mm */; }; - 3EE7F8DC19ED607500448914 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FC17EB989F00D1A890 /* main.m */; }; - 3EE7F8DE19ED607500448914 /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599319D492B60070A133 /* libcocos2d iOS.a */; }; - 3EE7F8DF19ED607500448914 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6B0611A1803AB670077942B /* CoreMotion.framework */; }; - 3EE7F8E019ED607500448914 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 3EE7F8E119ED607500448914 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 3EE7F8E219ED607500448914 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; }; - 3EE7F8E319ED607500448914 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB012928DE900B8313A /* OpenGLES.framework */; }; - 3EE7F8E419ED607500448914 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 3EE7F8E519ED607500448914 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 3EE7F8E619ED607500448914 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 3EE7F8E719ED607500448914 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 3EE7F8E819ED607500448914 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 3EE7F8F219ED607800448914 /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 3EE7F8F819ED607800448914 /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 503AE0F617EB97AB00D1A890 /* Icon.icns */; }; - 3EE7F8FC19ED607800448914 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 503AE10317EB98FF00D1A890 /* main.cpp */; }; - 3EE7F8FF19ED607800448914 /* libcocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599119D492B60070A133 /* libcocos2d Mac.a */; }; - 3EE7F90019ED607800448914 /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11117EB99EE00D1A890 /* libcurl.dylib */; }; - 3EE7F90119ED607800448914 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 3EE7F90219ED607800448914 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11A17EB9C5A00D1A890 /* IOKit.framework */; }; - 3EE7F90319ED607800448914 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78A17EB975400C73F5D /* OpenGL.framework */; }; - 3EE7F90419ED607800448914 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78817EB974C00C73F5D /* AppKit.framework */; }; - 3EE7F90519ED607800448914 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 3EE7F90619ED607800448914 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 3EE7F90719ED607800448914 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 3EE7F90819ED607800448914 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 3EE7F90919ED607800448914 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 3EE7F91419ED60DF00448914 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3EE7F91019ED60DF00448914 /* AppDelegate.cpp */; }; - 3EE7F91519ED60DF00448914 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3EE7F91019ED60DF00448914 /* AppDelegate.cpp */; }; - 3EE7F91619ED60DF00448914 /* Chapter12.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3EE7F91219ED60DF00448914 /* Chapter12.cpp */; }; - 3EE7F91719ED60DF00448914 /* Chapter12.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3EE7F91219ED60DF00448914 /* Chapter12.cpp */; }; - 3EE7F91919ED60F200448914 /* chapter12 in Resources */ = {isa = PBXBuildFile; fileRef = 3EE7F91819ED60F200448914 /* chapter12 */; }; - 3EE7F91A19ED60F200448914 /* chapter12 in Resources */ = {isa = PBXBuildFile; fileRef = 3EE7F91819ED60F200448914 /* chapter12 */; }; - 503AE0F817EB97AB00D1A890 /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 503AE0F617EB97AB00D1A890 /* Icon.icns */; }; - 503AE10017EB989F00D1A890 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FB17EB989F00D1A890 /* AppController.mm */; }; - 503AE10117EB989F00D1A890 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FC17EB989F00D1A890 /* main.m */; }; - 503AE10217EB989F00D1A890 /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FF17EB989F00D1A890 /* RootViewController.mm */; }; - 503AE10517EB98FF00D1A890 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 503AE10317EB98FF00D1A890 /* main.cpp */; }; - 503AE11217EB99EE00D1A890 /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11117EB99EE00D1A890 /* libcurl.dylib */; }; - 503AE11B17EB9C5A00D1A890 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11A17EB9C5A00D1A890 /* IOKit.framework */; }; - 5087E76317EB910900C73F5D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 5087E76717EB910900C73F5D /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 5087E76817EB910900C73F5D /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 5087E76917EB910900C73F5D /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 5087E76A17EB910900C73F5D /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 5087E76B17EB910900C73F5D /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 5087E77D17EB970100C73F5D /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77217EB970100C73F5D /* Default-568h@2x.png */; }; - 5087E77E17EB970100C73F5D /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77317EB970100C73F5D /* Default.png */; }; - 5087E77F17EB970100C73F5D /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77417EB970100C73F5D /* Default@2x.png */; }; - 5087E78017EB970100C73F5D /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77517EB970100C73F5D /* Icon-114.png */; }; - 5087E78117EB970100C73F5D /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77617EB970100C73F5D /* Icon-120.png */; }; - 5087E78217EB970100C73F5D /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77717EB970100C73F5D /* Icon-144.png */; }; - 5087E78317EB970100C73F5D /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77817EB970100C73F5D /* Icon-152.png */; }; - 5087E78417EB970100C73F5D /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77917EB970100C73F5D /* Icon-57.png */; }; - 5087E78517EB970100C73F5D /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77A17EB970100C73F5D /* Icon-72.png */; }; - 5087E78617EB970100C73F5D /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77B17EB970100C73F5D /* Icon-76.png */; }; - 5087E78917EB974C00C73F5D /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78817EB974C00C73F5D /* AppKit.framework */; }; - 5087E78B17EB975400C73F5D /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78A17EB975400C73F5D /* OpenGL.framework */; }; - 50A5DBBF19EC441300082E51 /* sprites.plist in Resources */ = {isa = PBXBuildFile; fileRef = 50A5DBBD19EC441300082E51 /* sprites.plist */; }; - 50A5DBC019EC441300082E51 /* sprites.plist in Resources */ = {isa = PBXBuildFile; fileRef = 50A5DBBD19EC441300082E51 /* sprites.plist */; }; - 50A5DBC119EC441300082E51 /* sprites.pvr.ccz in Resources */ = {isa = PBXBuildFile; fileRef = 50A5DBBE19EC441300082E51 /* sprites.pvr.ccz */; }; - 50A5DBC219EC441300082E51 /* sprites.pvr.ccz in Resources */ = {isa = PBXBuildFile; fileRef = 50A5DBBE19EC441300082E51 /* sprites.pvr.ccz */; }; - 50BA599E19D493310070A133 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50BA599A19D493310070A133 /* AppDelegate.cpp */; }; - 50BA599F19D493310070A133 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50BA599A19D493310070A133 /* AppDelegate.cpp */; }; - 50BA59A019D493310070A133 /* Chapter2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50BA599C19D493310070A133 /* Chapter2.cpp */; }; - 50BA59A119D493310070A133 /* Chapter2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50BA599C19D493310070A133 /* Chapter2.cpp */; }; - 50BA59A219D498180070A133 /* libcocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599119D492B60070A133 /* libcocos2d Mac.a */; }; - 50BA59A319D4981C0070A133 /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599319D492B60070A133 /* libcocos2d iOS.a */; }; - 50BA59B619D4992C0070A133 /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77617EB970100C73F5D /* Icon-120.png */; }; - 50BA59B719D4992C0070A133 /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77B17EB970100C73F5D /* Icon-76.png */; }; - 50BA59B819D4992C0070A133 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77417EB970100C73F5D /* Default@2x.png */; }; - 50BA59B919D4992C0070A133 /* Icon-100.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629517ECD46A001EB2F8 /* Icon-100.png */; }; - 50BA59BA19D4992C0070A133 /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77817EB970100C73F5D /* Icon-152.png */; }; - 50BA59BD19D4992C0070A133 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77217EB970100C73F5D /* Default-568h@2x.png */; }; - 50BA59BE19D4992C0070A133 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77A17EB970100C73F5D /* Icon-72.png */; }; - 50BA59BF19D4992C0070A133 /* Icon-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A117ECD613001EB2F8 /* Icon-50.png */; }; - 50BA59C019D4992C0070A133 /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77517EB970100C73F5D /* Icon-114.png */; }; - 50BA59C219D4992C0070A133 /* Icon-29.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A017ECD613001EB2F8 /* Icon-29.png */; }; - 50BA59C319D4992C0070A133 /* Icon-40.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629217ECD46A001EB2F8 /* Icon-40.png */; }; - 50BA59C419D4992C0070A133 /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77717EB970100C73F5D /* Icon-144.png */; }; - 50BA59C519D4992C0070A133 /* Icon-80.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629417ECD46A001EB2F8 /* Icon-80.png */; }; - 50BA59C619D4992C0070A133 /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77917EB970100C73F5D /* Icon-57.png */; }; - 50BA59C719D4992C0070A133 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77317EB970100C73F5D /* Default.png */; }; - 50BA59C919D4992C0070A133 /* Icon-58.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629317ECD46A001EB2F8 /* Icon-58.png */; }; - 50BA59CD19D4992C0070A133 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FB17EB989F00D1A890 /* AppController.mm */; }; - 50BA59CE19D4992C0070A133 /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FF17EB989F00D1A890 /* RootViewController.mm */; }; - 50BA59CF19D4992C0070A133 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FC17EB989F00D1A890 /* main.m */; }; - 50BA59D119D4992C0070A133 /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599319D492B60070A133 /* libcocos2d iOS.a */; }; - 50BA59D219D4992C0070A133 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6B0611A1803AB670077942B /* CoreMotion.framework */; }; - 50BA59D319D4992C0070A133 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 50BA59D419D4992C0070A133 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 50BA59D519D4992C0070A133 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; }; - 50BA59D619D4992C0070A133 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB012928DE900B8313A /* OpenGLES.framework */; }; - 50BA59D719D4992C0070A133 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 50BA59D819D4992C0070A133 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 50BA59D919D4992C0070A133 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 50BA59DA19D4992C0070A133 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 50BA59DB19D4992C0070A133 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 50BA59E719D499360070A133 /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 503AE0F617EB97AB00D1A890 /* Icon.icns */; }; - 50BA59EC19D499360070A133 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 503AE10317EB98FF00D1A890 /* main.cpp */; }; - 50BA59EF19D499360070A133 /* libcocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599119D492B60070A133 /* libcocos2d Mac.a */; }; - 50BA59F019D499360070A133 /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11117EB99EE00D1A890 /* libcurl.dylib */; }; - 50BA59F119D499360070A133 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 50BA59F219D499360070A133 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11A17EB9C5A00D1A890 /* IOKit.framework */; }; - 50BA59F319D499360070A133 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78A17EB975400C73F5D /* OpenGL.framework */; }; - 50BA59F419D499360070A133 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78817EB974C00C73F5D /* AppKit.framework */; }; - 50BA59F519D499360070A133 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 50BA59F619D499360070A133 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 50BA59F719D499360070A133 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 50BA59F819D499360070A133 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 50BA59F919D499360070A133 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 50EF629617ECD46A001EB2F8 /* Icon-40.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629217ECD46A001EB2F8 /* Icon-40.png */; }; - 50EF629717ECD46A001EB2F8 /* Icon-58.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629317ECD46A001EB2F8 /* Icon-58.png */; }; - 50EF629817ECD46A001EB2F8 /* Icon-80.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629417ECD46A001EB2F8 /* Icon-80.png */; }; - 50EF629917ECD46A001EB2F8 /* Icon-100.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629517ECD46A001EB2F8 /* Icon-100.png */; }; - 50EF62A217ECD613001EB2F8 /* Icon-29.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A017ECD613001EB2F8 /* Icon-29.png */; }; - 50EF62A317ECD613001EB2F8 /* Icon-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A117ECD613001EB2F8 /* Icon-50.png */; }; - 5E38D2C619F0F3DD0099B433 /* Chapter9_9.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5E38D2C419F0F3DD0099B433 /* Chapter9_9.cpp */; }; - 5E38D2C719F0F3DD0099B433 /* Chapter9_9.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5E38D2C419F0F3DD0099B433 /* Chapter9_9.cpp */; }; - 7E1526B419D4DE890013F222 /* Blue_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526AE19D4DE890013F222 /* Blue_Front1.png */; }; - 7E1526B519D4DE890013F222 /* Blue_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526AE19D4DE890013F222 /* Blue_Front1.png */; }; - 7E1526B819D4DE890013F222 /* LightBlue_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B019D4DE890013F222 /* LightBlue_Front1.png */; }; - 7E1526B919D4DE890013F222 /* LightBlue_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B019D4DE890013F222 /* LightBlue_Front1.png */; }; - 7E1526BA19D4DE890013F222 /* White_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B119D4DE890013F222 /* White_Front1.png */; }; - 7E1526BB19D4DE890013F222 /* White_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B119D4DE890013F222 /* White_Front1.png */; }; - 7E1526BC19D4DE890013F222 /* ZigzagForest_Square.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B219D4DE890013F222 /* ZigzagForest_Square.png */; }; - 7E1526BD19D4DE890013F222 /* ZigzagForest_Square.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B219D4DE890013F222 /* ZigzagForest_Square.png */; }; - 7E1526BE19D4DE890013F222 /* ZigzagGrass_Mud_Round.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B319D4DE890013F222 /* ZigzagGrass_Mud_Round.png */; }; - 7E1526BF19D4DE890013F222 /* ZigzagGrass_Mud_Round.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B319D4DE890013F222 /* ZigzagGrass_Mud_Round.png */; }; - 7E1526C119D4E0020013F222 /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 7E1526C219D4E0020013F222 /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 7E273C8019D9CE460029CCC0 /* Chapter2Level1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E273C7E19D9CE460029CCC0 /* Chapter2Level1.cpp */; }; - 7E273C8119D9CE460029CCC0 /* Chapter2Level1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E273C7E19D9CE460029CCC0 /* Chapter2Level1.cpp */; }; - 7E35329C19F06ECB0080126B /* Blue_Back1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329019F06ECB0080126B /* Blue_Back1.png */; }; - 7E35329D19F06ECB0080126B /* Blue_Back1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329019F06ECB0080126B /* Blue_Back1.png */; }; - 7E35329E19F06ECB0080126B /* Blue_Back2.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329119F06ECB0080126B /* Blue_Back2.png */; }; - 7E35329F19F06ECB0080126B /* Blue_Back2.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329119F06ECB0080126B /* Blue_Back2.png */; }; - 7E3532A019F06ECB0080126B /* Blue_Back3.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329219F06ECB0080126B /* Blue_Back3.png */; }; - 7E3532A119F06ECB0080126B /* Blue_Back3.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329219F06ECB0080126B /* Blue_Back3.png */; }; - 7E3532A219F06ECB0080126B /* Blue_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329319F06ECB0080126B /* Blue_Front1.png */; }; - 7E3532A319F06ECB0080126B /* Blue_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329319F06ECB0080126B /* Blue_Front1.png */; }; - 7E3532A419F06ECB0080126B /* Blue_Front2.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329419F06ECB0080126B /* Blue_Front2.png */; }; - 7E3532A519F06ECB0080126B /* Blue_Front2.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329419F06ECB0080126B /* Blue_Front2.png */; }; - 7E3532A619F06ECB0080126B /* Blue_Front3.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329519F06ECB0080126B /* Blue_Front3.png */; }; - 7E3532A719F06ECB0080126B /* Blue_Front3.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329519F06ECB0080126B /* Blue_Front3.png */; }; - 7E3532A819F06ECB0080126B /* Blue_Left1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329619F06ECB0080126B /* Blue_Left1.png */; }; - 7E3532A919F06ECB0080126B /* Blue_Left1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329619F06ECB0080126B /* Blue_Left1.png */; }; - 7E3532AA19F06ECB0080126B /* Blue_Left2.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329719F06ECB0080126B /* Blue_Left2.png */; }; - 7E3532AB19F06ECB0080126B /* Blue_Left2.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329719F06ECB0080126B /* Blue_Left2.png */; }; - 7E3532AC19F06ECB0080126B /* Blue_Left3.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329819F06ECB0080126B /* Blue_Left3.png */; }; - 7E3532AD19F06ECB0080126B /* Blue_Left3.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329819F06ECB0080126B /* Blue_Left3.png */; }; - 7E3532AE19F06ECB0080126B /* Blue_Right1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329919F06ECB0080126B /* Blue_Right1.png */; }; - 7E3532AF19F06ECB0080126B /* Blue_Right1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329919F06ECB0080126B /* Blue_Right1.png */; }; - 7E3532B019F06ECB0080126B /* Blue_Right2.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329A19F06ECB0080126B /* Blue_Right2.png */; }; - 7E3532B119F06ECB0080126B /* Blue_Right2.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329A19F06ECB0080126B /* Blue_Right2.png */; }; - 7E3532B219F06ECB0080126B /* Blue_Right3.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329B19F06ECB0080126B /* Blue_Right3.png */; }; - 7E3532B319F06ECB0080126B /* Blue_Right3.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E35329B19F06ECB0080126B /* Blue_Right3.png */; }; - 7E53688119EAD894005C3C64 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53686B19EAD894005C3C64 /* AppDelegate.cpp */; }; - 7E53688219EAD894005C3C64 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53686B19EAD894005C3C64 /* AppDelegate.cpp */; }; - 7E53688319EAD894005C3C64 /* Chapter9_1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53686D19EAD894005C3C64 /* Chapter9_1.cpp */; }; - 7E53688419EAD894005C3C64 /* Chapter9_1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53686D19EAD894005C3C64 /* Chapter9_1.cpp */; }; - 7E53688519EAD894005C3C64 /* Chapter9_2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53686F19EAD894005C3C64 /* Chapter9_2.cpp */; }; - 7E53688619EAD894005C3C64 /* Chapter9_2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53686F19EAD894005C3C64 /* Chapter9_2.cpp */; }; - 7E53688719EAD894005C3C64 /* Chapter9_3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687119EAD894005C3C64 /* Chapter9_3.cpp */; }; - 7E53688819EAD894005C3C64 /* Chapter9_3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687119EAD894005C3C64 /* Chapter9_3.cpp */; }; - 7E53688919EAD894005C3C64 /* Chapter9_4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687319EAD894005C3C64 /* Chapter9_4.cpp */; }; - 7E53688A19EAD894005C3C64 /* Chapter9_4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687319EAD894005C3C64 /* Chapter9_4.cpp */; }; - 7E53688B19EAD894005C3C64 /* Chapter9_5.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687519EAD894005C3C64 /* Chapter9_5.cpp */; }; - 7E53688C19EAD894005C3C64 /* Chapter9_5.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687519EAD894005C3C64 /* Chapter9_5.cpp */; }; - 7E53688D19EAD894005C3C64 /* Chapter9_6.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687719EAD894005C3C64 /* Chapter9_6.cpp */; }; - 7E53688E19EAD894005C3C64 /* Chapter9_6.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687719EAD894005C3C64 /* Chapter9_6.cpp */; }; - 7E53688F19EAD894005C3C64 /* Chapter9_7.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687919EAD894005C3C64 /* Chapter9_7.cpp */; }; - 7E53689019EAD894005C3C64 /* Chapter9_7.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687919EAD894005C3C64 /* Chapter9_7.cpp */; }; - 7E53689119EAD894005C3C64 /* Chapter9_8.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687B19EAD894005C3C64 /* Chapter9_8.cpp */; }; - 7E53689219EAD894005C3C64 /* Chapter9_8.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687B19EAD894005C3C64 /* Chapter9_8.cpp */; }; - 7E53689319EAD894005C3C64 /* Chapter9.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687D19EAD894005C3C64 /* Chapter9.cpp */; }; - 7E53689419EAD894005C3C64 /* Chapter9.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687D19EAD894005C3C64 /* Chapter9.cpp */; }; - 7E53689519EAD894005C3C64 /* DrawNode3D.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687F19EAD894005C3C64 /* DrawNode3D.cpp */; }; - 7E53689619EAD894005C3C64 /* DrawNode3D.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53687F19EAD894005C3C64 /* DrawNode3D.cpp */; }; - 7E5368CF19EC20DE005C3C64 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 503AE10317EB98FF00D1A890 /* main.cpp */; }; - 7E5368D119EC20DE005C3C64 /* libcocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599119D492B60070A133 /* libcocos2d Mac.a */; }; - 7E5368D219EC20DE005C3C64 /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11117EB99EE00D1A890 /* libcurl.dylib */; }; - 7E5368D319EC20DE005C3C64 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 7E5368D419EC20DE005C3C64 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11A17EB9C5A00D1A890 /* IOKit.framework */; }; - 7E5368D519EC20DE005C3C64 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78A17EB975400C73F5D /* OpenGL.framework */; }; - 7E5368D619EC20DE005C3C64 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78817EB974C00C73F5D /* AppKit.framework */; }; - 7E5368D719EC20DE005C3C64 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 7E5368D819EC20DE005C3C64 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 7E5368D919EC20DE005C3C64 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 7E5368DA19EC20DE005C3C64 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 7E5368DB19EC20DE005C3C64 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 7E5368E119EC2128005C3C64 /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 7E5368E219EC213B005C3C64 /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 503AE0F617EB97AB00D1A890 /* Icon.icns */; }; - 7E5368E519EC2159005C3C64 /* Blue_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526AE19D4DE890013F222 /* Blue_Front1.png */; }; - 7E5368E619EC2159005C3C64 /* LightBlue_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B019D4DE890013F222 /* LightBlue_Front1.png */; }; - 7E5368E719EC2159005C3C64 /* White_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B119D4DE890013F222 /* White_Front1.png */; }; - 7E5368E819EC2159005C3C64 /* ZigzagForest_Square.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B219D4DE890013F222 /* ZigzagForest_Square.png */; }; - 7E5368E919EC2159005C3C64 /* ZigzagGrass_Mud_Round.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B319D4DE890013F222 /* ZigzagGrass_Mud_Round.png */; }; - 7E5368EA19EC217B005C3C64 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7EBF317519E7807500A7FBEA /* AppDelegate.cpp */; }; - 7E5368EB19EC217B005C3C64 /* AppDelegate.h in Sources */ = {isa = PBXBuildFile; fileRef = 7EBF317619E7807500A7FBEA /* AppDelegate.h */; }; - 7E5368EC19EC217B005C3C64 /* Chapter3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7EBF317E19E843F100A7FBEA /* Chapter3.cpp */; }; - 7E5368ED19EC217B005C3C64 /* Chapter3.h in Sources */ = {isa = PBXBuildFile; fileRef = 7EBF317F19E843F100A7FBEA /* Chapter3.h */; }; - 7E5368F219EC228B005C3C64 /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77617EB970100C73F5D /* Icon-120.png */; }; - 7E5368F419EC228B005C3C64 /* Blue_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526AE19D4DE890013F222 /* Blue_Front1.png */; }; - 7E5368F519EC228B005C3C64 /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77B17EB970100C73F5D /* Icon-76.png */; }; - 7E5368F719EC228B005C3C64 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77417EB970100C73F5D /* Default@2x.png */; }; - 7E5368F819EC228B005C3C64 /* Icon-100.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629517ECD46A001EB2F8 /* Icon-100.png */; }; - 7E5368F919EC228B005C3C64 /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77817EB970100C73F5D /* Icon-152.png */; }; - 7E5368FA19EC228B005C3C64 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77217EB970100C73F5D /* Default-568h@2x.png */; }; - 7E5368FB19EC228B005C3C64 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77A17EB970100C73F5D /* Icon-72.png */; }; - 7E5368FC19EC228B005C3C64 /* ZigzagForest_Square.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B219D4DE890013F222 /* ZigzagForest_Square.png */; }; - 7E5368FD19EC228B005C3C64 /* Icon-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A117ECD613001EB2F8 /* Icon-50.png */; }; - 7E5368FE19EC228B005C3C64 /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 7E5368FF19EC228B005C3C64 /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77517EB970100C73F5D /* Icon-114.png */; }; - 7E53690019EC228B005C3C64 /* Icon-29.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A017ECD613001EB2F8 /* Icon-29.png */; }; - 7E53690119EC228B005C3C64 /* Icon-40.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629217ECD46A001EB2F8 /* Icon-40.png */; }; - 7E53690219EC228B005C3C64 /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77717EB970100C73F5D /* Icon-144.png */; }; - 7E53690319EC228B005C3C64 /* Icon-80.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629417ECD46A001EB2F8 /* Icon-80.png */; }; - 7E53690619EC228B005C3C64 /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77917EB970100C73F5D /* Icon-57.png */; }; - 7E53690919EC228B005C3C64 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77317EB970100C73F5D /* Default.png */; }; - 7E53690A19EC228B005C3C64 /* Icon-58.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629317ECD46A001EB2F8 /* Icon-58.png */; }; - 7E53690E19EC228B005C3C64 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FB17EB989F00D1A890 /* AppController.mm */; }; - 7E53690F19EC228B005C3C64 /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FF17EB989F00D1A890 /* RootViewController.mm */; }; - 7E53691019EC228B005C3C64 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FC17EB989F00D1A890 /* main.m */; }; - 7E53691219EC228B005C3C64 /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599319D492B60070A133 /* libcocos2d iOS.a */; }; - 7E53691319EC228B005C3C64 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6B0611A1803AB670077942B /* CoreMotion.framework */; }; - 7E53691419EC228B005C3C64 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 7E53691519EC228B005C3C64 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 7E53691619EC228B005C3C64 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; }; - 7E53691719EC228B005C3C64 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB012928DE900B8313A /* OpenGLES.framework */; }; - 7E53691819EC228B005C3C64 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 7E53691919EC228B005C3C64 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 7E53691A19EC228B005C3C64 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 7E53691B19EC228B005C3C64 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 7E53691C19EC228B005C3C64 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 7E53692819EC22F4005C3C64 /* Blue_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526AE19D4DE890013F222 /* Blue_Front1.png */; }; - 7E53692919EC22F4005C3C64 /* LightBlue_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B019D4DE890013F222 /* LightBlue_Front1.png */; }; - 7E53692A19EC22F4005C3C64 /* White_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B119D4DE890013F222 /* White_Front1.png */; }; - 7E53692B19EC22F4005C3C64 /* ZigzagForest_Square.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B219D4DE890013F222 /* ZigzagForest_Square.png */; }; - 7E53692C19EC22F4005C3C64 /* ZigzagGrass_Mud_Round.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B319D4DE890013F222 /* ZigzagGrass_Mud_Round.png */; }; - 7E53692D19EC22F4005C3C64 /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 503AE0F617EB97AB00D1A890 /* Icon.icns */; }; - 7E53692E19EC22F4005C3C64 /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 7E53693119EC22F4005C3C64 /* AppDelegate.h in Sources */ = {isa = PBXBuildFile; fileRef = 7EBF317619E7807500A7FBEA /* AppDelegate.h */; }; - 7E53693419EC22F4005C3C64 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 503AE10317EB98FF00D1A890 /* main.cpp */; }; - 7E53693619EC22F4005C3C64 /* libcocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599119D492B60070A133 /* libcocos2d Mac.a */; }; - 7E53693719EC22F4005C3C64 /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11117EB99EE00D1A890 /* libcurl.dylib */; }; - 7E53693819EC22F4005C3C64 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 7E53693919EC22F4005C3C64 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11A17EB9C5A00D1A890 /* IOKit.framework */; }; - 7E53693A19EC22F4005C3C64 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78A17EB975400C73F5D /* OpenGL.framework */; }; - 7E53693B19EC22F4005C3C64 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78817EB974C00C73F5D /* AppKit.framework */; }; - 7E53693C19EC22F4005C3C64 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 7E53693D19EC22F4005C3C64 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 7E53693E19EC22F4005C3C64 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 7E53693F19EC22F4005C3C64 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 7E53694019EC22F4005C3C64 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 7E53694A19EC234D005C3C64 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53694619EC234D005C3C64 /* AppDelegate.cpp */; }; - 7E53694B19EC234D005C3C64 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53694619EC234D005C3C64 /* AppDelegate.cpp */; }; - 7E53694C19EC234D005C3C64 /* Chapter4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53694819EC234D005C3C64 /* Chapter4.cpp */; }; - 7E53694D19EC234D005C3C64 /* Chapter4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E53694819EC234D005C3C64 /* Chapter4.cpp */; }; - 7E914A461A1BC3F200C6B2D4 /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77617EB970100C73F5D /* Icon-120.png */; }; - 7E914A471A1BC3F200C6B2D4 /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77B17EB970100C73F5D /* Icon-76.png */; }; - 7E914A481A1BC3F200C6B2D4 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77417EB970100C73F5D /* Default@2x.png */; }; - 7E914A4A1A1BC3F200C6B2D4 /* Icon-100.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629517ECD46A001EB2F8 /* Icon-100.png */; }; - 7E914A4B1A1BC3F200C6B2D4 /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77817EB970100C73F5D /* Icon-152.png */; }; - 7E914A4C1A1BC3F200C6B2D4 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77217EB970100C73F5D /* Default-568h@2x.png */; }; - 7E914A4D1A1BC3F200C6B2D4 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77A17EB970100C73F5D /* Icon-72.png */; }; - 7E914A4E1A1BC3F200C6B2D4 /* Icon-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A117ECD613001EB2F8 /* Icon-50.png */; }; - 7E914A4F1A1BC3F200C6B2D4 /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 7E914A501A1BC3F200C6B2D4 /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77517EB970100C73F5D /* Icon-114.png */; }; - 7E914A511A1BC3F200C6B2D4 /* Icon-29.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A017ECD613001EB2F8 /* Icon-29.png */; }; - 7E914A531A1BC3F200C6B2D4 /* Icon-40.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629217ECD46A001EB2F8 /* Icon-40.png */; }; - 7E914A541A1BC3F200C6B2D4 /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77717EB970100C73F5D /* Icon-144.png */; }; - 7E914A551A1BC3F200C6B2D4 /* Icon-80.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629417ECD46A001EB2F8 /* Icon-80.png */; }; - 7E914A561A1BC3F200C6B2D4 /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77917EB970100C73F5D /* Icon-57.png */; }; - 7E914A571A1BC3F200C6B2D4 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77317EB970100C73F5D /* Default.png */; }; - 7E914A581A1BC3F200C6B2D4 /* Icon-58.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629317ECD46A001EB2F8 /* Icon-58.png */; }; - 7E914A5B1A1BC3F200C6B2D4 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FB17EB989F00D1A890 /* AppController.mm */; }; - 7E914A5C1A1BC3F200C6B2D4 /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FF17EB989F00D1A890 /* RootViewController.mm */; }; - 7E914A5E1A1BC3F200C6B2D4 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FC17EB989F00D1A890 /* main.m */; }; - 7E914A601A1BC3F200C6B2D4 /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599319D492B60070A133 /* libcocos2d iOS.a */; }; - 7E914A611A1BC3F200C6B2D4 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6B0611A1803AB670077942B /* CoreMotion.framework */; }; - 7E914A621A1BC3F200C6B2D4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 7E914A631A1BC3F200C6B2D4 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 7E914A641A1BC3F200C6B2D4 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; }; - 7E914A651A1BC3F200C6B2D4 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB012928DE900B8313A /* OpenGLES.framework */; }; - 7E914A661A1BC3F200C6B2D4 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 7E914A671A1BC3F200C6B2D4 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 7E914A681A1BC3F200C6B2D4 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 7E914A691A1BC3F200C6B2D4 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 7E914A6A1A1BC3F200C6B2D4 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 7E914A751A1BC40200C6B2D4 /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 503AE0F617EB97AB00D1A890 /* Icon.icns */; }; - 7E914A761A1BC40200C6B2D4 /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 7E914A7B1A1BC40200C6B2D4 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 503AE10317EB98FF00D1A890 /* main.cpp */; }; - 7E914A7D1A1BC40200C6B2D4 /* libcocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599119D492B60070A133 /* libcocos2d Mac.a */; }; - 7E914A7E1A1BC40200C6B2D4 /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11117EB99EE00D1A890 /* libcurl.dylib */; }; - 7E914A7F1A1BC40200C6B2D4 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 7E914A801A1BC40200C6B2D4 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11A17EB9C5A00D1A890 /* IOKit.framework */; }; - 7E914A811A1BC40200C6B2D4 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78A17EB975400C73F5D /* OpenGL.framework */; }; - 7E914A821A1BC40200C6B2D4 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78817EB974C00C73F5D /* AppKit.framework */; }; - 7E914A831A1BC40200C6B2D4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 7E914A841A1BC40200C6B2D4 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 7E914A851A1BC40200C6B2D4 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 7E914A861A1BC40200C6B2D4 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 7E914A871A1BC40200C6B2D4 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 7E914A921A1BC8F500C6B2D4 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E914A8E1A1BC8F500C6B2D4 /* AppDelegate.cpp */; }; - 7E914A931A1BC8F500C6B2D4 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E914A8E1A1BC8F500C6B2D4 /* AppDelegate.cpp */; }; - 7E914A941A1BC8F500C6B2D4 /* Chapter5.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E914A901A1BC8F500C6B2D4 /* Chapter5.cpp */; }; - 7E914A951A1BC8F500C6B2D4 /* Chapter5.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E914A901A1BC8F500C6B2D4 /* Chapter5.cpp */; }; - 7E9571A219F1938B00F6AE44 /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77617EB970100C73F5D /* Icon-120.png */; }; - 7E9571A519F1938B00F6AE44 /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77B17EB970100C73F5D /* Icon-76.png */; }; - 7E9571A719F1938B00F6AE44 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77417EB970100C73F5D /* Default@2x.png */; }; - 7E9571A819F1938B00F6AE44 /* Icon-100.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629517ECD46A001EB2F8 /* Icon-100.png */; }; - 7E9571A919F1938B00F6AE44 /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77817EB970100C73F5D /* Icon-152.png */; }; - 7E9571AA19F1938B00F6AE44 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77217EB970100C73F5D /* Default-568h@2x.png */; }; - 7E9571AB19F1938B00F6AE44 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77A17EB970100C73F5D /* Icon-72.png */; }; - 7E9571AD19F1938B00F6AE44 /* Icon-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A117ECD613001EB2F8 /* Icon-50.png */; }; - 7E9571AE19F1938B00F6AE44 /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 7E9571AF19F1938B00F6AE44 /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77517EB970100C73F5D /* Icon-114.png */; }; - 7E9571B019F1938B00F6AE44 /* Icon-29.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A017ECD613001EB2F8 /* Icon-29.png */; }; - 7E9571B119F1938B00F6AE44 /* Icon-40.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629217ECD46A001EB2F8 /* Icon-40.png */; }; - 7E9571B219F1938B00F6AE44 /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77717EB970100C73F5D /* Icon-144.png */; }; - 7E9571B319F1938B00F6AE44 /* Icon-80.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629417ECD46A001EB2F8 /* Icon-80.png */; }; - 7E9571B619F1938B00F6AE44 /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77917EB970100C73F5D /* Icon-57.png */; }; - 7E9571BA19F1938B00F6AE44 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77317EB970100C73F5D /* Default.png */; }; - 7E9571BB19F1938B00F6AE44 /* Icon-58.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629317ECD46A001EB2F8 /* Icon-58.png */; }; - 7E9571BF19F1938B00F6AE44 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FB17EB989F00D1A890 /* AppController.mm */; }; - 7E9571C019F1938B00F6AE44 /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FF17EB989F00D1A890 /* RootViewController.mm */; }; - 7E9571C119F1938B00F6AE44 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FC17EB989F00D1A890 /* main.m */; }; - 7E9571C319F1938B00F6AE44 /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599319D492B60070A133 /* libcocos2d iOS.a */; }; - 7E9571C419F1938B00F6AE44 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6B0611A1803AB670077942B /* CoreMotion.framework */; }; - 7E9571C519F1938B00F6AE44 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 7E9571C619F1938B00F6AE44 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 7E9571C719F1938B00F6AE44 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; }; - 7E9571C819F1938B00F6AE44 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB012928DE900B8313A /* OpenGLES.framework */; }; - 7E9571C919F1938B00F6AE44 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 7E9571CA19F1938B00F6AE44 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 7E9571CB19F1938B00F6AE44 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 7E9571CC19F1938B00F6AE44 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 7E9571CD19F1938B00F6AE44 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 7E9571E819F196D200F6AE44 /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 503AE0F617EB97AB00D1A890 /* Icon.icns */; }; - 7E9571E919F196D200F6AE44 /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 7E9571EF19F196D200F6AE44 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 503AE10317EB98FF00D1A890 /* main.cpp */; }; - 7E9571F119F196D200F6AE44 /* libcocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599119D492B60070A133 /* libcocos2d Mac.a */; }; - 7E9571F219F196D200F6AE44 /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11117EB99EE00D1A890 /* libcurl.dylib */; }; - 7E9571F319F196D200F6AE44 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 7E9571F419F196D200F6AE44 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11A17EB9C5A00D1A890 /* IOKit.framework */; }; - 7E9571F519F196D200F6AE44 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78A17EB975400C73F5D /* OpenGL.framework */; }; - 7E9571F619F196D200F6AE44 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78817EB974C00C73F5D /* AppKit.framework */; }; - 7E9571F719F196D200F6AE44 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 7E9571F819F196D200F6AE44 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 7E9571F919F196D200F6AE44 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 7E9571FA19F196D200F6AE44 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 7E9571FB19F196D200F6AE44 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 7E95720619F197BA00F6AE44 /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77617EB970100C73F5D /* Icon-120.png */; }; - 7E95720719F197BA00F6AE44 /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77B17EB970100C73F5D /* Icon-76.png */; }; - 7E95720819F197BA00F6AE44 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77417EB970100C73F5D /* Default@2x.png */; }; - 7E95720919F197BA00F6AE44 /* Icon-100.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629517ECD46A001EB2F8 /* Icon-100.png */; }; - 7E95720A19F197BA00F6AE44 /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77817EB970100C73F5D /* Icon-152.png */; }; - 7E95720B19F197BA00F6AE44 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77217EB970100C73F5D /* Default-568h@2x.png */; }; - 7E95720C19F197BA00F6AE44 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77A17EB970100C73F5D /* Icon-72.png */; }; - 7E95720D19F197BA00F6AE44 /* Icon-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A117ECD613001EB2F8 /* Icon-50.png */; }; - 7E95720E19F197BA00F6AE44 /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 7E95720F19F197BA00F6AE44 /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77517EB970100C73F5D /* Icon-114.png */; }; - 7E95721019F197BA00F6AE44 /* Icon-29.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A017ECD613001EB2F8 /* Icon-29.png */; }; - 7E95721119F197BA00F6AE44 /* Icon-40.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629217ECD46A001EB2F8 /* Icon-40.png */; }; - 7E95721219F197BA00F6AE44 /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77717EB970100C73F5D /* Icon-144.png */; }; - 7E95721319F197BA00F6AE44 /* Icon-80.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629417ECD46A001EB2F8 /* Icon-80.png */; }; - 7E95721419F197BA00F6AE44 /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77917EB970100C73F5D /* Icon-57.png */; }; - 7E95721519F197BA00F6AE44 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77317EB970100C73F5D /* Default.png */; }; - 7E95721619F197BA00F6AE44 /* Icon-58.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629317ECD46A001EB2F8 /* Icon-58.png */; }; - 7E95721819F197BA00F6AE44 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FB17EB989F00D1A890 /* AppController.mm */; }; - 7E95721919F197BA00F6AE44 /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FF17EB989F00D1A890 /* RootViewController.mm */; }; - 7E95721A19F197BA00F6AE44 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FC17EB989F00D1A890 /* main.m */; }; - 7E95721C19F197BA00F6AE44 /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599319D492B60070A133 /* libcocos2d iOS.a */; }; - 7E95721D19F197BA00F6AE44 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6B0611A1803AB670077942B /* CoreMotion.framework */; }; - 7E95721E19F197BA00F6AE44 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 7E95721F19F197BA00F6AE44 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 7E95722019F197BA00F6AE44 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; }; - 7E95722119F197BA00F6AE44 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB012928DE900B8313A /* OpenGLES.framework */; }; - 7E95722219F197BA00F6AE44 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 7E95722319F197BA00F6AE44 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 7E95722419F197BA00F6AE44 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 7E95722519F197BA00F6AE44 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 7E95722619F197BA00F6AE44 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 7E95723019F197F500F6AE44 /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 503AE0F617EB97AB00D1A890 /* Icon.icns */; }; - 7E95723119F197F500F6AE44 /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 7E95723319F197F500F6AE44 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 503AE10317EB98FF00D1A890 /* main.cpp */; }; - 7E95723519F197F500F6AE44 /* libcocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599119D492B60070A133 /* libcocos2d Mac.a */; }; - 7E95723619F197F500F6AE44 /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11117EB99EE00D1A890 /* libcurl.dylib */; }; - 7E95723719F197F500F6AE44 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 7E95723819F197F500F6AE44 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 503AE11A17EB9C5A00D1A890 /* IOKit.framework */; }; - 7E95723919F197F500F6AE44 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78A17EB975400C73F5D /* OpenGL.framework */; }; - 7E95723A19F197F500F6AE44 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5087E78817EB974C00C73F5D /* AppKit.framework */; }; - 7E95723B19F197F500F6AE44 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 7E95723C19F197F500F6AE44 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 7E95723D19F197F500F6AE44 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 7E95723E19F197F500F6AE44 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 7E95723F19F197F500F6AE44 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 7E95724919F1983600F6AE44 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E95724519F1983600F6AE44 /* AppDelegate.cpp */; }; - 7E95724A19F1983600F6AE44 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E95724519F1983600F6AE44 /* AppDelegate.cpp */; }; - 7E95724B19F1983600F6AE44 /* Chapter13.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E95724719F1983600F6AE44 /* Chapter13.cpp */; }; - 7E95724C19F1983600F6AE44 /* Chapter13.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E95724719F1983600F6AE44 /* Chapter13.cpp */; }; - 7E95725019F1993300F6AE44 /* alert.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 7E95724E19F1993300F6AE44 /* alert.mp3 */; }; - 7E95725119F1993300F6AE44 /* alert.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 7E95724E19F1993300F6AE44 /* alert.mp3 */; }; - 7E95725219F1993300F6AE44 /* music.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 7E95724F19F1993300F6AE44 /* music.mp3 */; }; - 7E95725319F1993300F6AE44 /* music.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 7E95724F19F1993300F6AE44 /* music.mp3 */; }; - 7EBF314319E7803F00A7FBEA /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77617EB970100C73F5D /* Icon-120.png */; }; - 7EBF314519E7803F00A7FBEA /* Blue_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526AE19D4DE890013F222 /* Blue_Front1.png */; }; - 7EBF314619E7803F00A7FBEA /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77B17EB970100C73F5D /* Icon-76.png */; }; - 7EBF314719E7803F00A7FBEA /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77417EB970100C73F5D /* Default@2x.png */; }; - 7EBF314819E7803F00A7FBEA /* Icon-100.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629517ECD46A001EB2F8 /* Icon-100.png */; }; - 7EBF314919E7803F00A7FBEA /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77817EB970100C73F5D /* Icon-152.png */; }; - 7EBF314A19E7803F00A7FBEA /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77217EB970100C73F5D /* Default-568h@2x.png */; }; - 7EBF314B19E7803F00A7FBEA /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77A17EB970100C73F5D /* Icon-72.png */; }; - 7EBF314C19E7803F00A7FBEA /* ZigzagForest_Square.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B219D4DE890013F222 /* ZigzagForest_Square.png */; }; - 7EBF314D19E7803F00A7FBEA /* Icon-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A117ECD613001EB2F8 /* Icon-50.png */; }; - 7EBF314E19E7803F00A7FBEA /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77517EB970100C73F5D /* Icon-114.png */; }; - 7EBF315019E7803F00A7FBEA /* Icon-29.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF62A017ECD613001EB2F8 /* Icon-29.png */; }; - 7EBF315119E7803F00A7FBEA /* Icon-40.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629217ECD46A001EB2F8 /* Icon-40.png */; }; - 7EBF315219E7803F00A7FBEA /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77717EB970100C73F5D /* Icon-144.png */; }; - 7EBF315419E7803F00A7FBEA /* Icon-80.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629417ECD46A001EB2F8 /* Icon-80.png */; }; - 7EBF315619E7803F00A7FBEA /* LightBlue_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B019D4DE890013F222 /* LightBlue_Front1.png */; }; - 7EBF315719E7803F00A7FBEA /* ZigzagGrass_Mud_Round.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B319D4DE890013F222 /* ZigzagGrass_Mud_Round.png */; }; - 7EBF315819E7803F00A7FBEA /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77917EB970100C73F5D /* Icon-57.png */; }; - 7EBF315919E7803F00A7FBEA /* White_Front1.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526B119D4DE890013F222 /* White_Front1.png */; }; - 7EBF315A19E7803F00A7FBEA /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 5087E77317EB970100C73F5D /* Default.png */; }; - 7EBF315B19E7803F00A7FBEA /* Icon-58.png in Resources */ = {isa = PBXBuildFile; fileRef = 50EF629317ECD46A001EB2F8 /* Icon-58.png */; }; - 7EBF315F19E7803F00A7FBEA /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FB17EB989F00D1A890 /* AppController.mm */; }; - 7EBF316119E7803F00A7FBEA /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FF17EB989F00D1A890 /* RootViewController.mm */; }; - 7EBF316219E7803F00A7FBEA /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 503AE0FC17EB989F00D1A890 /* main.m */; }; - 7EBF316419E7803F00A7FBEA /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50BA599319D492B60070A133 /* libcocos2d iOS.a */; }; - 7EBF316519E7803F00A7FBEA /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6B0611A1803AB670077942B /* CoreMotion.framework */; }; - 7EBF316619E7803F00A7FBEA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 7EBF316719E7803F00A7FBEA /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 7EBF316819E7803F00A7FBEA /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; }; - 7EBF316919E7803F00A7FBEA /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB012928DE900B8313A /* OpenGLES.framework */; }; - 7EBF316A19E7803F00A7FBEA /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - 7EBF316B19E7803F00A7FBEA /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - 7EBF316C19E7803F00A7FBEA /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - 7EBF316D19E7803F00A7FBEA /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - 7EBF316E19E7803F00A7FBEA /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - 7EBF317B19E7807500A7FBEA /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7EBF317519E7807500A7FBEA /* AppDelegate.cpp */; }; - 7EBF318019E843F100A7FBEA /* Chapter3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7EBF317E19E843F100A7FBEA /* Chapter3.cpp */; }; - 7EBF318319E84A1F00A7FBEA /* Marker Felt.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E1526C019D4E0020013F222 /* Marker Felt.ttf */; }; - 7EC0CFCB19ECD4BD00C41BDA /* dot.png in Resources */ = {isa = PBXBuildFile; fileRef = 7EC0CFC819ECD2FD00C41BDA /* dot.png */; }; - 7EC0CFCC19ECD4BE00C41BDA /* dot.png in Resources */ = {isa = PBXBuildFile; fileRef = 7EC0CFC819ECD2FD00C41BDA /* dot.png */; }; - 7EC0CFCD19ECE10A00C41BDA /* dot.png in Resources */ = {isa = PBXBuildFile; fileRef = 7EC0CFC819ECD2FD00C41BDA /* dot.png */; }; - 7EC0CFCE19ECE10B00C41BDA /* dot.png in Resources */ = {isa = PBXBuildFile; fileRef = 7EC0CFC819ECD2FD00C41BDA /* dot.png */; }; - B686A5F11AF1D2850050773F /* chapter9 in Resources */ = {isa = PBXBuildFile; fileRef = B686A5F01AF1D2850050773F /* chapter9 */; }; - B686A5F21AF1D2850050773F /* chapter9 in Resources */ = {isa = PBXBuildFile; fileRef = B686A5F01AF1D2850050773F /* chapter9 */; }; - B6C9D0481AF0C37C002EC43F /* Chapter9_10.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B6C9D0461AF0C37C002EC43F /* Chapter9_10.cpp */; }; - B6C9D0491AF0C37C002EC43F /* Chapter9_10.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B6C9D0461AF0C37C002EC43F /* Chapter9_10.cpp */; }; - BF171245129291EC00B8313A /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB012928DE900B8313A /* OpenGLES.framework */; }; - BF1712471292920000B8313A /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; }; - BF1C47F01293687400B63C5D /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; }; - D44C620C132DFF330009C878 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; }; - D44C620E132DFF430009C878 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; }; - D44C6210132DFF4E0009C878 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620F132DFF4E0009C878 /* AudioToolbox.framework */; }; - D6B0611B1803AB670077942B /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6B0611A1803AB670077942B /* CoreMotion.framework */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 25D87B9D1A84036100456FF7 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4C241783777C0073F6A7; - remoteInfo = "libcocos2d iOS"; - }; - 25D87BD61A84037000456FF7 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 1551A33E158F2AB200E66CFE; - remoteInfo = "libcocos2d Mac"; - }; - 296358BA19F78D4F003732AB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4C241783777C0073F6A7; - remoteInfo = "libcocos2d iOS"; - }; - 2963591819F78F74003732AB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 1551A33E158F2AB200E66CFE; - remoteInfo = "libcocos2d Mac"; - }; - 3EE7F8BE19ED607500448914 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4C241783777C0073F6A7; - remoteInfo = "libcocos2d iOS"; - }; - 3EE7F8F019ED607800448914 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 1551A33E158F2AB200E66CFE; - remoteInfo = "libcocos2d Mac"; - }; - 50BA599019D492B60070A133 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 1551A33F158F2AB200E66CFE; - remoteInfo = "libcocos2d Mac"; - }; - 50BA599219D492B60070A133 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4D641783777C0073F6A7; - remoteInfo = "libcocos2d iOS"; - }; - 50BA599419D492F50070A133 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4C241783777C0073F6A7; - remoteInfo = "libcocos2d iOS"; - }; - 50BA599619D492FA0070A133 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 1551A33E158F2AB200E66CFE; - remoteInfo = "libcocos2d Mac"; - }; - 50BA59B419D4992C0070A133 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4C241783777C0073F6A7; - remoteInfo = "libcocos2d iOS"; - }; - 50BA59E319D499360070A133 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 1551A33E158F2AB200E66CFE; - remoteInfo = "libcocos2d Mac"; - }; - 7E53689F19EC20DE005C3C64 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 1551A33E158F2AB200E66CFE; - remoteInfo = "libcocos2d Mac"; - }; - 7E5368F019EC228B005C3C64 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4C241783777C0073F6A7; - remoteInfo = "libcocos2d iOS"; - }; - 7E53692419EC22F4005C3C64 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 1551A33E158F2AB200E66CFE; - remoteInfo = "libcocos2d Mac"; - }; - 7E914A441A1BC3F200C6B2D4 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4C241783777C0073F6A7; - remoteInfo = "libcocos2d iOS"; - }; - 7E914A721A1BC40200C6B2D4 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 1551A33E158F2AB200E66CFE; - remoteInfo = "libcocos2d Mac"; - }; - 7E9571A019F1938B00F6AE44 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4C241783777C0073F6A7; - remoteInfo = "libcocos2d iOS"; - }; - 7E9571D519F196D200F6AE44 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 1551A33E158F2AB200E66CFE; - remoteInfo = "libcocos2d Mac"; - }; - 7E95720419F197BA00F6AE44 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4C241783777C0073F6A7; - remoteInfo = "libcocos2d iOS"; - }; - 7E95722E19F197F500F6AE44 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 1551A33E158F2AB200E66CFE; - remoteInfo = "libcocos2d Mac"; - }; - 7EBF314119E7803F00A7FBEA /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4C241783777C0073F6A7; - remoteInfo = "libcocos2d iOS"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 1ACB3243164770DE00914215 /* libcurl.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libcurl.a; path = ../../cocos2dx/platform/third_party/ios/libraries/libcurl.a; sourceTree = ""; }; - 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - 1D6058910D05DD3D006BFB54 /* Chapter 2.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 2.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; - 258B03631A8908D70078E3EF /* Chapter6_3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter6_3.cpp; path = chapter6/Chapter6_3.cpp; sourceTree = ""; }; - 258B03641A8908D70078E3EF /* Chapter6_3.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter6_3.h; path = chapter6/Chapter6_3.h; sourceTree = ""; }; - 258B03671A89131B0078E3EF /* Button_Disable.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Button_Disable.png; sourceTree = ""; }; - 258B03681A89131B0078E3EF /* Button_Normal.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Button_Normal.png; sourceTree = ""; }; - 258B03691A89131B0078E3EF /* Button_Press.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Button_Press.png; sourceTree = ""; }; - 258B03711A892CFD0078E3EF /* Chapter6_4.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter6_4.cpp; path = chapter6/Chapter6_4.cpp; sourceTree = ""; }; - 258B03721A892CFD0078E3EF /* Chapter6_4.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter6_4.h; path = chapter6/Chapter6_4.h; sourceTree = ""; }; - 258B03751A892DC90078E3EF /* CheckBox_Disable.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = CheckBox_Disable.png; sourceTree = ""; }; - 258B03761A892DC90078E3EF /* CheckBox_Normal.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = CheckBox_Normal.png; sourceTree = ""; }; - 258B03771A892DC90078E3EF /* CheckBox_Press.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = CheckBox_Press.png; sourceTree = ""; }; - 258B03781A892DC90078E3EF /* CheckBoxNode_Disable.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = CheckBoxNode_Disable.png; sourceTree = ""; }; - 258B03791A892DC90078E3EF /* CheckBoxNode_Normal.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = CheckBoxNode_Normal.png; sourceTree = ""; }; - 258B03841A892F330078E3EF /* Chapter6_5.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter6_5.cpp; path = chapter6/Chapter6_5.cpp; sourceTree = ""; }; - 258B03851A892F330078E3EF /* Chapter6_5.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter6_5.h; path = chapter6/Chapter6_5.h; sourceTree = ""; }; - 258B03881A892FF60078E3EF /* LoadingBarFile.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = LoadingBarFile.png; sourceTree = ""; }; - 258B038B1A8942A40078E3EF /* Chapter6_6.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter6_6.cpp; path = chapter6/Chapter6_6.cpp; sourceTree = ""; }; - 258B038C1A8942A40078E3EF /* Chapter6_6.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter6_6.h; path = chapter6/Chapter6_6.h; sourceTree = ""; }; - 258B038F1A8942ED0078E3EF /* Slider_Back.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Slider_Back.png; sourceTree = ""; }; - 258B03901A8942ED0078E3EF /* Slider_PressBar.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Slider_PressBar.png; sourceTree = ""; }; - 258B03911A8942ED0078E3EF /* SliderNode_Disable.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = SliderNode_Disable.png; sourceTree = ""; }; - 258B03921A8942ED0078E3EF /* SliderNode_Normal.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = SliderNode_Normal.png; sourceTree = ""; }; - 258B03931A8942ED0078E3EF /* SliderNode_Press.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = SliderNode_Press.png; sourceTree = ""; }; - 258B039E1A8948CD0078E3EF /* Chapter6_7.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter6_7.cpp; path = chapter6/Chapter6_7.cpp; sourceTree = ""; }; - 258B039F1A8948CD0078E3EF /* Chapter6_7.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter6_7.h; path = chapter6/Chapter6_7.h; sourceTree = ""; }; - 258B03A81A8965110078E3EF /* isometric_grass_and_water.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = isometric_grass_and_water.png; sourceTree = ""; }; - 258B03A91A8965110078E3EF /* isometric_grass_and_water.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = isometric_grass_and_water.tmx; sourceTree = ""; }; - 258B03AE1A8C0DF40078E3EF /* Chapter7_2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Chapter7_2.cpp; sourceTree = ""; }; - 258B03AF1A8C0DF40078E3EF /* Chapter7_2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Chapter7_2.h; sourceTree = ""; }; - 258B03B21A8C10B60078E3EF /* Chapter7_3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Chapter7_3.cpp; sourceTree = ""; }; - 258B03B31A8C10B60078E3EF /* Chapter7_3.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Chapter7_3.h; sourceTree = ""; }; - 25D87BD21A84036100456FF7 /* Chapter 7 iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 7 iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 25D87BFB1A84037000456FF7 /* Chapter 7 Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 7 Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 25D87BFE1A84045700456FF7 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AppDelegate.cpp; sourceTree = ""; }; - 25D87BFF1A84045700456FF7 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 25D87C001A84045700456FF7 /* Chapter7.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Chapter7.cpp; sourceTree = ""; }; - 25D87C011A84045700456FF7 /* Chapter7.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Chapter7.h; sourceTree = ""; }; - 25D87C021A84045700456FF7 /* Chapter7_1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Chapter7_1.cpp; sourceTree = ""; }; - 25D87C031A84045700456FF7 /* Chapter7_1.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Chapter7_1.h; sourceTree = ""; }; - 25F1DB651A85412000A31EA4 /* CloseNormal.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = CloseNormal.png; sourceTree = ""; }; - 25F1DB661A85412000A31EA4 /* CloseSelected.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = CloseSelected.png; sourceTree = ""; }; - 25F1DB6C1A85413100A31EA4 /* CloseNormal.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = CloseNormal.png; sourceTree = ""; }; - 25F1DB6D1A85413100A31EA4 /* CloseSelected.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = CloseSelected.png; sourceTree = ""; }; - 25F1DB7E1A8551F700A31EA4 /* bitmapRed.fnt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = bitmapRed.fnt; sourceTree = ""; }; - 25F1DB7F1A8551F700A31EA4 /* bitmapRed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = bitmapRed.png; sourceTree = ""; }; - 25F1DB881A85672E00A31EA4 /* Chapter6_2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter6_2.cpp; path = chapter6/Chapter6_2.cpp; sourceTree = ""; }; - 25F1DB891A85672E00A31EA4 /* Chapter6_2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter6_2.h; path = chapter6/Chapter6_2.h; sourceTree = ""; }; - 25F2FF9C1A78393800CE153F /* Chapter6_1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter6_1.cpp; path = chapter6/Chapter6_1.cpp; sourceTree = ""; }; - 25F2FF9D1A78393800CE153F /* Chapter6_1.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter6_1.h; path = chapter6/Chapter6_1.h; sourceTree = ""; }; - 288765A40DF7441C002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; - 296358F119F78D4F003732AB /* Chapter 6 iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 6 iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 296358F419F78D81003732AB /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AppDelegate.cpp; path = chapter6/AppDelegate.cpp; sourceTree = ""; }; - 296358F519F78D81003732AB /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = chapter6/AppDelegate.h; sourceTree = ""; }; - 296358F619F78D81003732AB /* Chapter6.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter6.cpp; path = chapter6/Chapter6.cpp; sourceTree = ""; }; - 296358F719F78D81003732AB /* Chapter6.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter6.h; path = chapter6/Chapter6.h; sourceTree = ""; }; - 2963594219F78F74003732AB /* Chapter 6 Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 6 Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 3EE7F8EC19ED607500448914 /* Chapter 12 iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 12 iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 3EE7F90D19ED607800448914 /* Chapter 12 Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 12 Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 3EE7F91019ED60DF00448914 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AppDelegate.cpp; sourceTree = ""; }; - 3EE7F91119ED60DF00448914 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 3EE7F91219ED60DF00448914 /* Chapter12.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Chapter12.cpp; sourceTree = ""; }; - 3EE7F91319ED60DF00448914 /* Chapter12.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Chapter12.h; sourceTree = ""; }; - 3EE7F91819ED60F200448914 /* chapter12 */ = {isa = PBXFileReference; lastKnownFileType = folder; path = chapter12; sourceTree = ""; }; - 503AE0F617EB97AB00D1A890 /* Icon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Icon.icns; sourceTree = ""; }; - 503AE0F717EB97AB00D1A890 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 503AE0FA17EB989F00D1A890 /* AppController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppController.h; path = ios/AppController.h; sourceTree = SOURCE_ROOT; }; - 503AE0FB17EB989F00D1A890 /* AppController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppController.mm; path = ios/AppController.mm; sourceTree = SOURCE_ROOT; }; - 503AE0FC17EB989F00D1A890 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ios/main.m; sourceTree = SOURCE_ROOT; }; - 503AE0FD17EB989F00D1A890 /* Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Prefix.pch; path = ios/Prefix.pch; sourceTree = SOURCE_ROOT; }; - 503AE0FE17EB989F00D1A890 /* RootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RootViewController.h; path = ios/RootViewController.h; sourceTree = SOURCE_ROOT; }; - 503AE0FF17EB989F00D1A890 /* RootViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = RootViewController.mm; path = ios/RootViewController.mm; sourceTree = SOURCE_ROOT; }; - 503AE10317EB98FF00D1A890 /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = main.cpp; path = mac/main.cpp; sourceTree = ""; }; - 503AE10417EB98FF00D1A890 /* Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Prefix.pch; path = mac/Prefix.pch; sourceTree = ""; }; - 503AE11117EB99EE00D1A890 /* libcurl.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcurl.dylib; path = usr/lib/libcurl.dylib; sourceTree = SDKROOT; }; - 503AE11A17EB9C5A00D1A890 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; }; - 5087E76F17EB910900C73F5D /* Chapter 2 Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 2 Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 5087E77217EB970100C73F5D /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; - 5087E77317EB970100C73F5D /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; - 5087E77417EB970100C73F5D /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = ""; }; - 5087E77517EB970100C73F5D /* Icon-114.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-114.png"; sourceTree = ""; }; - 5087E77617EB970100C73F5D /* Icon-120.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-120.png"; sourceTree = ""; }; - 5087E77717EB970100C73F5D /* Icon-144.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-144.png"; sourceTree = ""; }; - 5087E77817EB970100C73F5D /* Icon-152.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-152.png"; sourceTree = ""; }; - 5087E77917EB970100C73F5D /* Icon-57.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-57.png"; sourceTree = ""; }; - 5087E77A17EB970100C73F5D /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-72.png"; sourceTree = ""; }; - 5087E77B17EB970100C73F5D /* Icon-76.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-76.png"; sourceTree = ""; }; - 5087E77C17EB970100C73F5D /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 5087E78817EB974C00C73F5D /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; - 5087E78A17EB975400C73F5D /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = System/Library/Frameworks/OpenGL.framework; sourceTree = SDKROOT; }; - 50A5DBBD19EC441300082E51 /* sprites.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = sprites.plist; path = ../res/chapter3/sprites.plist; sourceTree = ""; }; - 50A5DBBE19EC441300082E51 /* sprites.pvr.ccz */ = {isa = PBXFileReference; lastKnownFileType = file; name = sprites.pvr.ccz; path = ../res/chapter3/sprites.pvr.ccz; sourceTree = ""; }; - 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = cocos2d_libs.xcodeproj; path = "../libs/cocos2d-x/build/cocos2d_libs.xcodeproj"; sourceTree = ""; }; - 50BA599A19D493310070A133 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AppDelegate.cpp; sourceTree = ""; }; - 50BA599B19D493310070A133 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 50BA599C19D493310070A133 /* Chapter2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Chapter2.cpp; sourceTree = ""; }; - 50BA599D19D493310070A133 /* Chapter2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Chapter2.h; sourceTree = ""; }; - 50BA59DF19D4992C0070A133 /* Chapter 9 iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 9 iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 50BA59FD19D499360070A133 /* Chapter 9 Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 9 Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 50EF629217ECD46A001EB2F8 /* Icon-40.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-40.png"; sourceTree = ""; }; - 50EF629317ECD46A001EB2F8 /* Icon-58.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-58.png"; sourceTree = ""; }; - 50EF629417ECD46A001EB2F8 /* Icon-80.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-80.png"; sourceTree = ""; }; - 50EF629517ECD46A001EB2F8 /* Icon-100.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-100.png"; sourceTree = ""; }; - 50EF62A017ECD613001EB2F8 /* Icon-29.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-29.png"; sourceTree = ""; }; - 50EF62A117ECD613001EB2F8 /* Icon-50.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-50.png"; sourceTree = ""; }; - 5E38D2C419F0F3DD0099B433 /* Chapter9_9.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter9_9.cpp; path = chapter9/Chapter9_9.cpp; sourceTree = ""; }; - 5E38D2C519F0F3DD0099B433 /* Chapter9_9.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter9_9.h; path = chapter9/Chapter9_9.h; sourceTree = ""; }; - 7E1526AE19D4DE890013F222 /* Blue_Front1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Blue_Front1.png; sourceTree = ""; }; - 7E1526B019D4DE890013F222 /* LightBlue_Front1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = LightBlue_Front1.png; sourceTree = ""; }; - 7E1526B119D4DE890013F222 /* White_Front1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = White_Front1.png; sourceTree = ""; }; - 7E1526B219D4DE890013F222 /* ZigzagForest_Square.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ZigzagForest_Square.png; sourceTree = ""; }; - 7E1526B319D4DE890013F222 /* ZigzagGrass_Mud_Round.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ZigzagGrass_Mud_Round.png; sourceTree = ""; }; - 7E1526C019D4E0020013F222 /* Marker Felt.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Marker Felt.ttf"; sourceTree = ""; }; - 7E273C7E19D9CE460029CCC0 /* Chapter2Level1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Chapter2Level1.cpp; sourceTree = ""; }; - 7E273C7F19D9CE460029CCC0 /* Chapter2Level1.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Chapter2Level1.h; sourceTree = ""; }; - 7E35329019F06ECB0080126B /* Blue_Back1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Blue_Back1.png; path = chapter4/Blue_Back1.png; sourceTree = ""; }; - 7E35329119F06ECB0080126B /* Blue_Back2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Blue_Back2.png; path = chapter4/Blue_Back2.png; sourceTree = ""; }; - 7E35329219F06ECB0080126B /* Blue_Back3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Blue_Back3.png; path = chapter4/Blue_Back3.png; sourceTree = ""; }; - 7E35329319F06ECB0080126B /* Blue_Front1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Blue_Front1.png; path = chapter4/Blue_Front1.png; sourceTree = ""; }; - 7E35329419F06ECB0080126B /* Blue_Front2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Blue_Front2.png; path = chapter4/Blue_Front2.png; sourceTree = ""; }; - 7E35329519F06ECB0080126B /* Blue_Front3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Blue_Front3.png; path = chapter4/Blue_Front3.png; sourceTree = ""; }; - 7E35329619F06ECB0080126B /* Blue_Left1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Blue_Left1.png; path = chapter4/Blue_Left1.png; sourceTree = ""; }; - 7E35329719F06ECB0080126B /* Blue_Left2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Blue_Left2.png; path = chapter4/Blue_Left2.png; sourceTree = ""; }; - 7E35329819F06ECB0080126B /* Blue_Left3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Blue_Left3.png; path = chapter4/Blue_Left3.png; sourceTree = ""; }; - 7E35329919F06ECB0080126B /* Blue_Right1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Blue_Right1.png; path = chapter4/Blue_Right1.png; sourceTree = ""; }; - 7E35329A19F06ECB0080126B /* Blue_Right2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Blue_Right2.png; path = chapter4/Blue_Right2.png; sourceTree = ""; }; - 7E35329B19F06ECB0080126B /* Blue_Right3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Blue_Right3.png; path = chapter4/Blue_Right3.png; sourceTree = ""; }; - 7E53686B19EAD894005C3C64 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AppDelegate.cpp; path = chapter9/AppDelegate.cpp; sourceTree = ""; }; - 7E53686C19EAD894005C3C64 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = chapter9/AppDelegate.h; sourceTree = ""; }; - 7E53686D19EAD894005C3C64 /* Chapter9_1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter9_1.cpp; path = chapter9/Chapter9_1.cpp; sourceTree = ""; }; - 7E53686E19EAD894005C3C64 /* Chapter9_1.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter9_1.h; path = chapter9/Chapter9_1.h; sourceTree = ""; }; - 7E53686F19EAD894005C3C64 /* Chapter9_2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter9_2.cpp; path = chapter9/Chapter9_2.cpp; sourceTree = ""; }; - 7E53687019EAD894005C3C64 /* Chapter9_2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter9_2.h; path = chapter9/Chapter9_2.h; sourceTree = ""; }; - 7E53687119EAD894005C3C64 /* Chapter9_3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter9_3.cpp; path = chapter9/Chapter9_3.cpp; sourceTree = ""; }; - 7E53687219EAD894005C3C64 /* Chapter9_3.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter9_3.h; path = chapter9/Chapter9_3.h; sourceTree = ""; }; - 7E53687319EAD894005C3C64 /* Chapter9_4.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter9_4.cpp; path = chapter9/Chapter9_4.cpp; sourceTree = ""; }; - 7E53687419EAD894005C3C64 /* Chapter9_4.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter9_4.h; path = chapter9/Chapter9_4.h; sourceTree = ""; }; - 7E53687519EAD894005C3C64 /* Chapter9_5.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter9_5.cpp; path = chapter9/Chapter9_5.cpp; sourceTree = ""; }; - 7E53687619EAD894005C3C64 /* Chapter9_5.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter9_5.h; path = chapter9/Chapter9_5.h; sourceTree = ""; }; - 7E53687719EAD894005C3C64 /* Chapter9_6.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter9_6.cpp; path = chapter9/Chapter9_6.cpp; sourceTree = ""; }; - 7E53687819EAD894005C3C64 /* Chapter9_6.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter9_6.h; path = chapter9/Chapter9_6.h; sourceTree = ""; }; - 7E53687919EAD894005C3C64 /* Chapter9_7.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter9_7.cpp; path = chapter9/Chapter9_7.cpp; sourceTree = ""; }; - 7E53687A19EAD894005C3C64 /* Chapter9_7.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter9_7.h; path = chapter9/Chapter9_7.h; sourceTree = ""; }; - 7E53687B19EAD894005C3C64 /* Chapter9_8.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter9_8.cpp; path = chapter9/Chapter9_8.cpp; sourceTree = ""; }; - 7E53687C19EAD894005C3C64 /* Chapter9_8.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter9_8.h; path = chapter9/Chapter9_8.h; sourceTree = ""; }; - 7E53687D19EAD894005C3C64 /* Chapter9.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter9.cpp; path = chapter9/Chapter9.cpp; sourceTree = ""; }; - 7E53687E19EAD894005C3C64 /* Chapter9.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter9.h; path = chapter9/Chapter9.h; sourceTree = ""; }; - 7E53687F19EAD894005C3C64 /* DrawNode3D.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = DrawNode3D.cpp; path = chapter9/DrawNode3D.cpp; sourceTree = ""; }; - 7E53688019EAD894005C3C64 /* DrawNode3D.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DrawNode3D.h; path = chapter9/DrawNode3D.h; sourceTree = ""; }; - 7E5368DF19EC20DE005C3C64 /* Chapter 3 Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 3 Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7E53692019EC228B005C3C64 /* Chapter 4 iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 4 iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7E53694419EC22F4005C3C64 /* Chapter 4 Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 4 Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7E53694619EC234D005C3C64 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AppDelegate.cpp; path = chapter4/AppDelegate.cpp; sourceTree = ""; }; - 7E53694719EC234D005C3C64 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = chapter4/AppDelegate.h; sourceTree = ""; }; - 7E53694819EC234D005C3C64 /* Chapter4.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter4.cpp; path = chapter4/Chapter4.cpp; sourceTree = ""; }; - 7E53694919EC234D005C3C64 /* Chapter4.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter4.h; path = chapter4/Chapter4.h; sourceTree = ""; }; - 7E914A6E1A1BC3F200C6B2D4 /* Chapter 5 iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 5 iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7E914A8B1A1BC40200C6B2D4 /* Chapter 5 Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 5 Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7E914A8E1A1BC8F500C6B2D4 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AppDelegate.cpp; sourceTree = ""; }; - 7E914A8F1A1BC8F500C6B2D4 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 7E914A901A1BC8F500C6B2D4 /* Chapter5.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Chapter5.cpp; sourceTree = ""; }; - 7E914A911A1BC8F500C6B2D4 /* Chapter5.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Chapter5.h; sourceTree = ""; }; - 7E9571D119F1938B00F6AE44 /* Chapter 8 iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 8 iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7E9571FF19F196D200F6AE44 /* Chapter 8 Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 8 Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7E95722A19F197BA00F6AE44 /* Chapter 13 iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 13 iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7E95724319F197F500F6AE44 /* Chapter 13 Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 13 Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7E95724519F1983600F6AE44 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AppDelegate.cpp; path = chapter13/AppDelegate.cpp; sourceTree = ""; }; - 7E95724619F1983600F6AE44 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = chapter13/AppDelegate.h; sourceTree = ""; }; - 7E95724719F1983600F6AE44 /* Chapter13.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter13.cpp; path = chapter13/Chapter13.cpp; sourceTree = ""; }; - 7E95724819F1983600F6AE44 /* Chapter13.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter13.h; path = chapter13/Chapter13.h; sourceTree = ""; }; - 7E95724E19F1993300F6AE44 /* alert.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; name = alert.mp3; path = chapter13/alert.mp3; sourceTree = ""; }; - 7E95724F19F1993300F6AE44 /* music.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; name = music.mp3; path = chapter13/music.mp3; sourceTree = ""; }; - 7EBF317219E7803F00A7FBEA /* Chapter 3.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Chapter 3.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7EBF317519E7807500A7FBEA /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AppDelegate.cpp; sourceTree = ""; }; - 7EBF317619E7807500A7FBEA /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 7EBF317E19E843F100A7FBEA /* Chapter3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Chapter3.cpp; sourceTree = ""; }; - 7EBF317F19E843F100A7FBEA /* Chapter3.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Chapter3.h; sourceTree = ""; }; - 7EC0CFC819ECD2FD00C41BDA /* dot.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = dot.png; sourceTree = ""; }; - B686A5F01AF1D2850050773F /* chapter9 */ = {isa = PBXFileReference; lastKnownFileType = folder; path = chapter9; sourceTree = ""; }; - B6C9D0461AF0C37C002EC43F /* Chapter9_10.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Chapter9_10.cpp; path = chapter9/Chapter9_10.cpp; sourceTree = ""; }; - B6C9D0471AF0C37C002EC43F /* Chapter9_10.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Chapter9_10.h; path = chapter9/Chapter9_10.h; sourceTree = ""; }; - BF170DB012928DE900B8313A /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; }; - BF170DB412928DE900B8313A /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; }; - BF1C47EA1293683800B63C5D /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; - D44C620B132DFF330009C878 /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = System/Library/Frameworks/OpenAL.framework; sourceTree = SDKROOT; }; - D44C620D132DFF430009C878 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; - D44C620F132DFF4E0009C878 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; - D6B0611A1803AB670077942B /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/CoreMotion.framework; sourceTree = DEVELOPER_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 1D60588F0D05DD3D006BFB54 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 50BA59A319D4981C0070A133 /* libcocos2d iOS.a in Frameworks */, - D6B0611B1803AB670077942B /* CoreMotion.framework in Frameworks */, - 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */, - 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */, - 288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */, - BF171245129291EC00B8313A /* OpenGLES.framework in Frameworks */, - BF1712471292920000B8313A /* libz.dylib in Frameworks */, - BF1C47F01293687400B63C5D /* QuartzCore.framework in Frameworks */, - D44C620C132DFF330009C878 /* OpenAL.framework in Frameworks */, - D44C620E132DFF430009C878 /* AVFoundation.framework in Frameworks */, - D44C6210132DFF4E0009C878 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 25D87BC31A84036100456FF7 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 25D87BC41A84036100456FF7 /* libcocos2d iOS.a in Frameworks */, - 25D87BC51A84036100456FF7 /* CoreMotion.framework in Frameworks */, - 25D87BC61A84036100456FF7 /* Foundation.framework in Frameworks */, - 25D87BC71A84036100456FF7 /* UIKit.framework in Frameworks */, - 25D87BC81A84036100456FF7 /* CoreGraphics.framework in Frameworks */, - 25D87BC91A84036100456FF7 /* OpenGLES.framework in Frameworks */, - 25D87BCA1A84036100456FF7 /* libz.dylib in Frameworks */, - 25D87BCB1A84036100456FF7 /* QuartzCore.framework in Frameworks */, - 25D87BCC1A84036100456FF7 /* OpenAL.framework in Frameworks */, - 25D87BCD1A84036100456FF7 /* AVFoundation.framework in Frameworks */, - 25D87BCE1A84036100456FF7 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 25D87BEC1A84037000456FF7 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 25D87BED1A84037000456FF7 /* libcocos2d Mac.a in Frameworks */, - 25D87BEE1A84037000456FF7 /* libcurl.dylib in Frameworks */, - 25D87BEF1A84037000456FF7 /* libz.dylib in Frameworks */, - 25D87BF01A84037000456FF7 /* IOKit.framework in Frameworks */, - 25D87BF11A84037000456FF7 /* OpenGL.framework in Frameworks */, - 25D87BF21A84037000456FF7 /* AppKit.framework in Frameworks */, - 25D87BF31A84037000456FF7 /* Foundation.framework in Frameworks */, - 25D87BF41A84037000456FF7 /* QuartzCore.framework in Frameworks */, - 25D87BF51A84037000456FF7 /* OpenAL.framework in Frameworks */, - 25D87BF61A84037000456FF7 /* AVFoundation.framework in Frameworks */, - 25D87BF71A84037000456FF7 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 296358E219F78D4F003732AB /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 296358E319F78D4F003732AB /* libcocos2d iOS.a in Frameworks */, - 296358E419F78D4F003732AB /* CoreMotion.framework in Frameworks */, - 296358E519F78D4F003732AB /* Foundation.framework in Frameworks */, - 296358E619F78D4F003732AB /* UIKit.framework in Frameworks */, - 296358E719F78D4F003732AB /* CoreGraphics.framework in Frameworks */, - 296358E819F78D4F003732AB /* OpenGLES.framework in Frameworks */, - 296358E919F78D4F003732AB /* libz.dylib in Frameworks */, - 296358EA19F78D4F003732AB /* QuartzCore.framework in Frameworks */, - 296358EB19F78D4F003732AB /* OpenAL.framework in Frameworks */, - 296358EC19F78D4F003732AB /* AVFoundation.framework in Frameworks */, - 296358ED19F78D4F003732AB /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2963593319F78F74003732AB /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 2963593419F78F74003732AB /* libcocos2d Mac.a in Frameworks */, - 2963593519F78F74003732AB /* libcurl.dylib in Frameworks */, - 2963593619F78F74003732AB /* libz.dylib in Frameworks */, - 2963593719F78F74003732AB /* IOKit.framework in Frameworks */, - 2963593819F78F74003732AB /* OpenGL.framework in Frameworks */, - 2963593919F78F74003732AB /* AppKit.framework in Frameworks */, - 2963593A19F78F74003732AB /* Foundation.framework in Frameworks */, - 2963593B19F78F74003732AB /* QuartzCore.framework in Frameworks */, - 2963593C19F78F74003732AB /* OpenAL.framework in Frameworks */, - 2963593D19F78F74003732AB /* AVFoundation.framework in Frameworks */, - 2963593E19F78F74003732AB /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3EE7F8DD19ED607500448914 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 3EE7F8DE19ED607500448914 /* libcocos2d iOS.a in Frameworks */, - 3EE7F8DF19ED607500448914 /* CoreMotion.framework in Frameworks */, - 3EE7F8E019ED607500448914 /* Foundation.framework in Frameworks */, - 3EE7F8E119ED607500448914 /* UIKit.framework in Frameworks */, - 3EE7F8E219ED607500448914 /* CoreGraphics.framework in Frameworks */, - 3EE7F8E319ED607500448914 /* OpenGLES.framework in Frameworks */, - 3EE7F8E419ED607500448914 /* libz.dylib in Frameworks */, - 3EE7F8E519ED607500448914 /* QuartzCore.framework in Frameworks */, - 3EE7F8E619ED607500448914 /* OpenAL.framework in Frameworks */, - 3EE7F8E719ED607500448914 /* AVFoundation.framework in Frameworks */, - 3EE7F8E819ED607500448914 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3EE7F8FE19ED607800448914 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 3EE7F8FF19ED607800448914 /* libcocos2d Mac.a in Frameworks */, - 3EE7F90019ED607800448914 /* libcurl.dylib in Frameworks */, - 3EE7F90119ED607800448914 /* libz.dylib in Frameworks */, - 3EE7F90219ED607800448914 /* IOKit.framework in Frameworks */, - 3EE7F90319ED607800448914 /* OpenGL.framework in Frameworks */, - 3EE7F90419ED607800448914 /* AppKit.framework in Frameworks */, - 3EE7F90519ED607800448914 /* Foundation.framework in Frameworks */, - 3EE7F90619ED607800448914 /* QuartzCore.framework in Frameworks */, - 3EE7F90719ED607800448914 /* OpenAL.framework in Frameworks */, - 3EE7F90819ED607800448914 /* AVFoundation.framework in Frameworks */, - 3EE7F90919ED607800448914 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5087E75C17EB910900C73F5D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 50BA59A219D498180070A133 /* libcocos2d Mac.a in Frameworks */, - 503AE11217EB99EE00D1A890 /* libcurl.dylib in Frameworks */, - 5087E76717EB910900C73F5D /* libz.dylib in Frameworks */, - 503AE11B17EB9C5A00D1A890 /* IOKit.framework in Frameworks */, - 5087E78B17EB975400C73F5D /* OpenGL.framework in Frameworks */, - 5087E78917EB974C00C73F5D /* AppKit.framework in Frameworks */, - 5087E76317EB910900C73F5D /* Foundation.framework in Frameworks */, - 5087E76817EB910900C73F5D /* QuartzCore.framework in Frameworks */, - 5087E76917EB910900C73F5D /* OpenAL.framework in Frameworks */, - 5087E76A17EB910900C73F5D /* AVFoundation.framework in Frameworks */, - 5087E76B17EB910900C73F5D /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50BA59D019D4992C0070A133 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 50BA59D119D4992C0070A133 /* libcocos2d iOS.a in Frameworks */, - 50BA59D219D4992C0070A133 /* CoreMotion.framework in Frameworks */, - 50BA59D319D4992C0070A133 /* Foundation.framework in Frameworks */, - 50BA59D419D4992C0070A133 /* UIKit.framework in Frameworks */, - 50BA59D519D4992C0070A133 /* CoreGraphics.framework in Frameworks */, - 50BA59D619D4992C0070A133 /* OpenGLES.framework in Frameworks */, - 50BA59D719D4992C0070A133 /* libz.dylib in Frameworks */, - 50BA59D819D4992C0070A133 /* QuartzCore.framework in Frameworks */, - 50BA59D919D4992C0070A133 /* OpenAL.framework in Frameworks */, - 50BA59DA19D4992C0070A133 /* AVFoundation.framework in Frameworks */, - 50BA59DB19D4992C0070A133 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50BA59EE19D499360070A133 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 50BA59EF19D499360070A133 /* libcocos2d Mac.a in Frameworks */, - 50BA59F019D499360070A133 /* libcurl.dylib in Frameworks */, - 50BA59F119D499360070A133 /* libz.dylib in Frameworks */, - 50BA59F219D499360070A133 /* IOKit.framework in Frameworks */, - 50BA59F319D499360070A133 /* OpenGL.framework in Frameworks */, - 50BA59F419D499360070A133 /* AppKit.framework in Frameworks */, - 50BA59F519D499360070A133 /* Foundation.framework in Frameworks */, - 50BA59F619D499360070A133 /* QuartzCore.framework in Frameworks */, - 50BA59F719D499360070A133 /* OpenAL.framework in Frameworks */, - 50BA59F819D499360070A133 /* AVFoundation.framework in Frameworks */, - 50BA59F919D499360070A133 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E5368D019EC20DE005C3C64 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E5368D119EC20DE005C3C64 /* libcocos2d Mac.a in Frameworks */, - 7E5368D219EC20DE005C3C64 /* libcurl.dylib in Frameworks */, - 7E5368D319EC20DE005C3C64 /* libz.dylib in Frameworks */, - 7E5368D419EC20DE005C3C64 /* IOKit.framework in Frameworks */, - 7E5368D519EC20DE005C3C64 /* OpenGL.framework in Frameworks */, - 7E5368D619EC20DE005C3C64 /* AppKit.framework in Frameworks */, - 7E5368D719EC20DE005C3C64 /* Foundation.framework in Frameworks */, - 7E5368D819EC20DE005C3C64 /* QuartzCore.framework in Frameworks */, - 7E5368D919EC20DE005C3C64 /* OpenAL.framework in Frameworks */, - 7E5368DA19EC20DE005C3C64 /* AVFoundation.framework in Frameworks */, - 7E5368DB19EC20DE005C3C64 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E53691119EC228B005C3C64 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E53691219EC228B005C3C64 /* libcocos2d iOS.a in Frameworks */, - 7E53691319EC228B005C3C64 /* CoreMotion.framework in Frameworks */, - 7E53691419EC228B005C3C64 /* Foundation.framework in Frameworks */, - 7E53691519EC228B005C3C64 /* UIKit.framework in Frameworks */, - 7E53691619EC228B005C3C64 /* CoreGraphics.framework in Frameworks */, - 7E53691719EC228B005C3C64 /* OpenGLES.framework in Frameworks */, - 7E53691819EC228B005C3C64 /* libz.dylib in Frameworks */, - 7E53691919EC228B005C3C64 /* QuartzCore.framework in Frameworks */, - 7E53691A19EC228B005C3C64 /* OpenAL.framework in Frameworks */, - 7E53691B19EC228B005C3C64 /* AVFoundation.framework in Frameworks */, - 7E53691C19EC228B005C3C64 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E53693519EC22F4005C3C64 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E53693619EC22F4005C3C64 /* libcocos2d Mac.a in Frameworks */, - 7E53693719EC22F4005C3C64 /* libcurl.dylib in Frameworks */, - 7E53693819EC22F4005C3C64 /* libz.dylib in Frameworks */, - 7E53693919EC22F4005C3C64 /* IOKit.framework in Frameworks */, - 7E53693A19EC22F4005C3C64 /* OpenGL.framework in Frameworks */, - 7E53693B19EC22F4005C3C64 /* AppKit.framework in Frameworks */, - 7E53693C19EC22F4005C3C64 /* Foundation.framework in Frameworks */, - 7E53693D19EC22F4005C3C64 /* QuartzCore.framework in Frameworks */, - 7E53693E19EC22F4005C3C64 /* OpenAL.framework in Frameworks */, - 7E53693F19EC22F4005C3C64 /* AVFoundation.framework in Frameworks */, - 7E53694019EC22F4005C3C64 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E914A5F1A1BC3F200C6B2D4 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E914A601A1BC3F200C6B2D4 /* libcocos2d iOS.a in Frameworks */, - 7E914A611A1BC3F200C6B2D4 /* CoreMotion.framework in Frameworks */, - 7E914A621A1BC3F200C6B2D4 /* Foundation.framework in Frameworks */, - 7E914A631A1BC3F200C6B2D4 /* UIKit.framework in Frameworks */, - 7E914A641A1BC3F200C6B2D4 /* CoreGraphics.framework in Frameworks */, - 7E914A651A1BC3F200C6B2D4 /* OpenGLES.framework in Frameworks */, - 7E914A661A1BC3F200C6B2D4 /* libz.dylib in Frameworks */, - 7E914A671A1BC3F200C6B2D4 /* QuartzCore.framework in Frameworks */, - 7E914A681A1BC3F200C6B2D4 /* OpenAL.framework in Frameworks */, - 7E914A691A1BC3F200C6B2D4 /* AVFoundation.framework in Frameworks */, - 7E914A6A1A1BC3F200C6B2D4 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E914A7C1A1BC40200C6B2D4 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E914A7D1A1BC40200C6B2D4 /* libcocos2d Mac.a in Frameworks */, - 7E914A7E1A1BC40200C6B2D4 /* libcurl.dylib in Frameworks */, - 7E914A7F1A1BC40200C6B2D4 /* libz.dylib in Frameworks */, - 7E914A801A1BC40200C6B2D4 /* IOKit.framework in Frameworks */, - 7E914A811A1BC40200C6B2D4 /* OpenGL.framework in Frameworks */, - 7E914A821A1BC40200C6B2D4 /* AppKit.framework in Frameworks */, - 7E914A831A1BC40200C6B2D4 /* Foundation.framework in Frameworks */, - 7E914A841A1BC40200C6B2D4 /* QuartzCore.framework in Frameworks */, - 7E914A851A1BC40200C6B2D4 /* OpenAL.framework in Frameworks */, - 7E914A861A1BC40200C6B2D4 /* AVFoundation.framework in Frameworks */, - 7E914A871A1BC40200C6B2D4 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E9571C219F1938B00F6AE44 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E9571C319F1938B00F6AE44 /* libcocos2d iOS.a in Frameworks */, - 7E9571C419F1938B00F6AE44 /* CoreMotion.framework in Frameworks */, - 7E9571C519F1938B00F6AE44 /* Foundation.framework in Frameworks */, - 7E9571C619F1938B00F6AE44 /* UIKit.framework in Frameworks */, - 7E9571C719F1938B00F6AE44 /* CoreGraphics.framework in Frameworks */, - 7E9571C819F1938B00F6AE44 /* OpenGLES.framework in Frameworks */, - 7E9571C919F1938B00F6AE44 /* libz.dylib in Frameworks */, - 7E9571CA19F1938B00F6AE44 /* QuartzCore.framework in Frameworks */, - 7E9571CB19F1938B00F6AE44 /* OpenAL.framework in Frameworks */, - 7E9571CC19F1938B00F6AE44 /* AVFoundation.framework in Frameworks */, - 7E9571CD19F1938B00F6AE44 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E9571F019F196D200F6AE44 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E9571F119F196D200F6AE44 /* libcocos2d Mac.a in Frameworks */, - 7E9571F219F196D200F6AE44 /* libcurl.dylib in Frameworks */, - 7E9571F319F196D200F6AE44 /* libz.dylib in Frameworks */, - 7E9571F419F196D200F6AE44 /* IOKit.framework in Frameworks */, - 7E9571F519F196D200F6AE44 /* OpenGL.framework in Frameworks */, - 7E9571F619F196D200F6AE44 /* AppKit.framework in Frameworks */, - 7E9571F719F196D200F6AE44 /* Foundation.framework in Frameworks */, - 7E9571F819F196D200F6AE44 /* QuartzCore.framework in Frameworks */, - 7E9571F919F196D200F6AE44 /* OpenAL.framework in Frameworks */, - 7E9571FA19F196D200F6AE44 /* AVFoundation.framework in Frameworks */, - 7E9571FB19F196D200F6AE44 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E95721B19F197BA00F6AE44 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E95721C19F197BA00F6AE44 /* libcocos2d iOS.a in Frameworks */, - 7E95721D19F197BA00F6AE44 /* CoreMotion.framework in Frameworks */, - 7E95721E19F197BA00F6AE44 /* Foundation.framework in Frameworks */, - 7E95721F19F197BA00F6AE44 /* UIKit.framework in Frameworks */, - 7E95722019F197BA00F6AE44 /* CoreGraphics.framework in Frameworks */, - 7E95722119F197BA00F6AE44 /* OpenGLES.framework in Frameworks */, - 7E95722219F197BA00F6AE44 /* libz.dylib in Frameworks */, - 7E95722319F197BA00F6AE44 /* QuartzCore.framework in Frameworks */, - 7E95722419F197BA00F6AE44 /* OpenAL.framework in Frameworks */, - 7E95722519F197BA00F6AE44 /* AVFoundation.framework in Frameworks */, - 7E95722619F197BA00F6AE44 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E95723419F197F500F6AE44 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E95723519F197F500F6AE44 /* libcocos2d Mac.a in Frameworks */, - 7E95723619F197F500F6AE44 /* libcurl.dylib in Frameworks */, - 7E95723719F197F500F6AE44 /* libz.dylib in Frameworks */, - 7E95723819F197F500F6AE44 /* IOKit.framework in Frameworks */, - 7E95723919F197F500F6AE44 /* OpenGL.framework in Frameworks */, - 7E95723A19F197F500F6AE44 /* AppKit.framework in Frameworks */, - 7E95723B19F197F500F6AE44 /* Foundation.framework in Frameworks */, - 7E95723C19F197F500F6AE44 /* QuartzCore.framework in Frameworks */, - 7E95723D19F197F500F6AE44 /* OpenAL.framework in Frameworks */, - 7E95723E19F197F500F6AE44 /* AVFoundation.framework in Frameworks */, - 7E95723F19F197F500F6AE44 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7EBF316319E7803F00A7FBEA /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 7EBF316419E7803F00A7FBEA /* libcocos2d iOS.a in Frameworks */, - 7EBF316519E7803F00A7FBEA /* CoreMotion.framework in Frameworks */, - 7EBF316619E7803F00A7FBEA /* Foundation.framework in Frameworks */, - 7EBF316719E7803F00A7FBEA /* UIKit.framework in Frameworks */, - 7EBF316819E7803F00A7FBEA /* CoreGraphics.framework in Frameworks */, - 7EBF316919E7803F00A7FBEA /* OpenGLES.framework in Frameworks */, - 7EBF316A19E7803F00A7FBEA /* libz.dylib in Frameworks */, - 7EBF316B19E7803F00A7FBEA /* QuartzCore.framework in Frameworks */, - 7EBF316C19E7803F00A7FBEA /* OpenAL.framework in Frameworks */, - 7EBF316D19E7803F00A7FBEA /* AVFoundation.framework in Frameworks */, - 7EBF316E19E7803F00A7FBEA /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 080E96DDFE201D6D7F000001 /* ios */ = { - isa = PBXGroup; - children = ( - 5087E77117EB970100C73F5D /* Icons */, - 503AE0FA17EB989F00D1A890 /* AppController.h */, - 503AE0FB17EB989F00D1A890 /* AppController.mm */, - 503AE0FC17EB989F00D1A890 /* main.m */, - 503AE0FD17EB989F00D1A890 /* Prefix.pch */, - 503AE0FE17EB989F00D1A890 /* RootViewController.h */, - 503AE0FF17EB989F00D1A890 /* RootViewController.mm */, - ); - name = ios; - path = Classes; - sourceTree = ""; - }; - 19C28FACFE9D520D11CA2CBB /* Products */ = { - isa = PBXGroup; - children = ( - 1D6058910D05DD3D006BFB54 /* Chapter 2.app */, - 5087E76F17EB910900C73F5D /* Chapter 2 Mac.app */, - 50BA59DF19D4992C0070A133 /* Chapter 9 iOS.app */, - 50BA59FD19D499360070A133 /* Chapter 9 Mac.app */, - 7EBF317219E7803F00A7FBEA /* Chapter 3.app */, - 7E5368DF19EC20DE005C3C64 /* Chapter 3 Mac.app */, - 7E53692019EC228B005C3C64 /* Chapter 4 iOS.app */, - 7E53694419EC22F4005C3C64 /* Chapter 4 Mac.app */, - 3EE7F8EC19ED607500448914 /* Chapter 12 iOS.app */, - 3EE7F90D19ED607800448914 /* Chapter 12 Mac.app */, - 7E9571D119F1938B00F6AE44 /* Chapter 8 iOS.app */, - 7E9571FF19F196D200F6AE44 /* Chapter 8 Mac.app */, - 7E95722A19F197BA00F6AE44 /* Chapter 13 iOS.app */, - 7E95724319F197F500F6AE44 /* Chapter 13 Mac.app */, - 296358F119F78D4F003732AB /* Chapter 6 iOS.app */, - 2963594219F78F74003732AB /* Chapter 6 Mac.app */, - 7E914A6E1A1BC3F200C6B2D4 /* Chapter 5 iOS.app */, - 7E914A8B1A1BC40200C6B2D4 /* Chapter 5 Mac.app */, - 25D87BD21A84036100456FF7 /* Chapter 7 iOS.app */, - 25D87BFB1A84037000456FF7 /* Chapter 7 Mac.app */, - ); - name = Products; - sourceTree = ""; - }; - 25D87BFD1A84045700456FF7 /* chapter7 */ = { - isa = PBXGroup; - children = ( - 25D87BFE1A84045700456FF7 /* AppDelegate.cpp */, - 25D87BFF1A84045700456FF7 /* AppDelegate.h */, - 25D87C001A84045700456FF7 /* Chapter7.cpp */, - 25D87C011A84045700456FF7 /* Chapter7.h */, - 25D87C021A84045700456FF7 /* Chapter7_1.cpp */, - 25D87C031A84045700456FF7 /* Chapter7_1.h */, - 258B03AE1A8C0DF40078E3EF /* Chapter7_2.cpp */, - 258B03AF1A8C0DF40078E3EF /* Chapter7_2.h */, - 258B03B21A8C10B60078E3EF /* Chapter7_3.cpp */, - 258B03B31A8C10B60078E3EF /* Chapter7_3.h */, - ); - path = chapter7; - sourceTree = ""; - }; - 25F1DB6B1A85413100A31EA4 /* chapter7 */ = { - isa = PBXGroup; - children = ( - 258B03A81A8965110078E3EF /* isometric_grass_and_water.png */, - 258B03A91A8965110078E3EF /* isometric_grass_and_water.tmx */, - 25F1DB6C1A85413100A31EA4 /* CloseNormal.png */, - 25F1DB6D1A85413100A31EA4 /* CloseSelected.png */, - ); - path = chapter7; - sourceTree = ""; - }; - 296358F319F78D6F003732AB /* chapter6 */ = { - isa = PBXGroup; - children = ( - 296358F419F78D81003732AB /* AppDelegate.cpp */, - 296358F519F78D81003732AB /* AppDelegate.h */, - 296358F619F78D81003732AB /* Chapter6.cpp */, - 296358F719F78D81003732AB /* Chapter6.h */, - 25F2FF9C1A78393800CE153F /* Chapter6_1.cpp */, - 25F2FF9D1A78393800CE153F /* Chapter6_1.h */, - 25F1DB881A85672E00A31EA4 /* Chapter6_2.cpp */, - 25F1DB891A85672E00A31EA4 /* Chapter6_2.h */, - 258B03631A8908D70078E3EF /* Chapter6_3.cpp */, - 258B03641A8908D70078E3EF /* Chapter6_3.h */, - 258B03711A892CFD0078E3EF /* Chapter6_4.cpp */, - 258B03721A892CFD0078E3EF /* Chapter6_4.h */, - 258B03841A892F330078E3EF /* Chapter6_5.cpp */, - 258B03851A892F330078E3EF /* Chapter6_5.h */, - 258B038B1A8942A40078E3EF /* Chapter6_6.cpp */, - 258B038C1A8942A40078E3EF /* Chapter6_6.h */, - 258B039E1A8948CD0078E3EF /* Chapter6_7.cpp */, - 258B039F1A8948CD0078E3EF /* Chapter6_7.h */, - ); - name = chapter6; - sourceTree = ""; - }; - 296358FC19F78ED4003732AB /* chapter6 */ = { - isa = PBXGroup; - children = ( - 258B038F1A8942ED0078E3EF /* Slider_Back.png */, - 258B03901A8942ED0078E3EF /* Slider_PressBar.png */, - 258B03911A8942ED0078E3EF /* SliderNode_Disable.png */, - 258B03921A8942ED0078E3EF /* SliderNode_Normal.png */, - 258B03931A8942ED0078E3EF /* SliderNode_Press.png */, - 258B03881A892FF60078E3EF /* LoadingBarFile.png */, - 258B03751A892DC90078E3EF /* CheckBox_Disable.png */, - 258B03761A892DC90078E3EF /* CheckBox_Normal.png */, - 258B03771A892DC90078E3EF /* CheckBox_Press.png */, - 258B03781A892DC90078E3EF /* CheckBoxNode_Disable.png */, - 258B03791A892DC90078E3EF /* CheckBoxNode_Normal.png */, - 258B03671A89131B0078E3EF /* Button_Disable.png */, - 258B03681A89131B0078E3EF /* Button_Normal.png */, - 258B03691A89131B0078E3EF /* Button_Press.png */, - 25F1DB7E1A8551F700A31EA4 /* bitmapRed.fnt */, - 25F1DB7F1A8551F700A31EA4 /* bitmapRed.png */, - 25F1DB651A85412000A31EA4 /* CloseNormal.png */, - 25F1DB661A85412000A31EA4 /* CloseSelected.png */, - ); - path = chapter6; - sourceTree = ""; - }; - 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { - isa = PBXGroup; - children = ( - 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */, - 50BA599819D493310070A133 /* src */, - 50C48A8B19D48B48008185B1 /* res */, - 29B97323FDCFA39411CA2CEA /* Frameworks */, - 080E96DDFE201D6D7F000001 /* ios */, - 503AE10617EB990700D1A890 /* mac */, - 19C28FACFE9D520D11CA2CBB /* Products */, - ); - name = CustomTemplate; - sourceTree = ""; - }; - 29B97323FDCFA39411CA2CEA /* Frameworks */ = { - isa = PBXGroup; - children = ( - D6B0611A1803AB670077942B /* CoreMotion.framework */, - 503AE11A17EB9C5A00D1A890 /* IOKit.framework */, - 503AE11117EB99EE00D1A890 /* libcurl.dylib */, - 5087E78A17EB975400C73F5D /* OpenGL.framework */, - 5087E78817EB974C00C73F5D /* AppKit.framework */, - 1ACB3243164770DE00914215 /* libcurl.a */, - BF170DB412928DE900B8313A /* libz.dylib */, - D44C620F132DFF4E0009C878 /* AudioToolbox.framework */, - D44C620D132DFF430009C878 /* AVFoundation.framework */, - 288765A40DF7441C002DB57D /* CoreGraphics.framework */, - 1D30AB110D05D00D00671497 /* Foundation.framework */, - D44C620B132DFF330009C878 /* OpenAL.framework */, - BF170DB012928DE900B8313A /* OpenGLES.framework */, - BF1C47EA1293683800B63C5D /* QuartzCore.framework */, - 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 3EE7F90F19ED60DF00448914 /* chapter12 */ = { - isa = PBXGroup; - children = ( - 3EE7F91019ED60DF00448914 /* AppDelegate.cpp */, - 3EE7F91119ED60DF00448914 /* AppDelegate.h */, - 3EE7F91219ED60DF00448914 /* Chapter12.cpp */, - 3EE7F91319ED60DF00448914 /* Chapter12.h */, - ); - path = chapter12; - sourceTree = ""; - }; - 503AE0F517EB97AB00D1A890 /* Icons */ = { - isa = PBXGroup; - children = ( - 503AE0F617EB97AB00D1A890 /* Icon.icns */, - 503AE0F717EB97AB00D1A890 /* Info.plist */, - ); - name = Icons; - path = mac; - sourceTree = SOURCE_ROOT; - }; - 503AE10617EB990700D1A890 /* mac */ = { - isa = PBXGroup; - children = ( - 503AE0F517EB97AB00D1A890 /* Icons */, - 503AE10317EB98FF00D1A890 /* main.cpp */, - 503AE10417EB98FF00D1A890 /* Prefix.pch */, - ); - name = mac; - sourceTree = ""; - }; - 5087E77117EB970100C73F5D /* Icons */ = { - isa = PBXGroup; - children = ( - 5087E77217EB970100C73F5D /* Default-568h@2x.png */, - 5087E77317EB970100C73F5D /* Default.png */, - 5087E77417EB970100C73F5D /* Default@2x.png */, - 50EF62A017ECD613001EB2F8 /* Icon-29.png */, - 50EF62A117ECD613001EB2F8 /* Icon-50.png */, - 50EF629217ECD46A001EB2F8 /* Icon-40.png */, - 50EF629317ECD46A001EB2F8 /* Icon-58.png */, - 50EF629417ECD46A001EB2F8 /* Icon-80.png */, - 50EF629517ECD46A001EB2F8 /* Icon-100.png */, - 5087E77517EB970100C73F5D /* Icon-114.png */, - 5087E77617EB970100C73F5D /* Icon-120.png */, - 5087E77717EB970100C73F5D /* Icon-144.png */, - 5087E77817EB970100C73F5D /* Icon-152.png */, - 5087E77917EB970100C73F5D /* Icon-57.png */, - 5087E77A17EB970100C73F5D /* Icon-72.png */, - 5087E77B17EB970100C73F5D /* Icon-76.png */, - 5087E77C17EB970100C73F5D /* Info.plist */, - ); - name = Icons; - path = ios; - sourceTree = SOURCE_ROOT; - }; - 50BA598C19D492B60070A133 /* Products */ = { - isa = PBXGroup; - children = ( - 50BA599119D492B60070A133 /* libcocos2d Mac.a */, - 50BA599319D492B60070A133 /* libcocos2d iOS.a */, - ); - name = Products; - sourceTree = ""; - }; - 50BA599819D493310070A133 /* src */ = { - isa = PBXGroup; - children = ( - 50BA599919D493310070A133 /* chapter2 */, - 7EBF317419E7807500A7FBEA /* chapter3 */, - 7E53689C19EC20C8005C3C64 /* chapter4 */, - 7E914A8D1A1BC8F500C6B2D4 /* chapter5 */, - 296358F319F78D6F003732AB /* chapter6 */, - 25D87BFD1A84045700456FF7 /* chapter7 */, - 7E95720119F1972600F6AE44 /* chapter8 */, - 7E53686A19EAD87E005C3C64 /* chapter9 */, - 3EE7F90F19ED60DF00448914 /* chapter12 */, - 7E95719D19F1884800F6AE44 /* chapter13 */, - ); - name = src; - path = ../src; - sourceTree = ""; - }; - 50BA599919D493310070A133 /* chapter2 */ = { - isa = PBXGroup; - children = ( - 50BA599A19D493310070A133 /* AppDelegate.cpp */, - 50BA599B19D493310070A133 /* AppDelegate.h */, - 50BA599C19D493310070A133 /* Chapter2.cpp */, - 50BA599D19D493310070A133 /* Chapter2.h */, - 7E273C7E19D9CE460029CCC0 /* Chapter2Level1.cpp */, - 7E273C7F19D9CE460029CCC0 /* Chapter2Level1.h */, - ); - path = chapter2; - sourceTree = ""; - }; - 50BA59A419D498F00070A133 /* chapter2 */ = { - isa = PBXGroup; - children = ( - 7E1526AE19D4DE890013F222 /* Blue_Front1.png */, - 7E1526B019D4DE890013F222 /* LightBlue_Front1.png */, - 7E1526B119D4DE890013F222 /* White_Front1.png */, - 7E1526B219D4DE890013F222 /* ZigzagForest_Square.png */, - 7E1526B319D4DE890013F222 /* ZigzagGrass_Mud_Round.png */, - ); - path = chapter2; - sourceTree = ""; - }; - 50C48A8B19D48B48008185B1 /* res */ = { - isa = PBXGroup; - children = ( - B686A5F01AF1D2850050773F /* chapter9 */, - 7EC0CFC819ECD2FD00C41BDA /* dot.png */, - 50BA59A419D498F00070A133 /* chapter2 */, - 7E53689719EB4016005C3C64 /* chapter3 */, - 7E35328F19F06EB40080126B /* chapter4 */, - 296358FC19F78ED4003732AB /* chapter6 */, - 25F1DB6B1A85413100A31EA4 /* chapter7 */, - 7E1526C019D4E0020013F222 /* Marker Felt.ttf */, - 3EE7F91819ED60F200448914 /* chapter12 */, - 7E95724D19F1991E00F6AE44 /* chapter13 */, - ); - name = res; - path = ../res; - sourceTree = ""; - }; - 7E35328F19F06EB40080126B /* chapter4 */ = { - isa = PBXGroup; - children = ( - 7E35329019F06ECB0080126B /* Blue_Back1.png */, - 7E35329119F06ECB0080126B /* Blue_Back2.png */, - 7E35329219F06ECB0080126B /* Blue_Back3.png */, - 7E35329319F06ECB0080126B /* Blue_Front1.png */, - 7E35329419F06ECB0080126B /* Blue_Front2.png */, - 7E35329519F06ECB0080126B /* Blue_Front3.png */, - 7E35329619F06ECB0080126B /* Blue_Left1.png */, - 7E35329719F06ECB0080126B /* Blue_Left2.png */, - 7E35329819F06ECB0080126B /* Blue_Left3.png */, - 7E35329919F06ECB0080126B /* Blue_Right1.png */, - 7E35329A19F06ECB0080126B /* Blue_Right2.png */, - 7E35329B19F06ECB0080126B /* Blue_Right3.png */, - ); - name = chapter4; - sourceTree = ""; - }; - 7E53686A19EAD87E005C3C64 /* chapter9 */ = { - isa = PBXGroup; - children = ( - B6C9D0461AF0C37C002EC43F /* Chapter9_10.cpp */, - B6C9D0471AF0C37C002EC43F /* Chapter9_10.h */, - 7E53686B19EAD894005C3C64 /* AppDelegate.cpp */, - 7E53686C19EAD894005C3C64 /* AppDelegate.h */, - 7E53687D19EAD894005C3C64 /* Chapter9.cpp */, - 7E53687E19EAD894005C3C64 /* Chapter9.h */, - 7E53686D19EAD894005C3C64 /* Chapter9_1.cpp */, - 7E53686E19EAD894005C3C64 /* Chapter9_1.h */, - 7E53686F19EAD894005C3C64 /* Chapter9_2.cpp */, - 7E53687019EAD894005C3C64 /* Chapter9_2.h */, - 7E53687119EAD894005C3C64 /* Chapter9_3.cpp */, - 7E53687219EAD894005C3C64 /* Chapter9_3.h */, - 7E53687319EAD894005C3C64 /* Chapter9_4.cpp */, - 7E53687419EAD894005C3C64 /* Chapter9_4.h */, - 7E53687519EAD894005C3C64 /* Chapter9_5.cpp */, - 7E53687619EAD894005C3C64 /* Chapter9_5.h */, - 7E53687719EAD894005C3C64 /* Chapter9_6.cpp */, - 7E53687819EAD894005C3C64 /* Chapter9_6.h */, - 7E53687919EAD894005C3C64 /* Chapter9_7.cpp */, - 7E53687A19EAD894005C3C64 /* Chapter9_7.h */, - 7E53687B19EAD894005C3C64 /* Chapter9_8.cpp */, - 7E53687C19EAD894005C3C64 /* Chapter9_8.h */, - 5E38D2C419F0F3DD0099B433 /* Chapter9_9.cpp */, - 5E38D2C519F0F3DD0099B433 /* Chapter9_9.h */, - 7E53687F19EAD894005C3C64 /* DrawNode3D.cpp */, - 7E53688019EAD894005C3C64 /* DrawNode3D.h */, - ); - name = chapter9; - sourceTree = ""; - }; - 7E53689719EB4016005C3C64 /* chapter3 */ = { - isa = PBXGroup; - children = ( - 50A5DBBD19EC441300082E51 /* sprites.plist */, - 50A5DBBE19EC441300082E51 /* sprites.pvr.ccz */, - ); - name = chapter3; - path = ../proj.ios_mac; - sourceTree = ""; - }; - 7E53689C19EC20C8005C3C64 /* chapter4 */ = { - isa = PBXGroup; - children = ( - 7E53694619EC234D005C3C64 /* AppDelegate.cpp */, - 7E53694719EC234D005C3C64 /* AppDelegate.h */, - 7E53694819EC234D005C3C64 /* Chapter4.cpp */, - 7E53694919EC234D005C3C64 /* Chapter4.h */, - ); - name = chapter4; - sourceTree = ""; - }; - 7E914A8D1A1BC8F500C6B2D4 /* chapter5 */ = { - isa = PBXGroup; - children = ( - 7E914A8E1A1BC8F500C6B2D4 /* AppDelegate.cpp */, - 7E914A8F1A1BC8F500C6B2D4 /* AppDelegate.h */, - 7E914A901A1BC8F500C6B2D4 /* Chapter5.cpp */, - 7E914A911A1BC8F500C6B2D4 /* Chapter5.h */, - ); - path = chapter5; - sourceTree = ""; - }; - 7E95719D19F1884800F6AE44 /* chapter13 */ = { - isa = PBXGroup; - children = ( - 7E95724519F1983600F6AE44 /* AppDelegate.cpp */, - 7E95724619F1983600F6AE44 /* AppDelegate.h */, - 7E95724719F1983600F6AE44 /* Chapter13.cpp */, - 7E95724819F1983600F6AE44 /* Chapter13.h */, - ); - name = chapter13; - sourceTree = ""; - }; - 7E95720119F1972600F6AE44 /* chapter8 */ = { - isa = PBXGroup; - children = ( - ); - name = chapter8; - sourceTree = ""; - }; - 7E95724D19F1991E00F6AE44 /* chapter13 */ = { - isa = PBXGroup; - children = ( - 7E95724E19F1993300F6AE44 /* alert.mp3 */, - 7E95724F19F1993300F6AE44 /* music.mp3 */, - ); - name = chapter13; - sourceTree = ""; - }; - 7EBF317419E7807500A7FBEA /* chapter3 */ = { - isa = PBXGroup; - children = ( - 7EBF317519E7807500A7FBEA /* AppDelegate.cpp */, - 7EBF317619E7807500A7FBEA /* AppDelegate.h */, - 7EBF317E19E843F100A7FBEA /* Chapter3.cpp */, - 7EBF317F19E843F100A7FBEA /* Chapter3.h */, - ); - path = chapter3; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 1D6058900D05DD3D006BFB54 /* Chapter 2 iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Chapter 2 iOS" */; - buildPhases = ( - 1D60588D0D05DD3D006BFB54 /* Resources */, - 1D60588E0D05DD3D006BFB54 /* Sources */, - 1D60588F0D05DD3D006BFB54 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 50BA599519D492F50070A133 /* PBXTargetDependency */, - ); - name = "Chapter 2 iOS"; - productName = iphone; - productReference = 1D6058910D05DD3D006BFB54 /* Chapter 2.app */; - productType = "com.apple.product-type.application"; - }; - 25D87B9B1A84036100456FF7 /* Chapter 7 iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 25D87BCF1A84036100456FF7 /* Build configuration list for PBXNativeTarget "Chapter 7 iOS" */; - buildPhases = ( - 25D87B9E1A84036100456FF7 /* Resources */, - 25D87BBC1A84036100456FF7 /* Sources */, - 25D87BC31A84036100456FF7 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 25D87B9C1A84036100456FF7 /* PBXTargetDependency */, - ); - name = "Chapter 7 iOS"; - productName = iphone; - productReference = 25D87BD21A84036100456FF7 /* Chapter 7 iOS.app */; - productType = "com.apple.product-type.application"; - }; - 25D87BD41A84037000456FF7 /* Chapter 7 Mac */ = { - isa = PBXNativeTarget; - buildConfigurationList = 25D87BF81A84037000456FF7 /* Build configuration list for PBXNativeTarget "Chapter 7 Mac" */; - buildPhases = ( - 25D87BD71A84037000456FF7 /* Resources */, - 25D87BE51A84037000456FF7 /* Sources */, - 25D87BEC1A84037000456FF7 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 25D87BD51A84037000456FF7 /* PBXTargetDependency */, - ); - name = "Chapter 7 Mac"; - productName = iphone; - productReference = 25D87BFB1A84037000456FF7 /* Chapter 7 Mac.app */; - productType = "com.apple.product-type.application"; - }; - 296358B819F78D4F003732AB /* Chapter 6 iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 296358EE19F78D4F003732AB /* Build configuration list for PBXNativeTarget "Chapter 6 iOS" */; - buildPhases = ( - 296358BB19F78D4F003732AB /* Resources */, - 296358DC19F78D4F003732AB /* Sources */, - 296358E219F78D4F003732AB /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 296358B919F78D4F003732AB /* PBXTargetDependency */, - ); - name = "Chapter 6 iOS"; - productName = iphone; - productReference = 296358F119F78D4F003732AB /* Chapter 6 iOS.app */; - productType = "com.apple.product-type.application"; - }; - 2963591619F78F74003732AB /* Chapter 6 Mac */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2963593F19F78F74003732AB /* Build configuration list for PBXNativeTarget "Chapter 6 Mac" */; - buildPhases = ( - 2963591919F78F74003732AB /* Resources */, - 2963592E19F78F74003732AB /* Sources */, - 2963593319F78F74003732AB /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 2963591719F78F74003732AB /* PBXTargetDependency */, - ); - name = "Chapter 6 Mac"; - productName = iphone; - productReference = 2963594219F78F74003732AB /* Chapter 6 Mac.app */; - productType = "com.apple.product-type.application"; - }; - 3EE7F8BC19ED607500448914 /* Chapter 12 iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 3EE7F8E919ED607500448914 /* Build configuration list for PBXNativeTarget "Chapter 12 iOS" */; - buildPhases = ( - 3EE7F8BF19ED607500448914 /* Resources */, - 3EE7F8D619ED607500448914 /* Sources */, - 3EE7F8DD19ED607500448914 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 3EE7F8BD19ED607500448914 /* PBXTargetDependency */, - ); - name = "Chapter 12 iOS"; - productName = iphone; - productReference = 3EE7F8EC19ED607500448914 /* Chapter 12 iOS.app */; - productType = "com.apple.product-type.application"; - }; - 3EE7F8EE19ED607800448914 /* Chapter 12 Mac */ = { - isa = PBXNativeTarget; - buildConfigurationList = 3EE7F90A19ED607800448914 /* Build configuration list for PBXNativeTarget "Chapter 12 Mac" */; - buildPhases = ( - 3EE7F8F119ED607800448914 /* Resources */, - 3EE7F8F919ED607800448914 /* Sources */, - 3EE7F8FE19ED607800448914 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 3EE7F8EF19ED607800448914 /* PBXTargetDependency */, - ); - name = "Chapter 12 Mac"; - productName = iphone; - productReference = 3EE7F90D19ED607800448914 /* Chapter 12 Mac.app */; - productType = "com.apple.product-type.application"; - }; - 5087E73D17EB910900C73F5D /* Chapter 2 Mac */ = { - isa = PBXNativeTarget; - buildConfigurationList = 5087E76C17EB910900C73F5D /* Build configuration list for PBXNativeTarget "Chapter 2 Mac" */; - buildPhases = ( - 5087E74817EB910900C73F5D /* Resources */, - 5087E75617EB910900C73F5D /* Sources */, - 5087E75C17EB910900C73F5D /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 50BA599719D492FA0070A133 /* PBXTargetDependency */, - ); - name = "Chapter 2 Mac"; - productName = iphone; - productReference = 5087E76F17EB910900C73F5D /* Chapter 2 Mac.app */; - productType = "com.apple.product-type.application"; - }; - 50BA59B219D4992C0070A133 /* Chapter 9 iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 50BA59DC19D4992C0070A133 /* Build configuration list for PBXNativeTarget "Chapter 9 iOS" */; - buildPhases = ( - 50BA59B519D4992C0070A133 /* Resources */, - 50BA59CA19D4992C0070A133 /* Sources */, - 50BA59D019D4992C0070A133 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 50BA59B319D4992C0070A133 /* PBXTargetDependency */, - ); - name = "Chapter 9 iOS"; - productName = iphone; - productReference = 50BA59DF19D4992C0070A133 /* Chapter 9 iOS.app */; - productType = "com.apple.product-type.application"; - }; - 50BA59E119D499360070A133 /* Chapter 9 Mac */ = { - isa = PBXNativeTarget; - buildConfigurationList = 50BA59FA19D499360070A133 /* Build configuration list for PBXNativeTarget "Chapter 9 Mac" */; - buildPhases = ( - 50BA59E419D499360070A133 /* Resources */, - 50BA59EA19D499360070A133 /* Sources */, - 50BA59EE19D499360070A133 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 50BA59E219D499360070A133 /* PBXTargetDependency */, - ); - name = "Chapter 9 Mac"; - productName = iphone; - productReference = 50BA59FD19D499360070A133 /* Chapter 9 Mac.app */; - productType = "com.apple.product-type.application"; - }; - 7E53689D19EC20DE005C3C64 /* Chapter 3 Mac */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7E5368DC19EC20DE005C3C64 /* Build configuration list for PBXNativeTarget "Chapter 3 Mac" */; - buildPhases = ( - 7E5368A019EC20DE005C3C64 /* Resources */, - 7E5368C319EC20DE005C3C64 /* Sources */, - 7E5368D019EC20DE005C3C64 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 7E53689E19EC20DE005C3C64 /* PBXTargetDependency */, - ); - name = "Chapter 3 Mac"; - productName = iphone; - productReference = 7E5368DF19EC20DE005C3C64 /* Chapter 3 Mac.app */; - productType = "com.apple.product-type.application"; - }; - 7E5368EE19EC228B005C3C64 /* Chapter 4 iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7E53691D19EC228B005C3C64 /* Build configuration list for PBXNativeTarget "Chapter 4 iOS" */; - buildPhases = ( - 7E5368F119EC228B005C3C64 /* Resources */, - 7E53690B19EC228B005C3C64 /* Sources */, - 7E53691119EC228B005C3C64 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 7E5368EF19EC228B005C3C64 /* PBXTargetDependency */, - ); - name = "Chapter 4 iOS"; - productName = iphone; - productReference = 7E53692019EC228B005C3C64 /* Chapter 4 iOS.app */; - productType = "com.apple.product-type.application"; - }; - 7E53692219EC22F4005C3C64 /* Chapter 4 Mac */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7E53694119EC22F4005C3C64 /* Build configuration list for PBXNativeTarget "Chapter 4 Mac" */; - buildPhases = ( - 7E53692519EC22F4005C3C64 /* Resources */, - 7E53692F19EC22F4005C3C64 /* Sources */, - 7E53693519EC22F4005C3C64 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 7E53692319EC22F4005C3C64 /* PBXTargetDependency */, - ); - name = "Chapter 4 Mac"; - productName = iphone; - productReference = 7E53694419EC22F4005C3C64 /* Chapter 4 Mac.app */; - productType = "com.apple.product-type.application"; - }; - 7E914A421A1BC3F200C6B2D4 /* Chapter 5 iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7E914A6B1A1BC3F200C6B2D4 /* Build configuration list for PBXNativeTarget "Chapter 5 iOS" */; - buildPhases = ( - 7E914A451A1BC3F200C6B2D4 /* Resources */, - 7E914A591A1BC3F200C6B2D4 /* Sources */, - 7E914A5F1A1BC3F200C6B2D4 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 7E914A431A1BC3F200C6B2D4 /* PBXTargetDependency */, - ); - name = "Chapter 5 iOS"; - productName = iphone; - productReference = 7E914A6E1A1BC3F200C6B2D4 /* Chapter 5 iOS.app */; - productType = "com.apple.product-type.application"; - }; - 7E914A701A1BC40200C6B2D4 /* Chapter 5 Mac */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7E914A881A1BC40200C6B2D4 /* Build configuration list for PBXNativeTarget "Chapter 5 Mac" */; - buildPhases = ( - 7E914A731A1BC40200C6B2D4 /* Resources */, - 7E914A781A1BC40200C6B2D4 /* Sources */, - 7E914A7C1A1BC40200C6B2D4 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 7E914A711A1BC40200C6B2D4 /* PBXTargetDependency */, - ); - name = "Chapter 5 Mac"; - productName = iphone; - productReference = 7E914A8B1A1BC40200C6B2D4 /* Chapter 5 Mac.app */; - productType = "com.apple.product-type.application"; - }; - 7E95719E19F1938B00F6AE44 /* Chapter 8 iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7E9571CE19F1938B00F6AE44 /* Build configuration list for PBXNativeTarget "Chapter 8 iOS" */; - buildPhases = ( - 7E9571A119F1938B00F6AE44 /* Resources */, - 7E9571BC19F1938B00F6AE44 /* Sources */, - 7E9571C219F1938B00F6AE44 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 7E95719F19F1938B00F6AE44 /* PBXTargetDependency */, - ); - name = "Chapter 8 iOS"; - productName = iphone; - productReference = 7E9571D119F1938B00F6AE44 /* Chapter 8 iOS.app */; - productType = "com.apple.product-type.application"; - }; - 7E9571D319F196D200F6AE44 /* Chapter 8 Mac */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7E9571FC19F196D200F6AE44 /* Build configuration list for PBXNativeTarget "Chapter 8 Mac" */; - buildPhases = ( - 7E9571D619F196D200F6AE44 /* Resources */, - 7E9571EB19F196D200F6AE44 /* Sources */, - 7E9571F019F196D200F6AE44 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 7E9571D419F196D200F6AE44 /* PBXTargetDependency */, - ); - name = "Chapter 8 Mac"; - productName = iphone; - productReference = 7E9571FF19F196D200F6AE44 /* Chapter 8 Mac.app */; - productType = "com.apple.product-type.application"; - }; - 7E95720219F197BA00F6AE44 /* Chapter 13 iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7E95722719F197BA00F6AE44 /* Build configuration list for PBXNativeTarget "Chapter 13 iOS" */; - buildPhases = ( - 7E95720519F197BA00F6AE44 /* Resources */, - 7E95721719F197BA00F6AE44 /* Sources */, - 7E95721B19F197BA00F6AE44 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 7E95720319F197BA00F6AE44 /* PBXTargetDependency */, - ); - name = "Chapter 13 iOS"; - productName = iphone; - productReference = 7E95722A19F197BA00F6AE44 /* Chapter 13 iOS.app */; - productType = "com.apple.product-type.application"; - }; - 7E95722C19F197F500F6AE44 /* Chapter 13 Mac */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7E95724019F197F500F6AE44 /* Build configuration list for PBXNativeTarget "Chapter 13 Mac" */; - buildPhases = ( - 7E95722F19F197F500F6AE44 /* Resources */, - 7E95723219F197F500F6AE44 /* Sources */, - 7E95723419F197F500F6AE44 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 7E95722D19F197F500F6AE44 /* PBXTargetDependency */, - ); - name = "Chapter 13 Mac"; - productName = iphone; - productReference = 7E95724319F197F500F6AE44 /* Chapter 13 Mac.app */; - productType = "com.apple.product-type.application"; - }; - 7EBF313F19E7803F00A7FBEA /* Chapter 3 iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7EBF316F19E7803F00A7FBEA /* Build configuration list for PBXNativeTarget "Chapter 3 iOS" */; - buildPhases = ( - 7EBF314219E7803F00A7FBEA /* Resources */, - 7EBF315C19E7803F00A7FBEA /* Sources */, - 7EBF316319E7803F00A7FBEA /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 7EBF314019E7803F00A7FBEA /* PBXTargetDependency */, - ); - name = "Chapter 3 iOS"; - productName = iphone; - productReference = 7EBF317219E7803F00A7FBEA /* Chapter 3.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 29B97313FDCFA39411CA2CEA /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0610; - TargetAttributes = { - 1D6058900D05DD3D006BFB54 = { - DevelopmentTeam = MDDB52YB8L; - }; - }; - }; - buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Programmers Guide" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 1; - knownRegions = ( - English, - Japanese, - French, - German, - ); - mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */; - projectDirPath = ""; - projectReferences = ( - { - ProductGroup = 50BA598C19D492B60070A133 /* Products */; - ProjectRef = 50BA598B19D492B60070A133 /* cocos2d_libs.xcodeproj */; - }, - ); - projectRoot = ""; - targets = ( - 1D6058900D05DD3D006BFB54 /* Chapter 2 iOS */, - 5087E73D17EB910900C73F5D /* Chapter 2 Mac */, - 7EBF313F19E7803F00A7FBEA /* Chapter 3 iOS */, - 7E53689D19EC20DE005C3C64 /* Chapter 3 Mac */, - 7E5368EE19EC228B005C3C64 /* Chapter 4 iOS */, - 7E53692219EC22F4005C3C64 /* Chapter 4 Mac */, - 7E914A421A1BC3F200C6B2D4 /* Chapter 5 iOS */, - 7E914A701A1BC40200C6B2D4 /* Chapter 5 Mac */, - 296358B819F78D4F003732AB /* Chapter 6 iOS */, - 2963591619F78F74003732AB /* Chapter 6 Mac */, - 25D87B9B1A84036100456FF7 /* Chapter 7 iOS */, - 25D87BD41A84037000456FF7 /* Chapter 7 Mac */, - 7E95719E19F1938B00F6AE44 /* Chapter 8 iOS */, - 7E9571D319F196D200F6AE44 /* Chapter 8 Mac */, - 50BA59B219D4992C0070A133 /* Chapter 9 iOS */, - 50BA59E119D499360070A133 /* Chapter 9 Mac */, - 3EE7F8BC19ED607500448914 /* Chapter 12 iOS */, - 3EE7F8EE19ED607800448914 /* Chapter 12 Mac */, - 7E95720219F197BA00F6AE44 /* Chapter 13 iOS */, - 7E95722C19F197F500F6AE44 /* Chapter 13 Mac */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXReferenceProxy section */ - 50BA599119D492B60070A133 /* libcocos2d Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libcocos2d Mac.a"; - remoteRef = 50BA599019D492B60070A133 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 50BA599319D492B60070A133 /* libcocos2d iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libcocos2d iOS.a"; - remoteRef = 50BA599219D492B60070A133 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; -/* End PBXReferenceProxy section */ - -/* Begin PBXResourcesBuildPhase section */ - 1D60588D0D05DD3D006BFB54 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 5087E78117EB970100C73F5D /* Icon-120.png in Resources */, - 7E1526B419D4DE890013F222 /* Blue_Front1.png in Resources */, - 5087E78617EB970100C73F5D /* Icon-76.png in Resources */, - 5087E77F17EB970100C73F5D /* Default@2x.png in Resources */, - 50EF629917ECD46A001EB2F8 /* Icon-100.png in Resources */, - 5087E78317EB970100C73F5D /* Icon-152.png in Resources */, - 5087E77D17EB970100C73F5D /* Default-568h@2x.png in Resources */, - 5087E78517EB970100C73F5D /* Icon-72.png in Resources */, - 7E1526BC19D4DE890013F222 /* ZigzagForest_Square.png in Resources */, - 50EF62A317ECD613001EB2F8 /* Icon-50.png in Resources */, - 5087E78017EB970100C73F5D /* Icon-114.png in Resources */, - 50EF62A217ECD613001EB2F8 /* Icon-29.png in Resources */, - 50EF629617ECD46A001EB2F8 /* Icon-40.png in Resources */, - 5087E78217EB970100C73F5D /* Icon-144.png in Resources */, - 7E1526C119D4E0020013F222 /* Marker Felt.ttf in Resources */, - 50EF629817ECD46A001EB2F8 /* Icon-80.png in Resources */, - 7E1526B819D4DE890013F222 /* LightBlue_Front1.png in Resources */, - 7E1526BE19D4DE890013F222 /* ZigzagGrass_Mud_Round.png in Resources */, - 5087E78417EB970100C73F5D /* Icon-57.png in Resources */, - 7E1526BA19D4DE890013F222 /* White_Front1.png in Resources */, - 5087E77E17EB970100C73F5D /* Default.png in Resources */, - 50EF629717ECD46A001EB2F8 /* Icon-58.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 25D87B9E1A84036100456FF7 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 25D87BA01A84036100456FF7 /* Icon-120.png in Resources */, - 25D87BA11A84036100456FF7 /* Icon-76.png in Resources */, - 25D87BA21A84036100456FF7 /* Default@2x.png in Resources */, - 25D87BA31A84036100456FF7 /* Icon-100.png in Resources */, - 25D87BA41A84036100456FF7 /* Icon-152.png in Resources */, - 25D87BA51A84036100456FF7 /* Default-568h@2x.png in Resources */, - 25D87BA61A84036100456FF7 /* Icon-72.png in Resources */, - 25F1DB701A85413100A31EA4 /* CloseSelected.png in Resources */, - 25D87BA71A84036100456FF7 /* Icon-50.png in Resources */, - 25D87BA81A84036100456FF7 /* Marker Felt.ttf in Resources */, - 25D87BA91A84036100456FF7 /* Icon-114.png in Resources */, - 25D87BAB1A84036100456FF7 /* Icon-29.png in Resources */, - 25D87BAD1A84036100456FF7 /* Icon-40.png in Resources */, - 25D87BAE1A84036100456FF7 /* Icon-144.png in Resources */, - 25D87BAF1A84036100456FF7 /* Icon-80.png in Resources */, - 25D87BB31A84036100456FF7 /* Icon-57.png in Resources */, - 25D87BB81A84036100456FF7 /* Default.png in Resources */, - 25D87BBA1A84036100456FF7 /* Icon-58.png in Resources */, - 258B03AA1A8965110078E3EF /* isometric_grass_and_water.png in Resources */, - 25F1DB6E1A85413100A31EA4 /* CloseNormal.png in Resources */, - 258B03AC1A8965110078E3EF /* isometric_grass_and_water.tmx in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 25D87BD71A84037000456FF7 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 25D87BE41A84037000456FF7 /* Icon.icns in Resources */, - 258B03AD1A8965110078E3EF /* isometric_grass_and_water.tmx in Resources */, - 25F1DB6F1A85413100A31EA4 /* CloseNormal.png in Resources */, - 258B03AB1A8965110078E3EF /* isometric_grass_and_water.png in Resources */, - 25F1DB711A85413100A31EA4 /* CloseSelected.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 296358BB19F78D4F003732AB /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 296358BC19F78D4F003732AB /* Icon-120.png in Resources */, - 258B039C1A8942ED0078E3EF /* SliderNode_Press.png in Resources */, - 296358BE19F78D4F003732AB /* Icon-76.png in Resources */, - 258B037E1A892DC90078E3EF /* CheckBox_Press.png in Resources */, - 296358BF19F78D4F003732AB /* Default@2x.png in Resources */, - 258B036E1A89131B0078E3EF /* Button_Press.png in Resources */, - 25F1DB821A8551F700A31EA4 /* bitmapRed.png in Resources */, - 258B037C1A892DC90078E3EF /* CheckBox_Normal.png in Resources */, - 296358C019F78D4F003732AB /* Icon-100.png in Resources */, - 258B03821A892DC90078E3EF /* CheckBoxNode_Normal.png in Resources */, - 258B039A1A8942ED0078E3EF /* SliderNode_Normal.png in Resources */, - 296358C319F78D4F003732AB /* Icon-152.png in Resources */, - 258B03961A8942ED0078E3EF /* Slider_PressBar.png in Resources */, - 258B03891A892FF60078E3EF /* LoadingBarFile.png in Resources */, - 296358C519F78D4F003732AB /* Default-568h@2x.png in Resources */, - 25F1DB691A85412000A31EA4 /* CloseSelected.png in Resources */, - 258B036A1A89131B0078E3EF /* Button_Disable.png in Resources */, - 296358C619F78D4F003732AB /* Icon-72.png in Resources */, - 296358CB19F78D4F003732AB /* Icon-50.png in Resources */, - 258B037A1A892DC90078E3EF /* CheckBox_Disable.png in Resources */, - 296358CC19F78D4F003732AB /* Marker Felt.ttf in Resources */, - 296358CD19F78D4F003732AB /* Icon-114.png in Resources */, - 296358CE19F78D4F003732AB /* Icon-29.png in Resources */, - 258B03981A8942ED0078E3EF /* SliderNode_Disable.png in Resources */, - 258B03941A8942ED0078E3EF /* Slider_Back.png in Resources */, - 296358CF19F78D4F003732AB /* Icon-40.png in Resources */, - 258B036C1A89131B0078E3EF /* Button_Normal.png in Resources */, - 25F1DB671A85412000A31EA4 /* CloseNormal.png in Resources */, - 296358D019F78D4F003732AB /* Icon-144.png in Resources */, - 296358D119F78D4F003732AB /* Icon-80.png in Resources */, - 296358D519F78D4F003732AB /* Icon-57.png in Resources */, - 296358D919F78D4F003732AB /* Default.png in Resources */, - 296358DA19F78D4F003732AB /* Icon-58.png in Resources */, - 25F1DB801A8551F700A31EA4 /* bitmapRed.fnt in Resources */, - 258B03801A892DC90078E3EF /* CheckBoxNode_Disable.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2963591919F78F74003732AB /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 258B036B1A89131B0078E3EF /* Button_Disable.png in Resources */, - 25F1DB831A8551F700A31EA4 /* bitmapRed.png in Resources */, - 25F1DB681A85412000A31EA4 /* CloseNormal.png in Resources */, - 258B037F1A892DC90078E3EF /* CheckBox_Press.png in Resources */, - 258B039D1A8942ED0078E3EF /* SliderNode_Press.png in Resources */, - 258B036F1A89131B0078E3EF /* Button_Press.png in Resources */, - 2963592B19F78F74003732AB /* Icon.icns in Resources */, - 258B03991A8942ED0078E3EF /* SliderNode_Disable.png in Resources */, - 25F1DB6A1A85412000A31EA4 /* CloseSelected.png in Resources */, - 258B03811A892DC90078E3EF /* CheckBoxNode_Disable.png in Resources */, - 258B038A1A892FF60078E3EF /* LoadingBarFile.png in Resources */, - 258B036D1A89131B0078E3EF /* Button_Normal.png in Resources */, - 258B03971A8942ED0078E3EF /* Slider_PressBar.png in Resources */, - 258B037D1A892DC90078E3EF /* CheckBox_Normal.png in Resources */, - 258B039B1A8942ED0078E3EF /* SliderNode_Normal.png in Resources */, - 25F1DB811A8551F700A31EA4 /* bitmapRed.fnt in Resources */, - 258B03831A892DC90078E3EF /* CheckBoxNode_Normal.png in Resources */, - 258B03951A8942ED0078E3EF /* Slider_Back.png in Resources */, - 258B037B1A892DC90078E3EF /* CheckBox_Disable.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3EE7F8BF19ED607500448914 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 3EE7F8C019ED607500448914 /* Icon-120.png in Resources */, - 3EE7F8C219ED607500448914 /* Icon-76.png in Resources */, - 3EE7F8C319ED607500448914 /* Default@2x.png in Resources */, - 3EE7F8C419ED607500448914 /* Icon-100.png in Resources */, - 3EE7F8C519ED607500448914 /* Icon-152.png in Resources */, - 3EE7F8C619ED607500448914 /* Default-568h@2x.png in Resources */, - 3EE7F8C719ED607500448914 /* Icon-72.png in Resources */, - 3EE7F8C919ED607500448914 /* Icon-50.png in Resources */, - 3EE7F8CA19ED607500448914 /* Icon-114.png in Resources */, - 3EE7F91919ED60F200448914 /* chapter12 in Resources */, - 3EE7F8CB19ED607500448914 /* Icon-29.png in Resources */, - 3EE7F8CC19ED607500448914 /* Icon-40.png in Resources */, - 3EE7F8CD19ED607500448914 /* Icon-144.png in Resources */, - 3EE7F8CE19ED607500448914 /* Marker Felt.ttf in Resources */, - 3EE7F8CF19ED607500448914 /* Icon-80.png in Resources */, - 3EE7F8D219ED607500448914 /* Icon-57.png in Resources */, - 3EE7F8D419ED607500448914 /* Default.png in Resources */, - 3EE7F8D519ED607500448914 /* Icon-58.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3EE7F8F119ED607800448914 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 3EE7F91A19ED60F200448914 /* chapter12 in Resources */, - 3EE7F8F219ED607800448914 /* Marker Felt.ttf in Resources */, - 3EE7F8F819ED607800448914 /* Icon.icns in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5087E74817EB910900C73F5D /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E1526C219D4E0020013F222 /* Marker Felt.ttf in Resources */, - 7E1526B919D4DE890013F222 /* LightBlue_Front1.png in Resources */, - 7E1526BD19D4DE890013F222 /* ZigzagForest_Square.png in Resources */, - 7E1526BF19D4DE890013F222 /* ZigzagGrass_Mud_Round.png in Resources */, - 7E1526BB19D4DE890013F222 /* White_Front1.png in Resources */, - 7E1526B519D4DE890013F222 /* Blue_Front1.png in Resources */, - 503AE0F817EB97AB00D1A890 /* Icon.icns in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50BA59B519D4992C0070A133 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 50BA59B619D4992C0070A133 /* Icon-120.png in Resources */, - 50BA59B719D4992C0070A133 /* Icon-76.png in Resources */, - 50BA59B819D4992C0070A133 /* Default@2x.png in Resources */, - 50BA59B919D4992C0070A133 /* Icon-100.png in Resources */, - 50BA59BA19D4992C0070A133 /* Icon-152.png in Resources */, - 50BA59BD19D4992C0070A133 /* Default-568h@2x.png in Resources */, - 50BA59BE19D4992C0070A133 /* Icon-72.png in Resources */, - 50BA59BF19D4992C0070A133 /* Icon-50.png in Resources */, - 50BA59C019D4992C0070A133 /* Icon-114.png in Resources */, - 50BA59C219D4992C0070A133 /* Icon-29.png in Resources */, - 50BA59C319D4992C0070A133 /* Icon-40.png in Resources */, - B686A5F11AF1D2850050773F /* chapter9 in Resources */, - 50BA59C419D4992C0070A133 /* Icon-144.png in Resources */, - 50BA59C519D4992C0070A133 /* Icon-80.png in Resources */, - 50BA59C619D4992C0070A133 /* Icon-57.png in Resources */, - 50BA59C719D4992C0070A133 /* Default.png in Resources */, - 50BA59C919D4992C0070A133 /* Icon-58.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50BA59E419D499360070A133 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - B686A5F21AF1D2850050773F /* chapter9 in Resources */, - 50BA59E719D499360070A133 /* Icon.icns in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E5368A019EC20DE005C3C64 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E5368E519EC2159005C3C64 /* Blue_Front1.png in Resources */, - 50A5DBC019EC441300082E51 /* sprites.plist in Resources */, - 7E5368E619EC2159005C3C64 /* LightBlue_Front1.png in Resources */, - 7EC0CFCC19ECD4BE00C41BDA /* dot.png in Resources */, - 7E5368E719EC2159005C3C64 /* White_Front1.png in Resources */, - 7E5368E819EC2159005C3C64 /* ZigzagForest_Square.png in Resources */, - 7E5368E919EC2159005C3C64 /* ZigzagGrass_Mud_Round.png in Resources */, - 7E5368E219EC213B005C3C64 /* Icon.icns in Resources */, - 7E5368E119EC2128005C3C64 /* Marker Felt.ttf in Resources */, - 50A5DBC219EC441300082E51 /* sprites.pvr.ccz in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E5368F119EC228B005C3C64 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E5368F219EC228B005C3C64 /* Icon-120.png in Resources */, - 7E5368F419EC228B005C3C64 /* Blue_Front1.png in Resources */, - 7E5368F519EC228B005C3C64 /* Icon-76.png in Resources */, - 7E5368F719EC228B005C3C64 /* Default@2x.png in Resources */, - 7E5368F819EC228B005C3C64 /* Icon-100.png in Resources */, - 7E3532A619F06ECB0080126B /* Blue_Front3.png in Resources */, - 7E35329C19F06ECB0080126B /* Blue_Back1.png in Resources */, - 7E5368F919EC228B005C3C64 /* Icon-152.png in Resources */, - 7E3532A019F06ECB0080126B /* Blue_Back3.png in Resources */, - 7E5368FA19EC228B005C3C64 /* Default-568h@2x.png in Resources */, - 7E5368FB19EC228B005C3C64 /* Icon-72.png in Resources */, - 7EC0CFCD19ECE10A00C41BDA /* dot.png in Resources */, - 7E5368FC19EC228B005C3C64 /* ZigzagForest_Square.png in Resources */, - 7E3532AA19F06ECB0080126B /* Blue_Left2.png in Resources */, - 7E3532B019F06ECB0080126B /* Blue_Right2.png in Resources */, - 7E5368FD19EC228B005C3C64 /* Icon-50.png in Resources */, - 7E5368FE19EC228B005C3C64 /* Marker Felt.ttf in Resources */, - 7E5368FF19EC228B005C3C64 /* Icon-114.png in Resources */, - 7E53690019EC228B005C3C64 /* Icon-29.png in Resources */, - 7E53690119EC228B005C3C64 /* Icon-40.png in Resources */, - 7E53690219EC228B005C3C64 /* Icon-144.png in Resources */, - 7E53690319EC228B005C3C64 /* Icon-80.png in Resources */, - 7E3532A219F06ECB0080126B /* Blue_Front1.png in Resources */, - 7E3532A419F06ECB0080126B /* Blue_Front2.png in Resources */, - 7E3532A819F06ECB0080126B /* Blue_Left1.png in Resources */, - 7E53690619EC228B005C3C64 /* Icon-57.png in Resources */, - 7E3532B219F06ECB0080126B /* Blue_Right3.png in Resources */, - 7E35329E19F06ECB0080126B /* Blue_Back2.png in Resources */, - 7E3532AE19F06ECB0080126B /* Blue_Right1.png in Resources */, - 7E53690919EC228B005C3C64 /* Default.png in Resources */, - 7E53690A19EC228B005C3C64 /* Icon-58.png in Resources */, - 7E3532AC19F06ECB0080126B /* Blue_Left3.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E53692519EC22F4005C3C64 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E53692819EC22F4005C3C64 /* Blue_Front1.png in Resources */, - 7EC0CFCE19ECE10B00C41BDA /* dot.png in Resources */, - 7E35329D19F06ECB0080126B /* Blue_Back1.png in Resources */, - 7E53692919EC22F4005C3C64 /* LightBlue_Front1.png in Resources */, - 7E3532B119F06ECB0080126B /* Blue_Right2.png in Resources */, - 7E3532A519F06ECB0080126B /* Blue_Front2.png in Resources */, - 7E3532AB19F06ECB0080126B /* Blue_Left2.png in Resources */, - 7E3532A119F06ECB0080126B /* Blue_Back3.png in Resources */, - 7E53692A19EC22F4005C3C64 /* White_Front1.png in Resources */, - 7E3532AF19F06ECB0080126B /* Blue_Right1.png in Resources */, - 7E3532AD19F06ECB0080126B /* Blue_Left3.png in Resources */, - 7E35329F19F06ECB0080126B /* Blue_Back2.png in Resources */, - 7E3532A319F06ECB0080126B /* Blue_Front1.png in Resources */, - 7E53692B19EC22F4005C3C64 /* ZigzagForest_Square.png in Resources */, - 7E3532B319F06ECB0080126B /* Blue_Right3.png in Resources */, - 7E3532A919F06ECB0080126B /* Blue_Left1.png in Resources */, - 7E53692C19EC22F4005C3C64 /* ZigzagGrass_Mud_Round.png in Resources */, - 7E53692D19EC22F4005C3C64 /* Icon.icns in Resources */, - 7E53692E19EC22F4005C3C64 /* Marker Felt.ttf in Resources */, - 7E3532A719F06ECB0080126B /* Blue_Front3.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E914A451A1BC3F200C6B2D4 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E914A461A1BC3F200C6B2D4 /* Icon-120.png in Resources */, - 7E914A471A1BC3F200C6B2D4 /* Icon-76.png in Resources */, - 7E914A481A1BC3F200C6B2D4 /* Default@2x.png in Resources */, - 7E914A4A1A1BC3F200C6B2D4 /* Icon-100.png in Resources */, - 7E914A4B1A1BC3F200C6B2D4 /* Icon-152.png in Resources */, - 7E914A4C1A1BC3F200C6B2D4 /* Default-568h@2x.png in Resources */, - 7E914A4D1A1BC3F200C6B2D4 /* Icon-72.png in Resources */, - 7E914A4E1A1BC3F200C6B2D4 /* Icon-50.png in Resources */, - 7E914A4F1A1BC3F200C6B2D4 /* Marker Felt.ttf in Resources */, - 7E914A501A1BC3F200C6B2D4 /* Icon-114.png in Resources */, - 7E914A511A1BC3F200C6B2D4 /* Icon-29.png in Resources */, - 7E914A531A1BC3F200C6B2D4 /* Icon-40.png in Resources */, - 7E914A541A1BC3F200C6B2D4 /* Icon-144.png in Resources */, - 7E914A551A1BC3F200C6B2D4 /* Icon-80.png in Resources */, - 7E914A561A1BC3F200C6B2D4 /* Icon-57.png in Resources */, - 7E914A571A1BC3F200C6B2D4 /* Default.png in Resources */, - 7E914A581A1BC3F200C6B2D4 /* Icon-58.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E914A731A1BC40200C6B2D4 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E914A751A1BC40200C6B2D4 /* Icon.icns in Resources */, - 7E914A761A1BC40200C6B2D4 /* Marker Felt.ttf in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E9571A119F1938B00F6AE44 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E9571A219F1938B00F6AE44 /* Icon-120.png in Resources */, - 7E9571A519F1938B00F6AE44 /* Icon-76.png in Resources */, - 7E9571A719F1938B00F6AE44 /* Default@2x.png in Resources */, - 7E9571A819F1938B00F6AE44 /* Icon-100.png in Resources */, - 7E9571A919F1938B00F6AE44 /* Icon-152.png in Resources */, - 7E9571AA19F1938B00F6AE44 /* Default-568h@2x.png in Resources */, - 7E9571AB19F1938B00F6AE44 /* Icon-72.png in Resources */, - 7E9571AD19F1938B00F6AE44 /* Icon-50.png in Resources */, - 7E9571AE19F1938B00F6AE44 /* Marker Felt.ttf in Resources */, - 7E9571AF19F1938B00F6AE44 /* Icon-114.png in Resources */, - 7E9571B019F1938B00F6AE44 /* Icon-29.png in Resources */, - 7E9571B119F1938B00F6AE44 /* Icon-40.png in Resources */, - 7E9571B219F1938B00F6AE44 /* Icon-144.png in Resources */, - 7E9571B319F1938B00F6AE44 /* Icon-80.png in Resources */, - 7E9571B619F1938B00F6AE44 /* Icon-57.png in Resources */, - 7E9571BA19F1938B00F6AE44 /* Default.png in Resources */, - 7E9571BB19F1938B00F6AE44 /* Icon-58.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E9571D619F196D200F6AE44 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E9571E819F196D200F6AE44 /* Icon.icns in Resources */, - 7E9571E919F196D200F6AE44 /* Marker Felt.ttf in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E95720519F197BA00F6AE44 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E95720619F197BA00F6AE44 /* Icon-120.png in Resources */, - 7E95720719F197BA00F6AE44 /* Icon-76.png in Resources */, - 7E95720819F197BA00F6AE44 /* Default@2x.png in Resources */, - 7E95725219F1993300F6AE44 /* music.mp3 in Resources */, - 7E95720919F197BA00F6AE44 /* Icon-100.png in Resources */, - 7E95720A19F197BA00F6AE44 /* Icon-152.png in Resources */, - 7E95720B19F197BA00F6AE44 /* Default-568h@2x.png in Resources */, - 7E95720C19F197BA00F6AE44 /* Icon-72.png in Resources */, - 7E95720D19F197BA00F6AE44 /* Icon-50.png in Resources */, - 7E95720E19F197BA00F6AE44 /* Marker Felt.ttf in Resources */, - 7E95720F19F197BA00F6AE44 /* Icon-114.png in Resources */, - 7E95721019F197BA00F6AE44 /* Icon-29.png in Resources */, - 7E95725019F1993300F6AE44 /* alert.mp3 in Resources */, - 7E95721119F197BA00F6AE44 /* Icon-40.png in Resources */, - 7E95721219F197BA00F6AE44 /* Icon-144.png in Resources */, - 7E95721319F197BA00F6AE44 /* Icon-80.png in Resources */, - 7E95721419F197BA00F6AE44 /* Icon-57.png in Resources */, - 7E95721519F197BA00F6AE44 /* Default.png in Resources */, - 7E95721619F197BA00F6AE44 /* Icon-58.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E95722F19F197F500F6AE44 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E95725319F1993300F6AE44 /* music.mp3 in Resources */, - 7E95723019F197F500F6AE44 /* Icon.icns in Resources */, - 7E95723119F197F500F6AE44 /* Marker Felt.ttf in Resources */, - 7E95725119F1993300F6AE44 /* alert.mp3 in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7EBF314219E7803F00A7FBEA /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7EBF314319E7803F00A7FBEA /* Icon-120.png in Resources */, - 50A5DBBF19EC441300082E51 /* sprites.plist in Resources */, - 7EBF314519E7803F00A7FBEA /* Blue_Front1.png in Resources */, - 7EBF314619E7803F00A7FBEA /* Icon-76.png in Resources */, - 7EBF314719E7803F00A7FBEA /* Default@2x.png in Resources */, - 7EBF314819E7803F00A7FBEA /* Icon-100.png in Resources */, - 7EBF314919E7803F00A7FBEA /* Icon-152.png in Resources */, - 7EBF314A19E7803F00A7FBEA /* Default-568h@2x.png in Resources */, - 7EBF314B19E7803F00A7FBEA /* Icon-72.png in Resources */, - 7EBF314C19E7803F00A7FBEA /* ZigzagForest_Square.png in Resources */, - 7EBF314D19E7803F00A7FBEA /* Icon-50.png in Resources */, - 7EBF318319E84A1F00A7FBEA /* Marker Felt.ttf in Resources */, - 7EBF314E19E7803F00A7FBEA /* Icon-114.png in Resources */, - 7EBF315019E7803F00A7FBEA /* Icon-29.png in Resources */, - 7EBF315119E7803F00A7FBEA /* Icon-40.png in Resources */, - 7EBF315219E7803F00A7FBEA /* Icon-144.png in Resources */, - 7EBF315419E7803F00A7FBEA /* Icon-80.png in Resources */, - 7EBF315619E7803F00A7FBEA /* LightBlue_Front1.png in Resources */, - 7EBF315719E7803F00A7FBEA /* ZigzagGrass_Mud_Round.png in Resources */, - 7EBF315819E7803F00A7FBEA /* Icon-57.png in Resources */, - 7EC0CFCB19ECD4BD00C41BDA /* dot.png in Resources */, - 50A5DBC119EC441300082E51 /* sprites.pvr.ccz in Resources */, - 7EBF315919E7803F00A7FBEA /* White_Front1.png in Resources */, - 7EBF315A19E7803F00A7FBEA /* Default.png in Resources */, - 7EBF315B19E7803F00A7FBEA /* Icon-58.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 1D60588E0D05DD3D006BFB54 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 50BA599E19D493310070A133 /* AppDelegate.cpp in Sources */, - 50BA59A019D493310070A133 /* Chapter2.cpp in Sources */, - 503AE10017EB989F00D1A890 /* AppController.mm in Sources */, - 7E273C8019D9CE460029CCC0 /* Chapter2Level1.cpp in Sources */, - 503AE10217EB989F00D1A890 /* RootViewController.mm in Sources */, - 503AE10117EB989F00D1A890 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 25D87BBC1A84036100456FF7 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 25D87C041A84045700456FF7 /* AppDelegate.cpp in Sources */, - 25D87C081A84045700456FF7 /* Chapter7_1.cpp in Sources */, - 25D87C061A84045700456FF7 /* Chapter7.cpp in Sources */, - 258B03B01A8C0DF40078E3EF /* Chapter7_2.cpp in Sources */, - 25D87BBD1A84036100456FF7 /* AppController.mm in Sources */, - 25D87BC01A84036100456FF7 /* RootViewController.mm in Sources */, - 25D87BC21A84036100456FF7 /* main.m in Sources */, - 258B03B41A8C10B60078E3EF /* Chapter7_3.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 25D87BE51A84037000456FF7 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 25D87C071A84045700456FF7 /* Chapter7.cpp in Sources */, - 258B03B11A8C0DF40078E3EF /* Chapter7_2.cpp in Sources */, - 25D87C091A84045700456FF7 /* Chapter7_1.cpp in Sources */, - 25D87C051A84045700456FF7 /* AppDelegate.cpp in Sources */, - 25D87BEB1A84037000456FF7 /* main.cpp in Sources */, - 258B03B51A8C10B60078E3EF /* Chapter7_3.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 296358DC19F78D4F003732AB /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 296358DE19F78D4F003732AB /* AppController.mm in Sources */, - 25F1DB8A1A85672E00A31EA4 /* Chapter6_2.cpp in Sources */, - 296358F819F78D81003732AB /* AppDelegate.cpp in Sources */, - 296358F919F78D81003732AB /* Chapter6.cpp in Sources */, - 296358E019F78D4F003732AB /* RootViewController.mm in Sources */, - 25F2FF9E1A78393800CE153F /* Chapter6_1.cpp in Sources */, - 258B03861A892F330078E3EF /* Chapter6_5.cpp in Sources */, - 258B038D1A8942A40078E3EF /* Chapter6_6.cpp in Sources */, - 258B03651A8908D70078E3EF /* Chapter6_3.cpp in Sources */, - 258B03731A892CFD0078E3EF /* Chapter6_4.cpp in Sources */, - 258B03A01A8948CD0078E3EF /* Chapter6_7.cpp in Sources */, - 296358E119F78D4F003732AB /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2963592E19F78F74003732AB /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2963594419F78F9D003732AB /* AppDelegate.cpp in Sources */, - 25F1DB8B1A85672E00A31EA4 /* Chapter6_2.cpp in Sources */, - 2963594519F78F9D003732AB /* AppDelegate.h in Sources */, - 2963594619F78F9D003732AB /* Chapter6.cpp in Sources */, - 2963594719F78F9D003732AB /* Chapter6.h in Sources */, - 25F2FF9F1A78393800CE153F /* Chapter6_1.cpp in Sources */, - 258B03871A892F330078E3EF /* Chapter6_5.cpp in Sources */, - 258B038E1A8942A40078E3EF /* Chapter6_6.cpp in Sources */, - 258B03661A8908D70078E3EF /* Chapter6_3.cpp in Sources */, - 258B03741A892CFD0078E3EF /* Chapter6_4.cpp in Sources */, - 258B03A11A8948CD0078E3EF /* Chapter6_7.cpp in Sources */, - 2963593219F78F74003732AB /* main.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3EE7F8D619ED607500448914 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 3EE7F91619ED60DF00448914 /* Chapter12.cpp in Sources */, - 3EE7F8D919ED607500448914 /* AppController.mm in Sources */, - 3EE7F91419ED60DF00448914 /* AppDelegate.cpp in Sources */, - 3EE7F8DB19ED607500448914 /* RootViewController.mm in Sources */, - 3EE7F8DC19ED607500448914 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3EE7F8F919ED607800448914 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 3EE7F91719ED60DF00448914 /* Chapter12.cpp in Sources */, - 3EE7F91519ED60DF00448914 /* AppDelegate.cpp in Sources */, - 3EE7F8FC19ED607800448914 /* main.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5087E75617EB910900C73F5D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 50BA599F19D493310070A133 /* AppDelegate.cpp in Sources */, - 7E273C8119D9CE460029CCC0 /* Chapter2Level1.cpp in Sources */, - 503AE10517EB98FF00D1A890 /* main.cpp in Sources */, - 50BA59A119D493310070A133 /* Chapter2.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50BA59CA19D4992C0070A133 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - B6C9D0481AF0C37C002EC43F /* Chapter9_10.cpp in Sources */, - 7E53689519EAD894005C3C64 /* DrawNode3D.cpp in Sources */, - 7E53688B19EAD894005C3C64 /* Chapter9_5.cpp in Sources */, - 7E53688F19EAD894005C3C64 /* Chapter9_7.cpp in Sources */, - 7E53688519EAD894005C3C64 /* Chapter9_2.cpp in Sources */, - 7E53688119EAD894005C3C64 /* AppDelegate.cpp in Sources */, - 7E53688919EAD894005C3C64 /* Chapter9_4.cpp in Sources */, - 7E53688319EAD894005C3C64 /* Chapter9_1.cpp in Sources */, - 7E53689119EAD894005C3C64 /* Chapter9_8.cpp in Sources */, - 7E53689319EAD894005C3C64 /* Chapter9.cpp in Sources */, - 7E53688719EAD894005C3C64 /* Chapter9_3.cpp in Sources */, - 7E53688D19EAD894005C3C64 /* Chapter9_6.cpp in Sources */, - 5E38D2C619F0F3DD0099B433 /* Chapter9_9.cpp in Sources */, - 50BA59CD19D4992C0070A133 /* AppController.mm in Sources */, - 50BA59CE19D4992C0070A133 /* RootViewController.mm in Sources */, - 50BA59CF19D4992C0070A133 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50BA59EA19D499360070A133 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E53688619EAD894005C3C64 /* Chapter9_2.cpp in Sources */, - 7E53688819EAD894005C3C64 /* Chapter9_3.cpp in Sources */, - 7E53688C19EAD894005C3C64 /* Chapter9_5.cpp in Sources */, - 7E53688219EAD894005C3C64 /* AppDelegate.cpp in Sources */, - 7E53689019EAD894005C3C64 /* Chapter9_7.cpp in Sources */, - 7E53688E19EAD894005C3C64 /* Chapter9_6.cpp in Sources */, - B6C9D0491AF0C37C002EC43F /* Chapter9_10.cpp in Sources */, - 7E53689619EAD894005C3C64 /* DrawNode3D.cpp in Sources */, - 7E53689219EAD894005C3C64 /* Chapter9_8.cpp in Sources */, - 5E38D2C719F0F3DD0099B433 /* Chapter9_9.cpp in Sources */, - 7E53688419EAD894005C3C64 /* Chapter9_1.cpp in Sources */, - 7E53689419EAD894005C3C64 /* Chapter9.cpp in Sources */, - 7E53688A19EAD894005C3C64 /* Chapter9_4.cpp in Sources */, - 50BA59EC19D499360070A133 /* main.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E5368C319EC20DE005C3C64 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E5368EA19EC217B005C3C64 /* AppDelegate.cpp in Sources */, - 7E5368EB19EC217B005C3C64 /* AppDelegate.h in Sources */, - 7E5368EC19EC217B005C3C64 /* Chapter3.cpp in Sources */, - 7E5368ED19EC217B005C3C64 /* Chapter3.h in Sources */, - 7E5368CF19EC20DE005C3C64 /* main.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E53690B19EC228B005C3C64 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E53694C19EC234D005C3C64 /* Chapter4.cpp in Sources */, - 7E53690E19EC228B005C3C64 /* AppController.mm in Sources */, - 7E53694A19EC234D005C3C64 /* AppDelegate.cpp in Sources */, - 7E53690F19EC228B005C3C64 /* RootViewController.mm in Sources */, - 7E53691019EC228B005C3C64 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E53692F19EC22F4005C3C64 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E53694B19EC234D005C3C64 /* AppDelegate.cpp in Sources */, - 7E53694D19EC234D005C3C64 /* Chapter4.cpp in Sources */, - 7E53693119EC22F4005C3C64 /* AppDelegate.h in Sources */, - 7E53693419EC22F4005C3C64 /* main.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E914A591A1BC3F200C6B2D4 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E914A921A1BC8F500C6B2D4 /* AppDelegate.cpp in Sources */, - 7E914A5B1A1BC3F200C6B2D4 /* AppController.mm in Sources */, - 7E914A5C1A1BC3F200C6B2D4 /* RootViewController.mm in Sources */, - 7E914A941A1BC8F500C6B2D4 /* Chapter5.cpp in Sources */, - 7E914A5E1A1BC3F200C6B2D4 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E914A781A1BC40200C6B2D4 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E914A951A1BC8F500C6B2D4 /* Chapter5.cpp in Sources */, - 7E914A931A1BC8F500C6B2D4 /* AppDelegate.cpp in Sources */, - 7E914A7B1A1BC40200C6B2D4 /* main.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E9571BC19F1938B00F6AE44 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E9571BF19F1938B00F6AE44 /* AppController.mm in Sources */, - 7E9571C019F1938B00F6AE44 /* RootViewController.mm in Sources */, - 7E9571C119F1938B00F6AE44 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E9571EB19F196D200F6AE44 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E9571EF19F196D200F6AE44 /* main.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E95721719F197BA00F6AE44 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E95724919F1983600F6AE44 /* AppDelegate.cpp in Sources */, - 7E95721819F197BA00F6AE44 /* AppController.mm in Sources */, - 7E95721919F197BA00F6AE44 /* RootViewController.mm in Sources */, - 7E95724B19F1983600F6AE44 /* Chapter13.cpp in Sources */, - 7E95721A19F197BA00F6AE44 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E95723219F197F500F6AE44 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E95724C19F1983600F6AE44 /* Chapter13.cpp in Sources */, - 7E95724A19F1983600F6AE44 /* AppDelegate.cpp in Sources */, - 7E95723319F197F500F6AE44 /* main.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7EBF315C19E7803F00A7FBEA /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7EBF317B19E7807500A7FBEA /* AppDelegate.cpp in Sources */, - 7EBF318019E843F100A7FBEA /* Chapter3.cpp in Sources */, - 7EBF315F19E7803F00A7FBEA /* AppController.mm in Sources */, - 7EBF316119E7803F00A7FBEA /* RootViewController.mm in Sources */, - 7EBF316219E7803F00A7FBEA /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 25D87B9C1A84036100456FF7 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d iOS"; - targetProxy = 25D87B9D1A84036100456FF7 /* PBXContainerItemProxy */; - }; - 25D87BD51A84037000456FF7 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d Mac"; - targetProxy = 25D87BD61A84037000456FF7 /* PBXContainerItemProxy */; - }; - 296358B919F78D4F003732AB /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d iOS"; - targetProxy = 296358BA19F78D4F003732AB /* PBXContainerItemProxy */; - }; - 2963591719F78F74003732AB /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d Mac"; - targetProxy = 2963591819F78F74003732AB /* PBXContainerItemProxy */; - }; - 3EE7F8BD19ED607500448914 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d iOS"; - targetProxy = 3EE7F8BE19ED607500448914 /* PBXContainerItemProxy */; - }; - 3EE7F8EF19ED607800448914 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d Mac"; - targetProxy = 3EE7F8F019ED607800448914 /* PBXContainerItemProxy */; - }; - 50BA599519D492F50070A133 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d iOS"; - targetProxy = 50BA599419D492F50070A133 /* PBXContainerItemProxy */; - }; - 50BA599719D492FA0070A133 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d Mac"; - targetProxy = 50BA599619D492FA0070A133 /* PBXContainerItemProxy */; - }; - 50BA59B319D4992C0070A133 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d iOS"; - targetProxy = 50BA59B419D4992C0070A133 /* PBXContainerItemProxy */; - }; - 50BA59E219D499360070A133 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d Mac"; - targetProxy = 50BA59E319D499360070A133 /* PBXContainerItemProxy */; - }; - 7E53689E19EC20DE005C3C64 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d Mac"; - targetProxy = 7E53689F19EC20DE005C3C64 /* PBXContainerItemProxy */; - }; - 7E5368EF19EC228B005C3C64 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d iOS"; - targetProxy = 7E5368F019EC228B005C3C64 /* PBXContainerItemProxy */; - }; - 7E53692319EC22F4005C3C64 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d Mac"; - targetProxy = 7E53692419EC22F4005C3C64 /* PBXContainerItemProxy */; - }; - 7E914A431A1BC3F200C6B2D4 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d iOS"; - targetProxy = 7E914A441A1BC3F200C6B2D4 /* PBXContainerItemProxy */; - }; - 7E914A711A1BC40200C6B2D4 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d Mac"; - targetProxy = 7E914A721A1BC40200C6B2D4 /* PBXContainerItemProxy */; - }; - 7E95719F19F1938B00F6AE44 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d iOS"; - targetProxy = 7E9571A019F1938B00F6AE44 /* PBXContainerItemProxy */; - }; - 7E9571D419F196D200F6AE44 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d Mac"; - targetProxy = 7E9571D519F196D200F6AE44 /* PBXContainerItemProxy */; - }; - 7E95720319F197BA00F6AE44 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d iOS"; - targetProxy = 7E95720419F197BA00F6AE44 /* PBXContainerItemProxy */; - }; - 7E95722D19F197F500F6AE44 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d Mac"; - targetProxy = 7E95722E19F197F500F6AE44 /* PBXContainerItemProxy */; - }; - 7EBF314019E7803F00A7FBEA /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d iOS"; - targetProxy = 7EBF314119E7803F00A7FBEA /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 1D6058940D05DD3E006BFB54 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 2"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 1D6058950D05DD3E006BFB54 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 2"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 25D87BD01A84036100456FF7 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 7 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 25D87BD11A84036100456FF7 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 7 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 25D87BF91A84037000456FF7 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Chapter 7 Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 7 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 25D87BFA1A84037000456FF7 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Chapter 7 Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 7 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 296358EF19F78D4F003732AB /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 6 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 296358F019F78D4F003732AB /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 6 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 2963594019F78F74003732AB /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 6 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 2963594119F78F74003732AB /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 6 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 3EE7F8EA19ED607500448914 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 12 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 3EE7F8EB19ED607500448914 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 12 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 3EE7F90B19ED607800448914 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 12 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 3EE7F90C19ED607800448914 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 12 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 5087E76D17EB910900C73F5D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 2 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 5087E76E17EB910900C73F5D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 2 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 50BA59DD19D4992C0070A133 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 9 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 50BA59DE19D4992C0070A133 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 9 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 50BA59FB19D499360070A133 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 9 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 50BA59FC19D499360070A133 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 9 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 7E5368DD19EC20DE005C3C64 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 3 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 7E5368DE19EC20DE005C3C64 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 3 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 7E53691E19EC228B005C3C64 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 4 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 7E53691F19EC228B005C3C64 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 4 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 7E53694219EC22F4005C3C64 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 4 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 7E53694319EC22F4005C3C64 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 4 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 7E914A6C1A1BC3F200C6B2D4 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 5 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 7E914A6D1A1BC3F200C6B2D4 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 5 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 7E914A891A1BC40200C6B2D4 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 5 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 7E914A8A1A1BC40200C6B2D4 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 5 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 7E9571CF19F1938B00F6AE44 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 8 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 7E9571D019F1938B00F6AE44 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 8 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 7E9571FD19F196D200F6AE44 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 8 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 7E9571FE19F196D200F6AE44 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 8 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 7E95722819F197BA00F6AE44 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 13 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 7E95722919F197BA00F6AE44 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 13 iOS"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 7E95724119F197F500F6AE44 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 13 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 7E95724219F197F500F6AE44 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COMBINE_HIDPI_IMAGES = YES; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_MAC, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/mac", - "$(SRCROOT)/../libs/cocos2d-x/external/glfw3/include/mac", - ); - INFOPLIST_FILE = "Mac-Info.plist"; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 13 Mac"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 7EBF317019E7803F00A7FBEA /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "COCOS2D_DEBUG=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 3"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 7EBF317119E7803F00A7FBEA /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_FILE32API, - CC_TARGET_OS_IPHONE, - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios", - "$(SRCROOT)/../libs/cocos2d-x/cocos/platform/ios/Simulation", - ); - INFOPLIST_FILE = "iOS-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - PRODUCT_NAME = "Chapter 3"; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - C01FCF4F08A954540054247B /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COPY_PHASE_STRIP = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(SRCROOT)/../libs/cocos2d-x/cocos", - "$(SRCROOT)/../libs/cocos2d-x/cocos/audio/include", - "$(SRCROOT)/../libs/cocos2d-x/cocos/editor-support", - ); - MACOSX_DEPLOYMENT_TARGET = 10.7; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - }; - name = Debug; - }; - C01FCF5008A954540054247B /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(SRCROOT)/../libs/cocos2d-x/cocos", - "$(SRCROOT)/../libs/cocos2d-x/cocos/audio/include", - "$(SRCROOT)/../libs/cocos2d-x/cocos/editor-support", - ); - MACOSX_DEPLOYMENT_TARGET = 10.7; - OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Chapter 2 iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 1D6058940D05DD3E006BFB54 /* Debug */, - 1D6058950D05DD3E006BFB54 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 25D87BCF1A84036100456FF7 /* Build configuration list for PBXNativeTarget "Chapter 7 iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 25D87BD01A84036100456FF7 /* Debug */, - 25D87BD11A84036100456FF7 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 25D87BF81A84037000456FF7 /* Build configuration list for PBXNativeTarget "Chapter 7 Mac" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 25D87BF91A84037000456FF7 /* Debug */, - 25D87BFA1A84037000456FF7 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 296358EE19F78D4F003732AB /* Build configuration list for PBXNativeTarget "Chapter 6 iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 296358EF19F78D4F003732AB /* Debug */, - 296358F019F78D4F003732AB /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 2963593F19F78F74003732AB /* Build configuration list for PBXNativeTarget "Chapter 6 Mac" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2963594019F78F74003732AB /* Debug */, - 2963594119F78F74003732AB /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 3EE7F8E919ED607500448914 /* Build configuration list for PBXNativeTarget "Chapter 12 iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 3EE7F8EA19ED607500448914 /* Debug */, - 3EE7F8EB19ED607500448914 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 3EE7F90A19ED607800448914 /* Build configuration list for PBXNativeTarget "Chapter 12 Mac" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 3EE7F90B19ED607800448914 /* Debug */, - 3EE7F90C19ED607800448914 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 5087E76C17EB910900C73F5D /* Build configuration list for PBXNativeTarget "Chapter 2 Mac" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 5087E76D17EB910900C73F5D /* Debug */, - 5087E76E17EB910900C73F5D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 50BA59DC19D4992C0070A133 /* Build configuration list for PBXNativeTarget "Chapter 9 iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 50BA59DD19D4992C0070A133 /* Debug */, - 50BA59DE19D4992C0070A133 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 50BA59FA19D499360070A133 /* Build configuration list for PBXNativeTarget "Chapter 9 Mac" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 50BA59FB19D499360070A133 /* Debug */, - 50BA59FC19D499360070A133 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 7E5368DC19EC20DE005C3C64 /* Build configuration list for PBXNativeTarget "Chapter 3 Mac" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7E5368DD19EC20DE005C3C64 /* Debug */, - 7E5368DE19EC20DE005C3C64 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 7E53691D19EC228B005C3C64 /* Build configuration list for PBXNativeTarget "Chapter 4 iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7E53691E19EC228B005C3C64 /* Debug */, - 7E53691F19EC228B005C3C64 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 7E53694119EC22F4005C3C64 /* Build configuration list for PBXNativeTarget "Chapter 4 Mac" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7E53694219EC22F4005C3C64 /* Debug */, - 7E53694319EC22F4005C3C64 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 7E914A6B1A1BC3F200C6B2D4 /* Build configuration list for PBXNativeTarget "Chapter 5 iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7E914A6C1A1BC3F200C6B2D4 /* Debug */, - 7E914A6D1A1BC3F200C6B2D4 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 7E914A881A1BC40200C6B2D4 /* Build configuration list for PBXNativeTarget "Chapter 5 Mac" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7E914A891A1BC40200C6B2D4 /* Debug */, - 7E914A8A1A1BC40200C6B2D4 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 7E9571CE19F1938B00F6AE44 /* Build configuration list for PBXNativeTarget "Chapter 8 iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7E9571CF19F1938B00F6AE44 /* Debug */, - 7E9571D019F1938B00F6AE44 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 7E9571FC19F196D200F6AE44 /* Build configuration list for PBXNativeTarget "Chapter 8 Mac" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7E9571FD19F196D200F6AE44 /* Debug */, - 7E9571FE19F196D200F6AE44 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 7E95722719F197BA00F6AE44 /* Build configuration list for PBXNativeTarget "Chapter 13 iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7E95722819F197BA00F6AE44 /* Debug */, - 7E95722919F197BA00F6AE44 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 7E95724019F197F500F6AE44 /* Build configuration list for PBXNativeTarget "Chapter 13 Mac" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7E95724119F197F500F6AE44 /* Debug */, - 7E95724219F197F500F6AE44 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 7EBF316F19E7803F00A7FBEA /* Build configuration list for PBXNativeTarget "Chapter 3 iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7EBF317019E7803F00A7FBEA /* Debug */, - 7EBF317119E7803F00A7FBEA /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Programmers Guide" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - C01FCF4F08A954540054247B /* Debug */, - C01FCF5008A954540054247B /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; -/* End XCConfigurationList section */ - }; - rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; -} diff --git a/proj.ios_mac/Programmers Guide.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/proj.ios_mac/Programmers Guide.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index f5868a1..0000000 --- a/proj.ios_mac/Programmers Guide.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/proj.ios_mac/iOS-Info.plist b/proj.ios_mac/iOS-Info.plist deleted file mode 100644 index 2afe012..0000000 --- a/proj.ios_mac/iOS-Info.plist +++ /dev/null @@ -1,70 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleDisplayName - ${PRODUCT_NAME} - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIconFile - Icon-57.png - CFBundleIconFiles - - Icon-29 - Icon-80 - Icon-58 - Icon-120 - Icon.png - Icon@2x.png - Icon-57.png - Icon-114.png - Icon-72.png - Icon-144.png - - CFBundleIconFiles~ipad - - Icon-29 - Icon-50 - Icon-58 - Icon-80 - Icon-40 - Icon-100 - Icon-152 - Icon-76 - Icon-120 - Icon.png - Icon@2x.png - Icon-57.png - Icon-114.png - Icon-72.png - Icon-144.png - - CFBundleIdentifier - org.cocos2dx.${PRODUCT_NAME} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - org.cocos2dx.guide.${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleShortVersionString - - CFBundleSignature - ???? - CFBundleVersion - 1.0 - LSRequiresIPhoneOS - - UIAppFonts - - UIPrerenderedIcon - - UISupportedInterfaceOrientations - - UIInterfaceOrientationLandscapeRight - UIInterfaceOrientationLandscapeLeft - - - diff --git a/proj.ios_mac/ios/AppController.h b/proj.ios_mac/ios/AppController.h deleted file mode 100644 index 978e6e3..0000000 --- a/proj.ios_mac/ios/AppController.h +++ /dev/null @@ -1,12 +0,0 @@ -#import - -@class RootViewController; - -@interface AppController : NSObject { - UIWindow *window; -} - -@property(nonatomic, readonly) RootViewController* viewController; - -@end - diff --git a/proj.ios_mac/ios/AppController.mm b/proj.ios_mac/ios/AppController.mm deleted file mode 100644 index 47d0c04..0000000 --- a/proj.ios_mac/ios/AppController.mm +++ /dev/null @@ -1,146 +0,0 @@ -/**************************************************************************** - Copyright (c) 2010 cocos2d-x.org - - http://www.cocos2d-x.org - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - ****************************************************************************/ - -#import "AppController.h" -#import "platform/ios/CCEAGLView-ios.h" -#import "cocos2d.h" -#import "AppDelegate.h" -#import "RootViewController.h" - -@implementation AppController - -#pragma mark - -#pragma mark Application lifecycle - -// cocos2d application instance -static AppDelegate s_sharedApplication; - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - - cocos2d::Application *app = cocos2d::Application::getInstance(); - app->initGLContextAttrs(); - cocos2d::GLViewImpl::convertAttrs(); - - // Override point for customization after application launch. - - // Add the view controller's view to the window and display. - window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]]; - - // Init the CCEAGLView - CCEAGLView *eaglView = [CCEAGLView viewWithFrame: [window bounds] - pixelFormat: (NSString*)cocos2d::GLViewImpl::_pixelFormat - depthFormat: cocos2d::GLViewImpl::_depthFormat - preserveBackbuffer: NO - sharegroup: nil - multiSampling: NO - numberOfSamples: 0 ]; - - // Use RootViewController manage CCEAGLView - _viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil]; - _viewController.wantsFullScreenLayout = YES; - _viewController.view = eaglView; - - // Set RootViewController to window - if ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0) - { - // warning: addSubView doesn't work on iOS6 - [window addSubview: _viewController.view]; - } - else - { - // use this method on ios6 - [window setRootViewController:_viewController]; - } - - [window makeKeyAndVisible]; - - [[UIApplication sharedApplication] setStatusBarHidden:true]; - - // IMPORTANT: Setting the GLView should be done after creating the RootViewController - cocos2d::GLView *glview = cocos2d::GLViewImpl::createWithEAGLView(eaglView); - cocos2d::Director::getInstance()->setOpenGLView(glview); - - app->run(); - - return YES; -} - - -- (void)applicationWillResignActive:(UIApplication *)application { - /* - Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. - */ - //We don't need to call this method any more. It will interupt user defined game pause&resume logic - /* cocos2d::Director::getInstance()->pause(); */ -} - -- (void)applicationDidBecomeActive:(UIApplication *)application { - /* - Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. - */ - //We don't need to call this method any more. It will interupt user defined game pause&resume logic - /* cocos2d::Director::getInstance()->resume(); */ -} - -- (void)applicationDidEnterBackground:(UIApplication *)application { - /* - Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - If your application supports background execution, called instead of applicationWillTerminate: when the user quits. - */ - cocos2d::Application::getInstance()->applicationDidEnterBackground(); -} - -- (void)applicationWillEnterForeground:(UIApplication *)application { - /* - Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background. - */ - cocos2d::Application::getInstance()->applicationWillEnterForeground(); -} - -- (void)applicationWillTerminate:(UIApplication *)application { - /* - Called when the application is about to terminate. - See also applicationDidEnterBackground:. - */ -} - - -#pragma mark - -#pragma mark Memory management - -- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application { - /* - Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later. - */ -} - - -- (void)dealloc { - [window release]; - [super dealloc]; -} - - -@end diff --git a/proj.ios_mac/ios/Default-568h@2x.png b/proj.ios_mac/ios/Default-568h@2x.png deleted file mode 100644 index 66c6d1c..0000000 Binary files a/proj.ios_mac/ios/Default-568h@2x.png and /dev/null differ diff --git a/proj.ios_mac/ios/Default.png b/proj.ios_mac/ios/Default.png deleted file mode 100644 index dcb8072..0000000 Binary files a/proj.ios_mac/ios/Default.png and /dev/null differ diff --git a/proj.ios_mac/ios/Default@2x.png b/proj.ios_mac/ios/Default@2x.png deleted file mode 100644 index 8468988..0000000 Binary files a/proj.ios_mac/ios/Default@2x.png and /dev/null differ diff --git a/proj.ios_mac/ios/Icon-100.png b/proj.ios_mac/ios/Icon-100.png deleted file mode 100644 index ef38d45..0000000 Binary files a/proj.ios_mac/ios/Icon-100.png and /dev/null differ diff --git a/proj.ios_mac/ios/Icon-114.png b/proj.ios_mac/ios/Icon-114.png deleted file mode 100644 index c380786..0000000 Binary files a/proj.ios_mac/ios/Icon-114.png and /dev/null differ diff --git a/proj.ios_mac/ios/Icon-120.png b/proj.ios_mac/ios/Icon-120.png deleted file mode 100644 index a5b49cc..0000000 Binary files a/proj.ios_mac/ios/Icon-120.png and /dev/null differ diff --git a/proj.ios_mac/ios/Icon-144.png b/proj.ios_mac/ios/Icon-144.png deleted file mode 100644 index 1526615..0000000 Binary files a/proj.ios_mac/ios/Icon-144.png and /dev/null differ diff --git a/proj.ios_mac/ios/Icon-152.png b/proj.ios_mac/ios/Icon-152.png deleted file mode 100644 index 8aa8250..0000000 Binary files a/proj.ios_mac/ios/Icon-152.png and /dev/null differ diff --git a/proj.ios_mac/ios/Icon-29.png b/proj.ios_mac/ios/Icon-29.png deleted file mode 100644 index 0500184..0000000 Binary files a/proj.ios_mac/ios/Icon-29.png and /dev/null differ diff --git a/proj.ios_mac/ios/Icon-40.png b/proj.ios_mac/ios/Icon-40.png deleted file mode 100644 index 775685d..0000000 Binary files a/proj.ios_mac/ios/Icon-40.png and /dev/null differ diff --git a/proj.ios_mac/ios/Icon-50.png b/proj.ios_mac/ios/Icon-50.png deleted file mode 100644 index ac381bc..0000000 Binary files a/proj.ios_mac/ios/Icon-50.png and /dev/null differ diff --git a/proj.ios_mac/ios/Icon-57.png b/proj.ios_mac/ios/Icon-57.png deleted file mode 100644 index 4fcc6fd..0000000 Binary files a/proj.ios_mac/ios/Icon-57.png and /dev/null differ diff --git a/proj.ios_mac/ios/Icon-58.png b/proj.ios_mac/ios/Icon-58.png deleted file mode 100644 index f0f8b7f..0000000 Binary files a/proj.ios_mac/ios/Icon-58.png and /dev/null differ diff --git a/proj.ios_mac/ios/Icon-72.png b/proj.ios_mac/ios/Icon-72.png deleted file mode 100644 index 2c573c8..0000000 Binary files a/proj.ios_mac/ios/Icon-72.png and /dev/null differ diff --git a/proj.ios_mac/ios/Icon-76.png b/proj.ios_mac/ios/Icon-76.png deleted file mode 100644 index 8a1fa18..0000000 Binary files a/proj.ios_mac/ios/Icon-76.png and /dev/null differ diff --git a/proj.ios_mac/ios/Icon-80.png b/proj.ios_mac/ios/Icon-80.png deleted file mode 100644 index d9c7ab4..0000000 Binary files a/proj.ios_mac/ios/Icon-80.png and /dev/null differ diff --git a/proj.ios_mac/ios/Info.plist b/proj.ios_mac/ios/Info.plist deleted file mode 100644 index 080dc3b..0000000 --- a/proj.ios_mac/ios/Info.plist +++ /dev/null @@ -1,70 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleDisplayName - ${PRODUCT_NAME} - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIconFile - Icon-57.png - CFBundleIconFiles - - Icon-29 - Icon-80 - Icon-58 - Icon-120 - Icon.png - Icon@2x.png - Icon-57.png - Icon-114.png - Icon-72.png - Icon-144.png - - CFBundleIconFiles~ipad - - Icon-29 - Icon-50 - Icon-58 - Icon-80 - Icon-40 - Icon-100 - Icon-152 - Icon-76 - Icon-120 - Icon.png - Icon@2x.png - Icon-57.png - Icon-114.png - Icon-72.png - Icon-144.png - - CFBundleIdentifier - org.cocos2dx.guide - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleShortVersionString - - CFBundleSignature - ???? - CFBundleVersion - 1.0 - LSRequiresIPhoneOS - - UIAppFonts - - UIPrerenderedIcon - - UISupportedInterfaceOrientations - - UIInterfaceOrientationLandscapeRight - UIInterfaceOrientationLandscapeLeft - - - diff --git a/proj.ios_mac/ios/Prefix.pch b/proj.ios_mac/ios/Prefix.pch deleted file mode 100644 index 3da08ad..0000000 --- a/proj.ios_mac/ios/Prefix.pch +++ /dev/null @@ -1,12 +0,0 @@ -// -// Prefix header for all source files of the 'iphone' target in the 'iphone' project -// - -#ifdef __OBJC__ - #import - #import -#endif - -#ifdef __cplusplus - #include "cocos2d.h" -#endif \ No newline at end of file diff --git a/proj.ios_mac/ios/RootViewController.h b/proj.ios_mac/ios/RootViewController.h deleted file mode 100644 index a166901..0000000 --- a/proj.ios_mac/ios/RootViewController.h +++ /dev/null @@ -1,34 +0,0 @@ -/**************************************************************************** - Copyright (c) 2013 cocos2d-x.org - Copyright (c) 2013-2014 Chukong Technologies Inc. - - http://www.cocos2d-x.org - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - ****************************************************************************/ - -#import - - -@interface RootViewController : UIViewController { - -} -- (BOOL) prefersStatusBarHidden; - -@end diff --git a/proj.ios_mac/ios/RootViewController.mm b/proj.ios_mac/ios/RootViewController.mm deleted file mode 100644 index c4989af..0000000 --- a/proj.ios_mac/ios/RootViewController.mm +++ /dev/null @@ -1,114 +0,0 @@ -/**************************************************************************** - Copyright (c) 2013 cocos2d-x.org - Copyright (c) 2013-2014 Chukong Technologies Inc. - - http://www.cocos2d-x.org - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - ****************************************************************************/ - -#import "RootViewController.h" -#import "cocos2d.h" -#import "platform/ios/CCEAGLView-ios.h" - -@implementation RootViewController - -/* - // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad. -- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { - if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) { - // Custom initialization - } - return self; -} -*/ - -/* -// Implement loadView to create a view hierarchy programmatically, without using a nib. -- (void)loadView { -} -*/ - -/* -// Implement viewDidLoad to do additional setup after loading the view, typically from a nib. -- (void)viewDidLoad { - [super viewDidLoad]; -} - -*/ -// Override to allow orientations other than the default portrait orientation. -// This method is deprecated on ios6 -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { - return UIInterfaceOrientationIsLandscape( interfaceOrientation ); -} - -// For ios6, use supportedInterfaceOrientations & shouldAutorotate instead -- (NSUInteger) supportedInterfaceOrientations{ -#ifdef __IPHONE_6_0 - return UIInterfaceOrientationMaskAllButUpsideDown; -#endif -} - -- (BOOL) shouldAutorotate { - return YES; -} - -- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { - [super didRotateFromInterfaceOrientation:fromInterfaceOrientation]; - - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); - - if (glview) - { - CCEAGLView *eaglview = (CCEAGLView*) glview->getEAGLView(); - - if (eaglview) - { - CGSize s = CGSizeMake([eaglview getWidth], [eaglview getHeight]); - cocos2d::Application::getInstance()->applicationScreenSizeChanged((int) s.width, (int) s.height); - } - } -} - -//fix not hide status on ios7 -- (BOOL)prefersStatusBarHidden -{ - return YES; -} - -- (void)didReceiveMemoryWarning { - // Releases the view if it doesn't have a superview. - [super didReceiveMemoryWarning]; - - // Release any cached data, images, etc that aren't in use. -} - -- (void)viewDidUnload { - [super viewDidUnload]; - // Release any retained subviews of the main view. - // e.g. self.myOutlet = nil; -} - - -- (void)dealloc { - [super dealloc]; -} - - -@end diff --git a/proj.ios_mac/ios/main.m b/proj.ios_mac/ios/main.m deleted file mode 100644 index 8daa43e..0000000 --- a/proj.ios_mac/ios/main.m +++ /dev/null @@ -1,9 +0,0 @@ -#import - -int main(int argc, char *argv[]) { - - NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; - int retVal = UIApplicationMain(argc, argv, nil, @"AppController"); - [pool release]; - return retVal; -} diff --git a/proj.ios_mac/mac/Icon.icns b/proj.ios_mac/mac/Icon.icns deleted file mode 100644 index 2040fc6..0000000 Binary files a/proj.ios_mac/mac/Icon.icns and /dev/null differ diff --git a/proj.ios_mac/mac/Info.plist b/proj.ios_mac/mac/Info.plist deleted file mode 100644 index c660bd1..0000000 --- a/proj.ios_mac/mac/Info.plist +++ /dev/null @@ -1,36 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIconFile - Icon - CFBundleIdentifier - org.cocos2dx.chapter2 - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSApplicationCategoryType - public.app-category.games - LSMinimumSystemVersion - ${MACOSX_DEPLOYMENT_TARGET} - NSHumanReadableCopyright - Copyright © 2013. All rights reserved. - NSMainNibFile - MainMenu - NSPrincipalClass - NSApplication - - diff --git a/proj.ios_mac/mac/Prefix.pch b/proj.ios_mac/mac/Prefix.pch deleted file mode 100644 index aa71e76..0000000 --- a/proj.ios_mac/mac/Prefix.pch +++ /dev/null @@ -1,11 +0,0 @@ -// -// Prefix header for all source files of the 'Paralaxer' target in the 'Paralaxer' project -// - -#ifdef __OBJC__ - #import -#endif - -#ifdef __cplusplus - #include "cocos2d.h" -#endif \ No newline at end of file diff --git a/proj.ios_mac/mac/main.cpp b/proj.ios_mac/mac/main.cpp deleted file mode 100644 index 96f027e..0000000 --- a/proj.ios_mac/mac/main.cpp +++ /dev/null @@ -1,34 +0,0 @@ -/**************************************************************************** - Copyright (c) 2010 cocos2d-x.org - - http://www.cocos2d-x.org - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - ****************************************************************************/ - -#include "AppDelegate.h" -#include "cocos2d.h" - -USING_NS_CC; - -int main(int argc, char *argv[]) -{ - AppDelegate app; - return Application::getInstance()->run(); -} diff --git a/proj.ios_mac/sprites.plist b/proj.ios_mac/sprites.plist deleted file mode 100644 index f56e7de..0000000 --- a/proj.ios_mac/sprites.plist +++ /dev/null @@ -1,87 +0,0 @@ - - - - - frames - - Blue_Front1.png - - frame - {{2,2},{65,81}} - offset - {0,0} - rotated - - sourceColorRect - {{0,0},{65,81}} - sourceSize - {65,81} - - LightBlue_Front1.png - - frame - {{2,168},{65,79}} - offset - {0,0} - rotated - - sourceColorRect - {{0,0},{65,79}} - sourceSize - {65,79} - - White_Front1.png - - frame - {{2,85},{65,81}} - offset - {0,0} - rotated - - sourceColorRect - {{0,0},{65,81}} - sourceSize - {65,81} - - ZigzagForest_Square.png - - frame - {{2,249},{64,64}} - offset - {0,0} - rotated - - sourceColorRect - {{0,0},{64,64}} - sourceSize - {64,64} - - ZigzagGrass_Mud_Round.png - - frame - {{2,315},{64,64}} - offset - {0,0} - rotated - - sourceColorRect - {{0,0},{64,64}} - sourceSize - {64,64} - - - metadata - - format - 2 - realTextureFileName - sprites.pvr.ccz - size - {69,382} - smartupdate - $TexturePacker:SmartUpdate:2e01155d20cb55cd5bbd4eb50d43ff39:7b8b6ec505808c571e2013b70cd6adf9:65190eda994a633aa977088176b54359$ - textureFileName - sprites.pvr.ccz - - - diff --git a/proj.ios_mac/sprites.pvr.ccz b/proj.ios_mac/sprites.pvr.ccz deleted file mode 100644 index 77b1da5..0000000 Binary files a/proj.ios_mac/sprites.pvr.ccz and /dev/null differ diff --git a/src/chapter12/AppDelegate.cpp b/src/chapter12/AppDelegate.cpp deleted file mode 100644 index e481921..0000000 --- a/src/chapter12/AppDelegate.cpp +++ /dev/null @@ -1,55 +0,0 @@ -#include "AppDelegate.h" -#include "Chapter12.h" - -USING_NS_CC; - -AppDelegate::AppDelegate() { - -} - -AppDelegate::~AppDelegate() -{ -} - -//if you want a different context,just modify the value of glContextAttrs -//it will takes effect on all platforms -void AppDelegate::initGLContextAttrs() -{ - //set OpenGL context attributions,now can only set six attributions: - //red,green,blue,alpha,depth,stencil - GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8}; - - GLView::setGLContextAttrs(glContextAttrs); -} - -bool AppDelegate::applicationDidFinishLaunching() { - // initialize director - auto director = Director::getInstance(); - auto glview = director->getOpenGLView(); - - if(!glview) { - glview = GLViewImpl::create("My Game"); - director->setOpenGLView(glview); - } - /*glview->setFrameSize(480,320); - director->setContentScaleFactor(2.0f); - glview->setDesignResolutionSize(480, 320, ResolutionPolicy::SHOW_ALL);*/ - - FileUtils::getInstance()->addSearchPath("chapter12"); - - // create a scene. it's an autorelease object - auto scene = Chapter12::createScene(); - director->runWithScene(scene); - - return true; -} - -// This function will be called when the app is inactive. When comes a phone call,it's be invoked too -void AppDelegate::applicationDidEnterBackground() { - Director::getInstance()->stopAnimation(); -} - -// this function will be called when the app is active again -void AppDelegate::applicationWillEnterForeground() { - Director::getInstance()->startAnimation(); -} diff --git a/src/chapter12/AppDelegate.h b/src/chapter12/AppDelegate.h deleted file mode 100644 index 625506c..0000000 --- a/src/chapter12/AppDelegate.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef _APP_DELEGATE_H_ -#define _APP_DELEGATE_H_ - -#include "cocos2d.h" - -/** -@brief The cocos2d Application. - -The reason for implement as private inheritance is to hide some interface call by Director. -*/ -class AppDelegate : private cocos2d::Application -{ -public: - AppDelegate(); - virtual ~AppDelegate(); - - virtual void initGLContextAttrs(); - - /** - @brief Implement Director and Scene init code here. - @return true Initialize success, app continue. - @return false Initialize failed, app terminate. - */ - virtual bool applicationDidFinishLaunching(); - - /** - @brief The function be called when the application enter background - @param the pointer of the application - */ - virtual void applicationDidEnterBackground(); - - /** - @brief The function be called when the application enter foreground - @param the pointer of the application - */ - virtual void applicationWillEnterForeground(); -}; - -#endif // _APP_DELEGATE_H_ - diff --git a/src/chapter12/Chapter12.cpp b/src/chapter12/Chapter12.cpp deleted file mode 100644 index 7592a8f..0000000 --- a/src/chapter12/Chapter12.cpp +++ /dev/null @@ -1,436 +0,0 @@ -#include "Chapter12.h" - -USING_NS_CC; - -static Size s_visibleSize; -static Vec2 s_origin; -static Vec2 s_centre; -static Scene* s_currScene; -static const int DRAG_BODYS_TAG = 0x80; - -//===================================================================================== -bool PhysicsDemoCorrelationToSprite::init() -{ - if (PhysicsDemo::init()) { - //create a static PhysicsBody - auto physicsBody = PhysicsBody::createBox(Size(65.0f , 81.0f ),PhysicsMaterial(0.1f, 1.0f, 0.0f)); - physicsBody->setDynamic(false); - - //create a sprite - auto sprite = Sprite::create("whiteSprite.png"); - sprite->setPosition(s_centre); - addChild(sprite); - - //make physicsBody associated with sprite - sprite->setPhysicsBody(physicsBody); - - //add five dynamic body - for (int i = 0; i < 5; ++i) - { - physicsBody = PhysicsBody::createBox(Size(65.0f , 81.0f ),PhysicsMaterial(0.1f, 1.0f, 0.0f)); - //set the body isn't affected by the physics world's gravitational force - physicsBody->setGravityEnable(false); - //set initial velocity of physicsBody - physicsBody->setVelocity(Vec2(cocos2d::random(-500,500),cocos2d::random(-500,500))); - physicsBody->setTag(DRAG_BODYS_TAG); - - sprite = Sprite::create("blueSprite.png"); - sprite->setPosition(Vec2(s_centre.x + cocos2d::random(-300 ,300 ),s_centre.y + cocos2d::random(-300 ,300 ))); - sprite->setPhysicsBody(physicsBody); - addChild(sprite); - } - - return true; - } - - return false; -} - -std::string PhysicsDemoCorrelationToSprite::subtitle() const -{ - return "Make body correlation to sprite.Please drag the sprites."; -} - -//===================================================================================== -bool PhysicsDemoCollisionFiltering::init() -{ - if (PhysicsDemo::init()) { - auto sprite1 = addSpriteAtPosition(Vec2(s_centre.x - 150 ,s_centre.y)); - sprite1->getPhysicsBody()->setCategoryBitmask(0x02); // 0010 - sprite1->getPhysicsBody()->setCollisionBitmask(0x01); // 0001 - - sprite1 = addSpriteAtPosition(Vec2(s_centre.x - 150 ,s_centre.y + 100 )); - sprite1->getPhysicsBody()->setCategoryBitmask(0x02); // 0010 - sprite1->getPhysicsBody()->setCollisionBitmask(0x01); // 0001 - - auto sprite2 = addSpriteAtPosition(Vec2(s_centre.x + 150 ,s_centre.y),1); - sprite2->getPhysicsBody()->setCategoryBitmask(0x01); // 0001 - sprite2->getPhysicsBody()->setCollisionBitmask(0x02); // 0010 - - auto sprite3 = addSpriteAtPosition(Vec2(s_centre.x + 150 ,s_centre.y + 100 ),2); - sprite3->getPhysicsBody()->setCategoryBitmask(0x03); // 0011 - sprite3->getPhysicsBody()->setCollisionBitmask(0x03); // 0011 - - return true; - } - - return false; -} - -std::string PhysicsDemoCollisionFiltering::subtitle() const -{ - return "Collision Filtering.Please drag the sprites"; -} - -//===================================================================================== -#define STATIC_SPRITE_TAG 10 -bool PhysicsDemoCollisionProcessing::init() -{ - if (PhysicsDemo::init()) { - - auto sprite = addSpriteAtPosition(s_centre,1); - sprite->setTag(STATIC_SPRITE_TAG); - sprite->getPhysicsBody()->setContactTestBitmask(0xFFFFFFFF); - sprite->getPhysicsBody()->setDynamic(false); - - //add contact event listener - auto contactListener = EventListenerPhysicsContact::create(); - contactListener->onContactBegin = CC_CALLBACK_1(PhysicsDemoCollisionProcessing::onContactBegin, this); - _eventDispatcher->addEventListenerWithSceneGraphPriority(contactListener, this); - - schedule(CC_SCHEDULE_SELECTOR(PhysicsDemoCollisionProcessing::tick), 0.3f); - return true; - } - - return true; -} - -void PhysicsDemoCollisionProcessing::tick(float dt) -{ - auto sprite = addSpriteAtPosition(Vec2(s_centre.x + cocos2d::random(-300 ,300 ),s_centre.y + cocos2d::random(-300 ,300 ))); - auto physicsBody = sprite->getPhysicsBody(); - physicsBody->setVelocity(Vec2(cocos2d::random(-500 ,500 ),cocos2d::random(-500 ,500 ))); - physicsBody->setContactTestBitmask(0xFFFFFFFF); -} - -bool PhysicsDemoCollisionProcessing::onContactBegin(PhysicsContact& contact) -{ - auto nodeA = contact.getShapeA()->getBody()->getNode(); - auto nodeB = contact.getShapeB()->getBody()->getNode(); - if (nodeA && nodeB) - { - if (nodeA->getTag() == STATIC_SPRITE_TAG) - { - nodeB->removeFromParentAndCleanup(true); - } - else if (nodeB->getTag() == STATIC_SPRITE_TAG) - { - nodeA->removeFromParentAndCleanup(true); - } - } - - return true; -} - -std::string PhysicsDemoCollisionProcessing::subtitle() const -{ - return "Collision Processing"; -} - -//===================================================================================== -bool PhysicsDemoRayTest::init() -{ - if (PhysicsDemo::init()) { - _angle = 0.0f; - _drawNode = nullptr; - - auto touchListener = EventListenerTouchAllAtOnce::create(); - touchListener->onTouchesEnded = [=](const std::vector& touches, Event* event){ - for( auto &touch: touches) - { - auto sprite = addSpriteAtPosition(touch->getLocation()); - sprite->getPhysicsBody()->setGravityEnable(false); - } - }; - _eventDispatcher->addEventListenerWithSceneGraphPriority(touchListener, this); - - schedule(CC_SCHEDULE_SELECTOR(PhysicsDemoRayTest::tick), 0.03f); - return true; - } - - return false; -} - -void PhysicsDemoRayTest::tick(float dt) -{ - Vec2 d(300 * cosf(_angle), 300 * sinf(_angle)); - Vec2 point2 = s_centre + d; - if (_drawNode) - { - removeChild(_drawNode); - } - _drawNode = DrawNode::create(); - -#define MAX_MULTI_RAYCAST_NUM 5 - - Vec2 points[MAX_MULTI_RAYCAST_NUM]; - int num = 0; - PhysicsRayCastCallbackFunc func = [&points, &num](PhysicsWorld& world, const PhysicsRayCastInfo& info, void* data)->bool - { - if (num < MAX_MULTI_RAYCAST_NUM) - { - points[num++] = info.contact; - } - return true; - }; - - s_currScene->getPhysicsWorld()->rayCast(func, s_centre, point2, nullptr); - - _drawNode->drawSegment(s_centre, point2, 1, Color4F::RED); - for (int i = 0; i < num; ++i) - { - _drawNode->drawDot(points[i], 3, Color4F(1.0f, 1.0f, 1.0f, 1.0f)); - } - addChild(_drawNode); - - _angle += 1.5f * (float)M_PI / 180.0f; -} - -std::string PhysicsDemoRayTest::subtitle() const -{ - return "Ray Test.Touch screen to add sprite."; -} - -//===================================================================================== -bool PhysicsDemoJointsDistance::init() -{ - if (PhysicsDemo::init()) { - auto sprite1 = addSpriteAtPosition(Vec2(s_centre.x - 100,s_centre.y)); - auto sprite2 = addSpriteAtPosition(Vec2(s_centre.x + 100,s_centre.y),1); - - PhysicsJointDistance* joint = PhysicsJointDistance::construct(sprite1->getPhysicsBody(), sprite2->getPhysicsBody(), Point::ZERO, Point::ZERO); - s_currScene->getPhysicsWorld()->addJoint(joint); - return true; - } - - return false; -} - -std::string PhysicsDemoJointsDistance::subtitle() const -{ - return "Joints Test:Distance"; -} - -//========================================================================== -#define CL(__className__) [](){ return __className__::create();} - -namespace -{ - static std::function createFunctions[] = { - CL(PhysicsDemoCorrelationToSprite), - CL(PhysicsDemoCollisionFiltering), - CL(PhysicsDemoCollisionProcessing), - CL(PhysicsDemoRayTest), - CL(PhysicsDemoJointsDistance), - }; - - static int sceneIdx = -1; - -#define MAX_LAYER (sizeof(createFunctions) / sizeof(createFunctions[0])) - - static Layer* next() - { - sceneIdx++; - sceneIdx = sceneIdx % MAX_LAYER; - - auto layer = (createFunctions[sceneIdx])(); - return layer; - } - - static Layer* back() - { - sceneIdx--; - int total = MAX_LAYER; - if( sceneIdx < 0 ) - sceneIdx += total; - - auto layer = (createFunctions[sceneIdx])(); - return layer; - } - - static Layer* restart() - { - auto layer = (createFunctions[sceneIdx])(); - return layer; - } -} - -bool PhysicsDemo::init() -{ - if (Layer::init()) - { - s_currScene->getPhysicsWorld()->setDebugDrawMask(PhysicsWorld::DEBUGDRAW_ALL); - - //create title - TTFConfig ttfConfig("fonts/arial.ttf", 32); - auto titleLabel = Label::createWithTTF(ttfConfig,"Physics Chapter Samples"); - addChild(titleLabel, 9999); - titleLabel->setPosition(Vec2(s_origin.x + s_visibleSize.width/2, s_origin.y + s_visibleSize.height - 30)); - - //create subtitle - std::string strSubtitle = subtitle(); - if( ! strSubtitle.empty() ) - { - ttfConfig.fontSize = 20; - auto subTitleLabel = Label::createWithTTF(ttfConfig, strSubtitle.c_str()); - addChild(subTitleLabel, 9999); - subTitleLabel->setPosition(Vec2(s_origin.x + s_visibleSize.width/2, s_origin.y + s_visibleSize.height - 70)); - } - - //create menu - auto backItem = MenuItemImage::create("leftNormal.png", "leftSelected.png", CC_CALLBACK_1(PhysicsDemo::backCallback, this) ); - auto restartItem = MenuItemImage::create("restartNormal.png", "restartSelected.png", CC_CALLBACK_1(PhysicsDemo::restartCallback, this) ); - auto nextItem = MenuItemImage::create("rightNormal.png", "rightSelected.png", CC_CALLBACK_1(PhysicsDemo::nextCallback, this) ); - - auto menu = Menu::create(backItem, restartItem, nextItem, nullptr); - menu->setPosition(Vec2::ZERO); - addChild(menu, 9999); - - auto restartItemSize = restartItem->getContentSize(); - backItem->setPosition(s_centre.x - restartItemSize.width * 2, s_origin.y + restartItemSize.height / 2); - restartItem->setPosition(s_centre.x, s_origin.y + restartItemSize.height / 2); - nextItem->setPosition(s_centre.x + restartItemSize.width * 2, s_origin.y + restartItemSize.height/2); - - //create border - auto node = Node::create(); - auto physicsBody = PhysicsBody::createEdgeBox(s_visibleSize,PhysicsMaterial(0.1f, 1, 0.0f)); - node->setPhysicsBody(physicsBody); - node->setPosition(s_centre); - this->addChild(node); - - //add touch event listener - auto touchListener = EventListenerTouchOneByOne::create(); - touchListener->onTouchBegan = CC_CALLBACK_2(PhysicsDemo::onTouchBegan, this); - touchListener->onTouchMoved = CC_CALLBACK_2(PhysicsDemo::onTouchMoved, this); - touchListener->onTouchEnded = CC_CALLBACK_2(PhysicsDemo::onTouchEnded, this); - touchListener->onTouchCancelled = CC_CALLBACK_2(PhysicsDemo::onTouchEnded, this); - _eventDispatcher->addEventListenerWithSceneGraphPriority(touchListener, this); - return true; - } - - return false; -} - -void PhysicsDemo::restartCallback(Ref* sender) -{ - s_currScene = Scene::createWithPhysics(); - s_currScene->addChild( restart() ); - Director::getInstance()->replaceScene(s_currScene); -} - -void PhysicsDemo::nextCallback(Ref* sender) -{ - s_currScene = Scene::createWithPhysics(); - s_currScene->addChild( next() ); - Director::getInstance()->replaceScene(s_currScene); -} - -void PhysicsDemo::backCallback(Ref* sender) -{ - s_currScene = Scene::createWithPhysics(); - s_currScene->addChild( back() ); - Director::getInstance()->replaceScene(s_currScene); -} - -bool PhysicsDemo::onTouchBegan(Touch* touch, Event* event) -{ - auto location = touch->getLocation(); - auto arr = s_currScene->getPhysicsWorld()->getShapes(location); - - PhysicsBody* body = nullptr; - for (auto& obj : arr) - { - if ((obj->getBody()->getTag() & DRAG_BODYS_TAG) != 0) - { - body = obj->getBody(); - break; - } - } - - if (body != nullptr) - { - Node* mouse = Node::create(); - mouse->setPhysicsBody(PhysicsBody::create(PHYSICS_INFINITY, PHYSICS_INFINITY)); - mouse->getPhysicsBody()->setDynamic(false); - mouse->setPosition(location); - this->addChild(mouse); - PhysicsJointPin* joint = PhysicsJointPin::construct(mouse->getPhysicsBody(), body, location); - joint->setMaxForce(5000.0f * body->getMass()); - s_currScene->getPhysicsWorld()->addJoint(joint); - _mouses.insert(std::make_pair(touch->getID(), mouse)); - - return true; - } - - return false; -} - -void PhysicsDemo::onTouchMoved(Touch* touch, Event* event) -{ - auto it = _mouses.find(touch->getID()); - - if (it != _mouses.end()) - { - it->second->setPosition(touch->getLocation()); - } -} - -void PhysicsDemo::onTouchEnded(Touch* touch, Event* event) -{ - auto it = _mouses.find(touch->getID()); - - if (it != _mouses.end()) - { - this->removeChild(it->second); - _mouses.erase(it); - } -} - -Sprite* PhysicsDemo::addSpriteAtPosition(const Vec2& pos, int spriteIndex /* = 0 */, float scale /* = 1.0f */) -{ - static std::string sprites[] = {"blueSprite.png","whiteSprite.png","LightBlueSprite.png"}; - - auto sprite = Sprite::create(sprites[spriteIndex]); - auto physicsBody = PhysicsBody::createBox(Size(65.0f * scale, 81.0f * scale),PhysicsMaterial(0.1f, 1.0f, 0.0f)); - physicsBody->setTag(DRAG_BODYS_TAG); - sprite->setScale(scale); - sprite->setPosition(pos); - //make `PhysicsBody` associated with sprite - sprite->setPhysicsBody(physicsBody); - addChild(sprite); - - return sprite; -} - -Scene* Chapter12::createScene() -{ - sceneIdx = -1; - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // some upfront items that we need - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - s_visibleSize = Director::getInstance()->getVisibleSize(); - s_origin = Director::getInstance()->getVisibleOrigin(); - s_centre = s_origin + s_visibleSize / 2; - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene with physics world for our game to hold everything - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - s_currScene = Scene::createWithPhysics(); - - s_currScene->addChild(next()); - - // return the scene - return s_currScene; -} \ No newline at end of file diff --git a/src/chapter12/Chapter12.h b/src/chapter12/Chapter12.h deleted file mode 100644 index c403121..0000000 --- a/src/chapter12/Chapter12.h +++ /dev/null @@ -1,98 +0,0 @@ -#ifndef __SAMPLES_CHAPTER_12_H__ -#define __SAMPLES_CHAPTER_12_H__ - -#include "cocos2d.h" - -USING_NS_CC; - -class Chapter12 -{ -public: - static cocos2d::Scene* createScene(); -}; - -class PhysicsDemo : public cocos2d::Layer -{ -public: - virtual std::string subtitle() const { return "";} - - void restartCallback(Ref* sender); - void nextCallback(Ref* sender); - void backCallback(Ref* sender); - - bool onTouchBegan(Touch* touch, Event* event); - void onTouchMoved(Touch* touch, Event* event); - void onTouchEnded(Touch* touch, Event* event); - -protected: - virtual bool init(); - - Sprite* addSpriteAtPosition(const Vec2& pos,int spriteIndex = 0, float scale = 1.0f); - - std::unordered_map _mouses; -}; - -class PhysicsDemoCorrelationToSprite : public PhysicsDemo -{ -public: - CREATE_FUNC(PhysicsDemoCorrelationToSprite); - - virtual std::string subtitle() const override; - -protected: - virtual bool init(); -}; - -class PhysicsDemoCollisionFiltering : public PhysicsDemo -{ -public: - CREATE_FUNC(PhysicsDemoCollisionFiltering); - - virtual std::string subtitle() const override; - -protected: - virtual bool init(); -}; - -class PhysicsDemoCollisionProcessing : public PhysicsDemo -{ -public: - CREATE_FUNC(PhysicsDemoCollisionProcessing); - - virtual std::string subtitle() const override; - - bool onContactBegin(PhysicsContact& contact); - - void tick(float dt); - -protected: - virtual bool init(); -}; - -class PhysicsDemoJointsDistance : public PhysicsDemo -{ -public: - CREATE_FUNC(PhysicsDemoJointsDistance); - - virtual std::string subtitle() const override; - -protected: - virtual bool init(); -}; - -class PhysicsDemoRayTest : public PhysicsDemo -{ -public: - CREATE_FUNC(PhysicsDemoRayTest); - - virtual std::string subtitle() const override; - - void tick(float dt); -protected: - virtual bool init(); - - DrawNode* _drawNode; - float _angle; -}; - -#endif // __SAMPLES_CHAPTER_12_H__ diff --git a/src/chapter13/AppDelegate.cpp b/src/chapter13/AppDelegate.cpp deleted file mode 100644 index 5515f4d..0000000 --- a/src/chapter13/AppDelegate.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "AppDelegate.h" -#include "Chapter13.h" - -USING_NS_CC; - -AppDelegate::AppDelegate() { - -} - -AppDelegate::~AppDelegate() -{ -} - -//if you want a different context,just modify the value of glContextAttrs -//it will takes effect on all platforms -void AppDelegate::initGLContextAttrs() -{ - //set OpenGL context attributions,now can only set six attributions: - //red,green,blue,alpha,depth,stencil - GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8}; - - GLView::setGLContextAttrs(glContextAttrs); -} - -bool AppDelegate::applicationDidFinishLaunching() { - // initialize director - auto director = Director::getInstance(); - auto glview = director->getOpenGLView(); - if(!glview) { - glview = GLViewImpl::create("My Game"); - director->setOpenGLView(glview); - } - - // turn on display FPS - //director->setDisplayStats(true); - - // set FPS. the default value is 1.0/60 if you don't call this - director->setAnimationInterval(1.0 / 60); - - // create a scene. it's an autorelease object - auto scene = Chapter13::createScene(); - - // run - director->runWithScene(scene); - - return true; -} - -// This function will be called when the app is inactive. When comes a phone call,it's be invoked too -void AppDelegate::applicationDidEnterBackground() { - Director::getInstance()->stopAnimation(); - - // if you use SimpleAudioEngine, it must be pause - // SimpleAudioEngine::getInstance()->pauseBackgroundMusic(); -} - -// this function will be called when the app is active again -void AppDelegate::applicationWillEnterForeground() { - Director::getInstance()->startAnimation(); - - // if you use SimpleAudioEngine, it must resume here - // SimpleAudioEngine::getInstance()->resumeBackgroundMusic(); -} diff --git a/src/chapter13/AppDelegate.h b/src/chapter13/AppDelegate.h deleted file mode 100644 index 625506c..0000000 --- a/src/chapter13/AppDelegate.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef _APP_DELEGATE_H_ -#define _APP_DELEGATE_H_ - -#include "cocos2d.h" - -/** -@brief The cocos2d Application. - -The reason for implement as private inheritance is to hide some interface call by Director. -*/ -class AppDelegate : private cocos2d::Application -{ -public: - AppDelegate(); - virtual ~AppDelegate(); - - virtual void initGLContextAttrs(); - - /** - @brief Implement Director and Scene init code here. - @return true Initialize success, app continue. - @return false Initialize failed, app terminate. - */ - virtual bool applicationDidFinishLaunching(); - - /** - @brief The function be called when the application enter background - @param the pointer of the application - */ - virtual void applicationDidEnterBackground(); - - /** - @brief The function be called when the application enter foreground - @param the pointer of the application - */ - virtual void applicationWillEnterForeground(); -}; - -#endif // _APP_DELEGATE_H_ - diff --git a/src/chapter13/Chapter13.cpp b/src/chapter13/Chapter13.cpp deleted file mode 100644 index 7154a8c..0000000 --- a/src/chapter13/Chapter13.cpp +++ /dev/null @@ -1,100 +0,0 @@ -#include "Chapter13.h" - -#include - -USING_NS_CC; - -Scene* Chapter13::createScene() -{ - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // some upfront items that we need - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto dirs = Director::getInstance(); - Size visibleSize = dirs->getVisibleSize(); - Vec2 origin = dirs->getVisibleOrigin(); - - Size playingSize = Size(visibleSize.width, visibleSize.height - (visibleSize.height/8)); // actual playing size to work with - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto scene = Scene::create(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold non-sprites. - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto nodeItems = Node::create(); - nodeItems->setName("nodeItems"); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold menu - // create a menu - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto menuNode = Node::create(); - menuNode->setName("menuNode"); - int index = 2; - - auto menuItem1 = MenuItemFont::create("Play Music"); - menuItem1->setFontNameObj("Marker Felt.ttf"); - menuItem1->setFontSizeObj(32); - menuItem1->setName("menuItem1"); - menuItem1->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem1->setCallback([&](cocos2d::Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - auto audio = CocosDenshion::SimpleAudioEngine::getInstance(); - - audio->playBackgroundMusic("music.mp3"); - - auto anode = dirs->getChildByName("menuNode"); - auto bnode = anode->getChildByName("menu"); - auto cnode = bnode->getChildByName("menuItem1"); - cnode->setVisible(false); - cnode = bnode->getChildByName("menuItem2"); - cnode->setVisible(true); - }); - - auto menuItem2 = MenuItemFont::create("Stop Music"); - menuItem2->setFontNameObj("Marker Felt.ttf"); - menuItem2->setFontSizeObj(32); - menuItem2->setName("menuItem2"); - menuItem2->setVisible(false); - menuItem2->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem2->setCallback([&](cocos2d::Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - auto audio = CocosDenshion::SimpleAudioEngine::getInstance(); - - audio->stopBackgroundMusic("music.mp3"); - - auto anode = dirs->getChildByName("menuNode"); - auto bnode = anode->getChildByName("menu"); - auto cnode = bnode->getChildByName("menuItem2"); - cnode->setVisible(false); - cnode = bnode->getChildByName("menuItem1"); - cnode->setVisible(true); - }); - - auto menuItem3 = MenuItemFont::create("Play Effect"); - menuItem3->setFontNameObj("Marker Felt.ttf"); - menuItem3->setFontSizeObj(32); - menuItem3->setName("menuItem3"); - menuItem3->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - menuItem3->setCallback([&](cocos2d::Ref *sender) { - auto audio = CocosDenshion::SimpleAudioEngine::getInstance(); - - audio->playEffect("alert.mp3"); - }); - - auto menu = Menu::create(menuItem1, menuItem2, menuItem3, NULL); - menu->setName("menu"); - menuNode->addChild(menu, 1); - menu->setPosition(Vec2::ZERO); - - scene->addChild(menuNode, 2); - - // return the scene - return scene; -} diff --git a/src/chapter13/Chapter13.h b/src/chapter13/Chapter13.h deleted file mode 100644 index 5f176b8..0000000 --- a/src/chapter13/Chapter13.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef __CHAPTER13_H__ -#define __CHAPTER13_H__ - -#include "cocos2d.h" - -#include - -USING_NS_CC; - -class Chapter13 : public Ref -{ - public: - static cocos2d::Scene* createScene(); -}; - -#endif // __CHAPTER13_H__ diff --git a/src/chapter2/AppDelegate.cpp b/src/chapter2/AppDelegate.cpp deleted file mode 100644 index baa42b8..0000000 --- a/src/chapter2/AppDelegate.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "AppDelegate.h" -#include "Chapter2.h" - -USING_NS_CC; - -AppDelegate::AppDelegate() { - -} - -AppDelegate::~AppDelegate() -{ -} - -//if you want a different context,just modify the value of glContextAttrs -//it will takes effect on all platforms -void AppDelegate::initGLContextAttrs() -{ - //set OpenGL context attributions,now can only set six attributions: - //red,green,blue,alpha,depth,stencil - GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8}; - - GLView::setGLContextAttrs(glContextAttrs); -} - -bool AppDelegate::applicationDidFinishLaunching() { - // initialize director - auto director = Director::getInstance(); - auto glview = director->getOpenGLView(); - if(!glview) { - glview = GLViewImpl::create("My Game"); - director->setOpenGLView(glview); - } - - // turn on display FPS - //director->setDisplayStats(true); - - // set FPS. the default value is 1.0/60 if you don't call this - director->setAnimationInterval(1.0 / 60); - - // create a scene. it's an autorelease object - auto scene = Chapter2::createScene(); - - // run - director->runWithScene(scene); - - return true; -} - -// This function will be called when the app is inactive. When comes a phone call,it's be invoked too -void AppDelegate::applicationDidEnterBackground() { - Director::getInstance()->stopAnimation(); - - // if you use SimpleAudioEngine, it must be pause - // SimpleAudioEngine::getInstance()->pauseBackgroundMusic(); -} - -// this function will be called when the app is active again -void AppDelegate::applicationWillEnterForeground() { - Director::getInstance()->startAnimation(); - - // if you use SimpleAudioEngine, it must resume here - // SimpleAudioEngine::getInstance()->resumeBackgroundMusic(); -} diff --git a/src/chapter2/AppDelegate.h b/src/chapter2/AppDelegate.h deleted file mode 100644 index 625506c..0000000 --- a/src/chapter2/AppDelegate.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef _APP_DELEGATE_H_ -#define _APP_DELEGATE_H_ - -#include "cocos2d.h" - -/** -@brief The cocos2d Application. - -The reason for implement as private inheritance is to hide some interface call by Director. -*/ -class AppDelegate : private cocos2d::Application -{ -public: - AppDelegate(); - virtual ~AppDelegate(); - - virtual void initGLContextAttrs(); - - /** - @brief Implement Director and Scene init code here. - @return true Initialize success, app continue. - @return false Initialize failed, app terminate. - */ - virtual bool applicationDidFinishLaunching(); - - /** - @brief The function be called when the application enter background - @param the pointer of the application - */ - virtual void applicationDidEnterBackground(); - - /** - @brief The function be called when the application enter foreground - @param the pointer of the application - */ - virtual void applicationWillEnterForeground(); -}; - -#endif // _APP_DELEGATE_H_ - diff --git a/src/chapter2/Chapter2.cpp b/src/chapter2/Chapter2.cpp deleted file mode 100644 index caba2ef..0000000 --- a/src/chapter2/Chapter2.cpp +++ /dev/null @@ -1,190 +0,0 @@ -#include "Chapter2.h" - -#include "Chapter2Level1.h" - -USING_NS_CC; - -Scene* Chapter2::createScene() -{ - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // some upfront items that we need - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - Size playingSize = Size(visibleSize.width, visibleSize.height - (visibleSize.height/8)); // actual playing size to work with - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene for our game to hold everything - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto scene = Scene::create(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create the title dialog - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto color = Color4F(1.0f, 0.5f, 0.3f, 1); - - int verts = 4; - - Vec2 stripe1[] = { - Vec2::ZERO, - Vec2(0,200), - Vec2(600,200), - Vec2(600,0) - }; - - DrawNode* dotNode1 = DrawNode::create(); - dotNode1->setContentSize(Size(600, 200)); - dotNode1->drawPolygon(stripe1, verts, color, 0, color); - - dotNode1->setPosition(Vec2(visibleSize.width/2 - (dotNode1->getContentSize().width / 2), - playingSize.height - dotNode1->getContentSize().height)); - - auto label = Label::createWithTTF("Super Cocos Aliens", "Marker Felt.ttf", 64); - dotNode1->addChild(label, 1); - auto dotNodeSize = dotNode1->getContentSize(); - label->setPosition(Vec2(dotNodeSize.width/2, dotNodeSize.height/2)); - - scene->addChild(dotNode1, -1); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold all labels - // create the player and score labels - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - int paddingX = 20; - int paddingY = 20; - - auto labelNode = Node::create(); - - auto player1 = Label::createWithTTF("Player 1", "Marker Felt.ttf", 32); - auto player2 = Label::createWithTTF("Player 2", "Marker Felt.ttf", 32); - - auto player1Score = Label::createWithTTF("00000", "Marker Felt.ttf", 32); - auto player2Score = Label::createWithTTF("00000", "Marker Felt.ttf", 32); - - labelNode->addChild(player1, 0); - labelNode->addChild(player2, 0); - labelNode->addChild(player1Score, 0); - labelNode->addChild(player2Score, 0); - - auto player1Size = player1->getContentSize(); - auto player1ScoreSize = player1Score->getContentSize(); - auto player2Size = player2->getContentSize(); - auto player2ScoreSize = player2Score->getContentSize(); - - player1->setPosition(Vec2(0 + player1Size.width / 2 + paddingX, - visibleSize.height - player1Size.height / 2 - paddingY)); - - player1Score->setPosition(Vec2(0 + player1->getPositionX() + player1ScoreSize.width + paddingX, - visibleSize.height - player1ScoreSize.height / 2 - paddingY)); - - player2Score->setPosition(Vec2(visibleSize.width - player2ScoreSize.width / 2 - paddingX, - visibleSize.height - player2ScoreSize.height / 2 - paddingY)); - - player2->setPosition(Vec2(player2Score->getPositionX() - player2Size.width - paddingX, - visibleSize.height - player2Size.height / 2 - paddingY)); - - scene->addChild(labelNode, -1); - - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold non-sprites. - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto nodeItems = Node::create(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a path/walkway - // depending upon how large the screen is we need to decide how many blocks to lay down. - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto testSprite = Sprite::create("ZigzagForest_Square.png"); - auto spriteSize = testSprite->getContentSize(); - - int howMany = std::ceil(visibleSize.width / spriteSize.width); - - int sX = 0; // act as a counter for setPosition x coordinate. - int sY = 0; // act as a counter for setPosition y coordinate. - - playingSize = Size(visibleSize.width, visibleSize.height - spriteSize.height); - - for (int i=0; i < howMany; i++) - { - auto sprite = Sprite::create("ZigzagForest_Square.png"); - sprite->setAnchorPoint(Vec2::ZERO); - sprite->setPosition(sX,sY); - - sX += sprite->getContentSize().width; - - nodeItems->addChild(sprite, 0); - } - - testSprite = NULL; - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create the blocks - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - testSprite = Sprite::create("ZigzagGrass_Mud_Round.png"); - - sX = visibleSize.width/2 - testSprite->getContentSize().width; - sY = playingSize.height/2 - testSprite->getContentSize().height * 2; - - for (int i=0; i < 5; i++) - { - auto sprite = Sprite::create("ZigzagGrass_Mud_Round.png"); - sprite->setAnchorPoint(Vec2::ZERO); - sprite->setPosition(sX,sY); - - sX += sprite->getContentSize().width; - - nodeItems->addChild(sprite, 0); - } - - testSprite = NULL; - - scene->addChild(nodeItems, 1); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold all sprites - // create a few sprites - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto spriteNode = Node::create(); - - auto sprite1 = Sprite::create("Blue_Front1.png"); - sprite1->setAnchorPoint(Vec2(0,0)); - sprite1->setPosition(100, (visibleSize.height - playingSize.height)); - spriteNode->addChild(sprite1, 1); - - auto sprite2 = Sprite::create("LightBlue_Front1.png"); - sprite2->setAnchorPoint(Vec2(0,0)); - sprite2->setPosition(500, (visibleSize.height - playingSize.height)); - spriteNode->addChild(sprite2, 1); - - auto sprite3 = Sprite::create("White_Front1.png"); - sprite3->setAnchorPoint(Vec2(0,0)); - sprite3->setPosition(800, (visibleSize.height - playingSize.height)); - spriteNode->addChild(sprite3, 1); - - scene->addChild(spriteNode, 1); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold menu - // create a menu - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto menuNode = Node::create(); - - auto menuItem1 = MenuItemFont::create("Start Game"); - menuItem1->setFontNameObj("Marker Felt.ttf"); - menuItem1->setFontSizeObj(64); - - menuItem1->setCallback([&](Ref *sender) { - Director::getInstance()->replaceScene(Chapter2Level1::createScene()); - }); - - auto menu = Menu::create(menuItem1, NULL); - menuNode->addChild(menu, 0); - - scene->addChild(menuNode, 2); - - // return the scene - return scene; -} diff --git a/src/chapter2/Chapter2.h b/src/chapter2/Chapter2.h deleted file mode 100644 index c326df4..0000000 --- a/src/chapter2/Chapter2.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef __HELLOWORLD_SCENE_H__ -#define __HELLOWORLD_SCENE_H__ - -#include "cocos2d.h" - -#include - -USING_NS_CC; - -class Chapter2 -{ - public: - static cocos2d::Scene* createScene(); -}; - -#endif // __HELLOWORLD_SCENE_H__ diff --git a/src/chapter2/Chapter2Level1.cpp b/src/chapter2/Chapter2Level1.cpp deleted file mode 100644 index a397126..0000000 --- a/src/chapter2/Chapter2Level1.cpp +++ /dev/null @@ -1,250 +0,0 @@ -#include "Chapter2Level1.h" - -USING_NS_CC; - -Scene* Chapter2Level1::createScene() -{ - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // some upfront items that we need - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - Size playingSize = Size(visibleSize.width, visibleSize.height - (visibleSize.height/8)); // actual playing size to work with - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto scene = Scene::create(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold all of the labels - // create the player and score labels - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - int paddingX = 20; - int paddingY = 20; - - auto labelNode = Node::create(); - - auto player1 = Label::createWithTTF("Player 1", "Marker Felt.ttf", 32); - auto player2 = Label::createWithTTF("Player 2", "Marker Felt.ttf", 32); - - auto player1Score = Label::createWithTTF("00000", "Marker Felt.ttf", 32); - auto player2Score = Label::createWithTTF("00000", "Marker Felt.ttf", 32); - - labelNode->addChild(player1, -2); - labelNode->addChild(player1Score, -1); - labelNode->addChild(player2, 1); - labelNode->addChild(player2Score, 2); - - player1->setPosition(Vec2(0 + player1->getContentSize().width / 2 + paddingX, - visibleSize.height - player1->getContentSize().height / 2 - paddingY)); - - player1Score->setPosition(Vec2(0 + player1->getPositionX() + player1->getContentSize().width + paddingX, - visibleSize.height - player1->getContentSize().height / 2 - paddingY)); - - player2Score->setPosition(Vec2(visibleSize.width - player2Score->getContentSize().width / 2 - paddingX, - visibleSize.height - player2Score->getContentSize().height / 2 - paddingY)); - - player2->setPosition(Vec2(player2Score->getPositionX() - player2Score->getContentSize().width - paddingX, - visibleSize.height - player2Score->getContentSize().height / 2 - paddingY)); - - scene->addChild(labelNode, 0); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold non-sprites. - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto nodeItems = Node::create(); - nodeItems->setName("nodeItems"); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a path/walkway - // depending upon how large the screen is we need to decide how many blocks to lay down. - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto testSprite = Sprite::create("ZigzagForest_Square.png"); - - int howMany = std::ceil(visibleSize.width / testSprite->getContentSize().width); - - int sX = 0; // act as a counter for setPosition x coordinate. - int sY = 0; // act as a counter for setPosition y coordinate. - - playingSize = Size(visibleSize.width, visibleSize.height - testSprite->getContentSize().height); - - for (int i=0; i < howMany; i++) - { - auto sprite = Sprite::create("ZigzagForest_Square.png"); - sprite->setAnchorPoint(Vec2(0,0)); - sprite->setPosition(sX,sY); - - sX += sprite->getContentSize().width; - - nodeItems->addChild(sprite, -1); - } - - testSprite = NULL; - - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a few blocks as obstables - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - testSprite = Sprite::create("ZigzagGrass_Mud_Round.png"); - - // left side blocks - sX = visibleSize.width/4 - testSprite->getContentSize().width; - sY = playingSize.height/2 - testSprite->getContentSize().height * 2; - - for (int i=0; i < 3; i++) - { - auto sprite = Sprite::create("ZigzagGrass_Mud_Round.png"); - sprite->setAnchorPoint(Vec2(0,0)); - sprite->setPosition(sX,sY); - - sX += sprite->getContentSize().width; - - if (i == 1) - { - sprite->setName("middleBlock1"); - } - - nodeItems->addChild(sprite, 1); - } - - // right side blocks - sX = (visibleSize.width/2 + visibleSize.width/4) - testSprite->getContentSize().width; - sY = playingSize.height/2 - testSprite->getContentSize().height * 2; - - for (int i=0; i < 3; i++) - { - auto sprite = Sprite::create("ZigzagGrass_Mud_Round.png"); - sprite->setAnchorPoint(Vec2(0,0)); - sprite->setPosition(sX,sY); - - sX += sprite->getContentSize().width; - - if (i == 1) - { - sprite->setName("middleBlock2"); - } - - scene->addChild(sprite, 1); - } - - // center blocks - sX = visibleSize.width/2 - testSprite->getContentSize().width; - sY = (playingSize.height/2 + playingSize.height/4) - testSprite->getContentSize().height * 2; - - for (int i=0; i < 3; i++) - { - auto sprite = Sprite::create("ZigzagGrass_Mud_Round.png"); - sprite->setAnchorPoint(Vec2(0,0)); - sprite->setPosition(sX,sY); - - sX += sprite->getContentSize().width; - - nodeItems->addChild(sprite, 1); - } - - testSprite = NULL; - - scene->addChild(nodeItems, 1); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold sprites - // create a sprite - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto spriteNode = Node::create(); - spriteNode->setName("spriteNode"); - - auto sprite1 = Sprite::create("Blue_Front1.png"); - sprite1->setAnchorPoint(Vec2(0,0)); - sprite1->setPosition(100, (visibleSize.height - playingSize.height)); - sprite1->setName("mainSprite"); - - spriteNode->addChild(sprite1, 1); - - scene->addChild(spriteNode, 1); - - //sprite1->scheduleOnce([&](float dt) { - // // the local variable "sprite1" will go out of scope, so I have to get it from "this" - // auto anode = Director::getInstance()->getRunningScene()->getChildByName("spriteNode"); - // auto bnode = anode->getChildByName("mainSprite"); - // - // //auto moveBy = MoveBy::create(2, Point(400,0)); - // - // //bnode->runAction(moveBy); - //}, 5, "udpate_key"); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold menu - // create a menu - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto menuNode = Node::create(); - menuNode->setName("menuNode"); - - auto menuItem1 = MenuItemFont::create("Demo Parent/Child"); - menuItem1->setFontNameObj("Marker Felt.ttf"); - menuItem1->setFontSizeObj(32); - - menuItem1->setCallback([&](cocos2d::Ref *sender) { - auto anode = Director::getInstance()->getRunningScene()->getChildByName("spriteNode"); - auto bnode = anode->getChildByName("mainSprite"); - - auto cnode = Director::getInstance()->getRunningScene()->getChildByName("nodeItems"); - auto dnode = cnode->getChildByName("middleBlock1"); - - // add a few more sprites - auto sprite1 = Sprite::create("LightBlue_Front1.png"); - sprite1->setAnchorPoint(Vec2(0,0)); - sprite1->setName("childSprite1"); - - bnode->addChild(sprite1, 1); - - sprite1->setPosition(dnode->getPositionX(), dnode->getPositionY()); - - auto sprite2 = Sprite::create("White_Front1.png"); - sprite2->setAnchorPoint(Vec2(0,0)); - sprite2->setName("childSprite2"); - - bnode->addChild(sprite2, 1); - - sprite2->setPosition(dnode->getPositionX() - dnode->getContentSize().width * 3, dnode->getPositionY()); - - // hide the menu option - auto ynode = Director::getInstance()->getRunningScene()->getChildByName("menuNode"); - auto znode = ynode->getChildByName("menu"); - znode->removeFromParentAndCleanup(true); - - // schedule an action after 3 seconds - bnode->scheduleOnce([&](float dt) { - auto anode = Director::getInstance()->getRunningScene()->getChildByName("spriteNode"); - auto bnode = anode->getChildByName("mainSprite"); - - bnode->setRotation(40.0f); - - auto delay = DelayTime::create(4.0f); - bnode->runAction(delay); - - bnode->setScale(2.0f); - - // You could also use an Action and Sequence combination to do this. - //auto rotateBy = RotateBy::create(2, 40.0f); - //auto scaleBy = ScaleTo::create(2, 2.0f); - - //auto seq = Sequence::create(rotateBy, scaleBy, NULL); - - //bnode->runAction(seq); - - }, 3, "udpate_key"); - }); - - auto menu = Menu::create(menuItem1, NULL); - menu->setName("menu"); - menuNode->addChild(menu, 1); - menu->setPosition(visibleSize.width / 2, visibleSize.height - menuItem1->getContentSize().height * 2); - - scene->addChild(menuNode, 2); - - // return the scene - return scene; -} diff --git a/src/chapter2/Chapter2Level1.h b/src/chapter2/Chapter2Level1.h deleted file mode 100644 index 783269d..0000000 --- a/src/chapter2/Chapter2Level1.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef __CHAPTER2LEVEL1_H__ -#define __CHAPTER2LEVEL1_H__ - -#include "cocos2d.h" - -#include - -USING_NS_CC; - -class Chapter2Level1 : public Ref -{ - public: - static cocos2d::Scene* createScene(); -}; - -#endif // __CHAPTER2LEVEL1_H__ diff --git a/src/chapter3/AppDelegate.cpp b/src/chapter3/AppDelegate.cpp deleted file mode 100644 index a98528b..0000000 --- a/src/chapter3/AppDelegate.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "AppDelegate.h" -#include "Chapter3.h" - -USING_NS_CC; - -AppDelegate::AppDelegate() { - -} - -AppDelegate::~AppDelegate() -{ -} - -//if you want a different context,just modify the value of glContextAttrs -//it will takes effect on all platforms -void AppDelegate::initGLContextAttrs() -{ - //set OpenGL context attributions,now can only set six attributions: - //red,green,blue,alpha,depth,stencil - GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8}; - - GLView::setGLContextAttrs(glContextAttrs); -} - -bool AppDelegate::applicationDidFinishLaunching() { - // initialize director - auto director = Director::getInstance(); - auto glview = director->getOpenGLView(); - if(!glview) { - glview = GLViewImpl::create("My Game"); - director->setOpenGLView(glview); - } - - // turn on display FPS - //director->setDisplayStats(true); - - // set FPS. the default value is 1.0/60 if you don't call this - director->setAnimationInterval(1.0 / 60); - - // create a scene. it's an autorelease object - auto scene = Chapter3::createScene(); - - // run - director->runWithScene(scene); - - return true; -} - -// This function will be called when the app is inactive. When comes a phone call,it's be invoked too -void AppDelegate::applicationDidEnterBackground() { - Director::getInstance()->stopAnimation(); - - // if you use SimpleAudioEngine, it must be pause - // SimpleAudioEngine::getInstance()->pauseBackgroundMusic(); -} - -// this function will be called when the app is active again -void AppDelegate::applicationWillEnterForeground() { - Director::getInstance()->startAnimation(); - - // if you use SimpleAudioEngine, it must resume here - // SimpleAudioEngine::getInstance()->resumeBackgroundMusic(); -} diff --git a/src/chapter3/AppDelegate.h b/src/chapter3/AppDelegate.h deleted file mode 100644 index 625506c..0000000 --- a/src/chapter3/AppDelegate.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef _APP_DELEGATE_H_ -#define _APP_DELEGATE_H_ - -#include "cocos2d.h" - -/** -@brief The cocos2d Application. - -The reason for implement as private inheritance is to hide some interface call by Director. -*/ -class AppDelegate : private cocos2d::Application -{ -public: - AppDelegate(); - virtual ~AppDelegate(); - - virtual void initGLContextAttrs(); - - /** - @brief Implement Director and Scene init code here. - @return true Initialize success, app continue. - @return false Initialize failed, app terminate. - */ - virtual bool applicationDidFinishLaunching(); - - /** - @brief The function be called when the application enter background - @param the pointer of the application - */ - virtual void applicationDidEnterBackground(); - - /** - @brief The function be called when the application enter foreground - @param the pointer of the application - */ - virtual void applicationWillEnterForeground(); -}; - -#endif // _APP_DELEGATE_H_ - diff --git a/src/chapter3/Chapter3.cpp b/src/chapter3/Chapter3.cpp deleted file mode 100644 index 30376dc..0000000 --- a/src/chapter3/Chapter3.cpp +++ /dev/null @@ -1,553 +0,0 @@ -#include "Chapter3.h" - -USING_NS_CC; - -Scene* Chapter3::createScene() -{ - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // some upfront items that we need - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto dirs = Director::getInstance(); - Size visibleSize = dirs->getVisibleSize(); - Vec2 origin = dirs->getVisibleOrigin(); - - Size playingSize = Size(visibleSize.width, visibleSize.height - (visibleSize.height/8)); // actual playing size to work with - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto scene = Scene::create(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold non-sprites. - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto nodeItems = Node::create(); - nodeItems->setName("nodeItems"); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold menu - // create a menu - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto menuNode = Node::create(); - menuNode->setName("menuNode"); - int index = 2; - - auto menuItem1 = MenuItemFont::create("First: Create a Sprite"); - menuItem1->setFontNameObj("Marker Felt.ttf"); - menuItem1->setFontSizeObj(32); - menuItem1->setName("menuItem1"); - menuItem1->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem1->setCallback([&](cocos2d::Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - auto newSprite = Sprite::create("Blue_Front1.png"); - newSprite->setPosition(100, 256); - newSprite->setName("sprite1"); - newSprite->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite,1); - - auto anode = dirs->getChildByName("menuNode"); - auto bnode = anode->getChildByName("menu"); - auto cnode = bnode->getChildByName("menuItem1"); - cnode->setVisible(false); - auto dnode = bnode->getChildByName("menuItem2"); - dnode->setVisible(true); - }); - - auto menuItem2 = MenuItemFont::create("Next: Create a Sprite from a Rect"); - menuItem2->setFontNameObj("Marker Felt.ttf"); - menuItem2->setFontSizeObj(32); - menuItem2->setName("menuItem2"); - menuItem2->setVisible(false); - menuItem2->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem2->setCallback([&](cocos2d::Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - auto newSprite = Sprite::create("Blue_Front1.png", Rect(0,0,50,50)); - newSprite->setPosition(250, 256); - newSprite->setName("sprite2"); - newSprite->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite,1); - - auto anode = dirs->getChildByName("menuNode"); - auto bnode = anode->getChildByName("menu"); - auto cnode = bnode->getChildByName("menuItem2"); - cnode->setVisible(false); - auto dnode = bnode->getChildByName("menuItem3"); - dnode->setVisible(true); - }); - - auto menuItem3 = MenuItemFont::create("Next: Create a Sprite from SpriteFrameCache"); - menuItem3->setFontNameObj("Marker Felt.ttf"); - menuItem3->setFontSizeObj(32); - menuItem3->setName("menuItem3"); - menuItem3->setVisible(false); - menuItem3->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem3->setCallback([&](cocos2d::Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - auto spritecache = SpriteFrameCache::getInstance(); - spritecache->addSpriteFramesWithFile("sprites.plist"); - - auto newSprite = Sprite::createWithSpriteFrameName("Blue_Front1.png"); - newSprite->setPosition(400, 256); - newSprite->setName("sprite3"); - newSprite->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite,1); - - auto anode = dirs->getChildByName("menuNode"); - auto bnode = anode->getChildByName("menu"); - auto cnode = bnode->getChildByName("menuItem3"); - cnode->setVisible(false); - auto dnode = bnode->getChildByName("menuItem4"); - dnode->setVisible(true); - }); - - auto menuItem4 = MenuItemFont::create("Next: Create a Sprite from SpriteFrame"); - menuItem4->setFontNameObj("Marker Felt.ttf"); - menuItem4->setFontSizeObj(32); - menuItem4->setName("menuItem4"); - menuItem4->setVisible(false); - menuItem4->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem4->setCallback([&](cocos2d::Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - auto spritecache = SpriteFrameCache::getInstance(); - spritecache->addSpriteFramesWithFile("sprites.plist"); - - auto newspriteFrame = SpriteFrame::create("Blue_Front1.png", Rect(0,0,50,50)); - - auto newSprite = Sprite::createWithSpriteFrame(newspriteFrame); - newSprite->setPosition(550, 256); - newSprite->setName("sprite4"); - newSprite->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite,1); - - auto anode = dirs->getChildByName("menuNode"); - auto bnode = anode->getChildByName("menu"); - auto cnode = bnode->getChildByName("menuItem4"); - cnode->setVisible(false); - auto dnode = bnode->getChildByName("menuItem5"); - dnode->setVisible(true); - }); - - auto menuItem5 = MenuItemFont::create("Next: Scale a Sprite"); - menuItem5->setFontNameObj("Marker Felt.ttf"); - menuItem5->setFontSizeObj(32); - menuItem5->setName("menuItem5"); - menuItem5->setVisible(false); - menuItem5->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem5->setCallback([&](cocos2d::Ref *sender) { - // hide everything else on the screen - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("sprite1"); - dirs->removeChildByName("sprite2"); - dirs->removeChildByName("sprite3"); - dirs->removeChildByName("sprite4"); - - auto newSprite = Sprite::create("Blue_Front1.png"); - newSprite->setPosition(100, 256); - newSprite->setName("sprite5"); - newSprite->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite,1); - - auto point00 = Sprite::create("dot.png"); - point00->setName("point00"); - point00->setPosition(newSprite->getPosition()); - dirs->addChild(point00,2); - - auto newSpriteScaleXY = Sprite::create("Blue_Front1.png"); - newSpriteScaleXY->setPosition(300,256); - newSpriteScaleXY->setName("sprite6"); - newSpriteScaleXY->setAnchorPoint(Vec2(0.5,0.5)); - newSpriteScaleXY->setScale(2.0f); - dirs->addChild(newSpriteScaleXY,1); - - auto pointXY = Sprite::create("dot.png"); - pointXY->setName("pointXY"); - pointXY->setPosition(newSpriteScaleXY->getPosition()); - dirs->addChild(pointXY,2); - - auto newSpriteScaleX = Sprite::create("Blue_Front1.png"); - newSpriteScaleX->setPosition(500,256); - newSpriteScaleX->setName("sprite7"); - newSpriteScaleX->setAnchorPoint(Vec2(0.5,0.5)); - newSpriteScaleX->setScaleX(2.0f); - dirs->addChild(newSpriteScaleX,1); - - auto pointX = Sprite::create("dot.png"); - pointX->setName("pointX"); - pointX->setPosition(newSpriteScaleX->getPosition()); - dirs->addChild(pointX,2); - - auto newSpriteScaleY = Sprite::create("Blue_Front1.png"); - newSpriteScaleY->setPosition(800, 256); - newSpriteScaleY->setName("sprite8"); - newSpriteScaleY->setAnchorPoint(Vec2(0.5,0.5)); - newSpriteScaleY->setScaleY(2.0f); - dirs->addChild(newSpriteScaleY,1); - - auto pointY = Sprite::create("dot.png"); - pointY->setName("pointY"); - pointY->setPosition(newSpriteScaleY->getPosition()); - dirs->addChild(pointY,2); - - auto anode = dirs->getChildByName("menuNode"); - auto bnode = anode->getChildByName("menu"); - auto cnode = bnode->getChildByName("menuItem5"); - cnode->setVisible(false); - auto dnode = bnode->getChildByName("menuItem6"); - dnode->setVisible(true); - }); - - auto menuItem6 = MenuItemFont::create("Next: Anchor Point and Sprite"); - menuItem6->setFontNameObj("Marker Felt.ttf"); - menuItem6->setFontSizeObj(32); - menuItem6->setName("menuItem6"); - menuItem6->setVisible(false); - menuItem6->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem6->setCallback([&](cocos2d::Ref *sender) { - // hide everything else on the screen - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("sprite5"); - dirs->removeChildByName("sprite6"); - dirs->removeChildByName("sprite7"); - dirs->removeChildByName("sprite8"); - dirs->removeChildByName("point00"); - dirs->removeChildByName("pointXY"); - dirs->removeChildByName("pointX"); - dirs->removeChildByName("pointY"); - - - auto newSprite00 = Sprite::create("Blue_Front1.png"); - newSprite00->setPosition(100, 256); - newSprite00->setName("sprite9"); - newSprite00->setAnchorPoint(Vec2(0,0)); - dirs->addChild(newSprite00,1); - - auto point00 = Sprite::create("dot.png"); - point00->setName("point00"); - point00->setPosition(newSprite00->getPosition()); - dirs->addChild(point00,2); - - auto newSprite01 = Sprite::create("Blue_Front1.png"); - newSprite01->setPosition(250, 256); - newSprite01->setName("sprite10"); - newSprite01->setAnchorPoint(Vec2(0,1)); - dirs->addChild(newSprite01,1); - - auto point01 = Sprite::create("dot.png"); - point01->setName("point01"); - point01->setPosition(newSprite01->getPosition()); - dirs->addChild(point01,2); - - auto newSprite10 = Sprite::create("Blue_Front1.png"); - newSprite10->setPosition(400, 256); - newSprite10->setName("sprite11"); - newSprite10->setAnchorPoint(Vec2(1,0)); - dirs->addChild(newSprite10,1); - - auto point10 = Sprite::create("dot.png"); - point10->setName("point10"); - point10->setPosition(newSprite10->getPosition()); - dirs->addChild(point10,2); - - auto newSprite11 = Sprite::create("Blue_Front1.png"); - newSprite11->setPosition(550, 256); - newSprite11->setName("sprite12"); - newSprite11->setAnchorPoint(Vec2(1,1)); - dirs->addChild(newSprite11,1); - - auto point11 = Sprite::create("dot.png"); - point11->setName("point11"); - point11->setPosition(newSprite11->getPosition()); - dirs->addChild(point11,2); - - auto newSprite22 = Sprite::create("Blue_Front1.png"); - newSprite22->setPosition(700, 256); - newSprite22->setName("sprite13"); - newSprite22->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite22,1); - - auto point22 = Sprite::create("dot.png"); - point22->setName("point22"); - point22->setPosition(newSprite22->getPosition()); - dirs->addChild(point22,2); - - auto anode = dirs->getChildByName("menuNode"); - auto bnode = anode->getChildByName("menu"); - auto cnode = bnode->getChildByName("menuItem6"); - cnode->setVisible(false); - auto dnode = bnode->getChildByName("menuItem7"); - dnode->setVisible(true); - }); - - auto menuItem7 = MenuItemFont::create("Next: Skew a Sprite"); - menuItem7->setFontNameObj("Marker Felt.ttf"); - menuItem7->setFontSizeObj(32); - menuItem7->setName("menuItem7"); - menuItem7->setVisible(false); - menuItem7->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem7->setCallback([&](cocos2d::Ref *sender) { - // hide everything else on the screen - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("sprite9"); - dirs->removeChildByName("sprite10"); - dirs->removeChildByName("sprite11"); - dirs->removeChildByName("sprite12"); - dirs->removeChildByName("sprite13"); - dirs->removeChildByName("point00"); - dirs->removeChildByName("point01"); - dirs->removeChildByName("point10"); - dirs->removeChildByName("point11"); - dirs->removeChildByName("point22"); - - auto newSprite = Sprite::create("Blue_Front1.png"); - newSprite->setPosition(100, 256); - newSprite->setName("sprite14"); - newSprite->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite,1); - - auto pointN = Sprite::create("dot.png"); - pointN->setName("pointN"); - pointN->setPosition(newSprite->getPosition()); - dirs->addChild(pointN,2); - - auto newSpriteSkewX = Sprite::create("Blue_Front1.png"); - newSpriteSkewX->setPosition(250, 256); - newSpriteSkewX->setName("sprite15"); - newSpriteSkewX->setAnchorPoint(Vec2(0.5,0.5)); - newSpriteSkewX->setSkewX(20.0f); - dirs->addChild(newSpriteSkewX,1); - - auto pointX = Sprite::create("dot.png"); - pointX->setName("pointX"); - pointX->setPosition(newSpriteSkewX->getPosition()); - dirs->addChild(pointX,2); - - auto newSpriteSkewY = Sprite::create("Blue_Front1.png"); - newSpriteSkewY->setPosition(400, 256); - newSpriteSkewY->setName("sprite16"); - newSpriteSkewY->setAnchorPoint(Vec2(0.5,0.5)); - newSpriteSkewY->setSkewY(20.0f); - dirs->addChild(newSpriteSkewY,1); - - auto pointY = Sprite::create("dot.png"); - pointY->setName("pointY"); - pointY->setPosition(newSpriteSkewY->getPosition()); - dirs->addChild(pointY,2); - - auto anode = dirs->getChildByName("menuNode"); - auto bnode = anode->getChildByName("menu"); - auto cnode = bnode->getChildByName("menuItem7"); - cnode->setVisible(false); - auto dnode = bnode->getChildByName("menuItem8"); - dnode->setVisible(true); - }); - - auto menuItem8 = MenuItemFont::create("Next: Rotate a Sprite"); - menuItem8->setFontNameObj("Marker Felt.ttf"); - menuItem8->setFontSizeObj(32); - menuItem8->setName("menuItem8"); - menuItem8->setVisible(false); - menuItem8->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem8->setCallback([&](cocos2d::Ref *sender) { - // hide everything else on the screen - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("sprite14"); - dirs->removeChildByName("sprite15"); - dirs->removeChildByName("sprite16"); - dirs->removeChildByName("pointN"); - dirs->removeChildByName("pointX"); - dirs->removeChildByName("pointY"); - - auto newSprite = Sprite::create("Blue_Front1.png"); - newSprite->setPosition(100, 256); - newSprite->setName("sprite17"); - newSprite->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite,1); - - auto point00 = Sprite::create("dot.png"); - point00->setName("point00"); - point00->setPosition(newSprite->getPosition()); - dirs->addChild(point00,2); - - auto newSpriteRotateP20 = Sprite::create("Blue_Front1.png"); - newSpriteRotateP20->setPosition(250, 256); - newSpriteRotateP20->setName("sprite18"); - newSpriteRotateP20->setAnchorPoint(Vec2(0.5,0.5)); - newSpriteRotateP20->setRotation(20.0f); - dirs->addChild(newSpriteRotateP20,1); - - auto pointP20 = Sprite::create("dot.png"); - pointP20->setName("pointP20"); - pointP20->setPosition(newSpriteRotateP20->getPosition()); - dirs->addChild(pointP20,2); - - auto newSpriteRotateN20 = Sprite::create("Blue_Front1.png"); - newSpriteRotateN20->setPosition(400, 256); - newSpriteRotateN20->setName("sprite19"); - newSpriteRotateN20->setAnchorPoint(Vec2(0.5,0.5)); - newSpriteRotateN20->setRotation(-20.0f); - dirs->addChild(newSpriteRotateN20,1); - - auto pointN20 = Sprite::create("dot.png"); - pointN20->setName("pointN20"); - pointN20->setPosition(newSpriteRotateN20->getPosition()); - dirs->addChild(pointN20,2); - - auto newSpriteRotateP60 = Sprite::create("Blue_Front1.png"); - newSpriteRotateP60->setPosition(550, 256); - newSpriteRotateP60->setName("sprite20"); - newSpriteRotateP60->setAnchorPoint(Vec2(0.5,0.5)); - newSpriteRotateP60->setRotation(60.0f); - dirs->addChild(newSpriteRotateP60,1); - - auto pointP60 = Sprite::create("dot.png"); - pointP60->setName("pointP60"); - pointP60->setPosition(newSpriteRotateP60->getPosition()); - dirs->addChild(pointP60,2); - - auto newSpriteRotateN60 = Sprite::create("Blue_Front1.png"); - newSpriteRotateN60->setPosition(700, 256); - newSpriteRotateN60->setName("sprite21"); - newSpriteRotateN60->setAnchorPoint(Vec2(0.5,0.5)); - newSpriteRotateN60->setRotation(-60.0f); - dirs->addChild(newSpriteRotateN60,1); - - auto pointN60 = Sprite::create("dot.png"); - pointN60->setName("pointN60"); - pointN60->setPosition(newSpriteRotateN60->getPosition()); - dirs->addChild(pointN60,2); - - auto anode = dirs->getChildByName("menuNode"); - auto bnode = anode->getChildByName("menu"); - auto cnode = bnode->getChildByName("menuItem8"); - cnode->setVisible(false); - auto dnode = bnode->getChildByName("menuItem9"); - dnode->setVisible(true); - }); - - auto menuItem9 = MenuItemFont::create("Next: Change the Color of a Sprite"); - menuItem9->setFontNameObj("Marker Felt.ttf"); - menuItem9->setFontSizeObj(32); - menuItem9->setName("menuItem9"); - menuItem9->setVisible(false); - menuItem9->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem9->setCallback([&](cocos2d::Ref *sender) { - // hide everything else on the screen - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("sprite18"); - dirs->removeChildByName("sprite19"); - dirs->removeChildByName("sprite20"); - dirs->removeChildByName("sprite21"); - dirs->removeChildByName("point00"); - dirs->removeChildByName("pointP20"); - dirs->removeChildByName("pointN20"); - dirs->removeChildByName("pointP60"); - dirs->removeChildByName("pointN60"); - - auto newSprite = Sprite::create("Blue_Front1.png"); - newSprite->setPosition(100, 256); - newSprite->setName("sprite30"); - newSprite->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite,1); - - auto newSprite2 = Sprite::create("Blue_Front1.png"); - newSprite2->setPosition(200, 256); - newSprite2->setName("sprite31"); - newSprite2->setAnchorPoint(Vec2(0.5,0.5)); - newSprite2->setColor(Color3B(155, 200, 50)); - dirs->addChild(newSprite2,1); - - auto newSprite3 = Sprite::create("Blue_Front1.png"); - newSprite3->setPosition(300, 256); - newSprite3->setName("sprite32"); - newSprite3->setAnchorPoint(Vec2(0.5,0.5)); - newSprite3->setColor(Color3B(10, 230, 100)); - dirs->addChild(newSprite3,1); - - auto newSprite4 = Sprite::create("Blue_Front1.png"); - newSprite4->setPosition(400, 256); - newSprite4->setName("sprite33"); - newSprite4->setAnchorPoint(Vec2(0.5,0.5)); - newSprite4->setColor(Color3B(100, 101, 230)); - dirs->addChild(newSprite4,1); - - auto anode = dirs->getChildByName("menuNode"); - auto bnode = anode->getChildByName("menu"); - auto cnode = bnode->getChildByName("menuItem9"); - cnode->setVisible(false); - auto dnode = bnode->getChildByName("menuItem10"); - dnode->setVisible(true); - }); - - auto menuItem10 = MenuItemFont::create("Next: Change the Color of a Sprite"); - menuItem10->setFontNameObj("Marker Felt.ttf"); - menuItem10->setFontSizeObj(32); - menuItem10->setName("menuItem10"); - menuItem10->setVisible(false); - menuItem10->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem10->setCallback([&](cocos2d::Ref *sender) { - // hide everything else on the screen - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("sprite30"); - dirs->removeChildByName("sprite31"); - dirs->removeChildByName("sprite32"); - dirs->removeChildByName("sprite33"); - - auto newSprite = Sprite::create("Blue_Front1.png"); - newSprite->setPosition(100, 256); - newSprite->setName("sprite34"); - newSprite->setAnchorPoint(Vec2(0.5,0.5)); - newSprite->setOpacity(0.0f); - dirs->addChild(newSprite,1); - - auto newSprite2 = Sprite::create("Blue_Front1.png"); - newSprite2->setPosition(200, 256); - newSprite2->setName("sprite35"); - newSprite2->setAnchorPoint(Vec2(0.5,0.5)); - newSprite2->setOpacity(99); - dirs->addChild(newSprite2,1); - - auto newSprite3 = Sprite::create("Blue_Front1.png"); - newSprite3->setPosition(300, 256); - newSprite3->setName("sprite36"); - newSprite3->setAnchorPoint(Vec2(0.5,0.5)); - newSprite3->setOpacity(89); - dirs->addChild(newSprite3,1); - - auto newSprite4 = Sprite::create("Blue_Front1.png"); - newSprite4->setPosition(400, 256); - newSprite4->setName("sprite37"); - - newSprite4->setAnchorPoint(Vec2(0.5,0.5)); - newSprite4->setOpacity(79); - dirs->addChild(newSprite4,1); - - auto anode = dirs->getChildByName("menuNode"); - auto bnode = anode->getChildByName("menu"); - auto cnode = bnode->getChildByName("menuItem10"); - cnode->setVisible(false); - //auto dnode = bnode->getChildByName("menuItem10"); - //dnode->setVisible(true); - }); - - auto menu = Menu::create(menuItem1, menuItem2, menuItem3, menuItem4, menuItem5, menuItem6, - menuItem7, menuItem8, menuItem9, menuItem10, NULL); - menu->setName("menu"); - menuNode->addChild(menu, 1); - menu->setPosition(Vec2::ZERO); - - scene->addChild(menuNode, 2); - - // return the scene - return scene; -} diff --git a/src/chapter3/Chapter3.h b/src/chapter3/Chapter3.h deleted file mode 100644 index d56056d..0000000 --- a/src/chapter3/Chapter3.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef __CHAPTER3_H__ -#define __CHAPTER3_H__ - -#include "cocos2d.h" - -#include - -USING_NS_CC; - -class Chapter3 : public Ref -{ - public: - static cocos2d::Scene* createScene(); -}; - -#endif // __CHAPTER3_H__ diff --git a/src/chapter4/AppDelegate.cpp b/src/chapter4/AppDelegate.cpp deleted file mode 100644 index e2fb65c..0000000 --- a/src/chapter4/AppDelegate.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "AppDelegate.h" -#include "Chapter4.h" - -USING_NS_CC; - -AppDelegate::AppDelegate() { - -} - -AppDelegate::~AppDelegate() -{ -} - -//if you want a different context,just modify the value of glContextAttrs -//it will takes effect on all platforms -void AppDelegate::initGLContextAttrs() -{ - //set OpenGL context attributions,now can only set six attributions: - //red,green,blue,alpha,depth,stencil - GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8}; - - GLView::setGLContextAttrs(glContextAttrs); -} - -bool AppDelegate::applicationDidFinishLaunching() { - // initialize director - auto director = Director::getInstance(); - auto glview = director->getOpenGLView(); - if(!glview) { - glview = GLViewImpl::create("My Game"); - director->setOpenGLView(glview); - } - - // turn on display FPS - //director->setDisplayStats(true); - - // set FPS. the default value is 1.0/60 if you don't call this - director->setAnimationInterval(1.0 / 60); - - // create a scene. it's an autorelease object - auto scene = Chapter4::createScene(); - - // run - director->runWithScene(scene); - - return true; -} - -// This function will be called when the app is inactive. When comes a phone call,it's be invoked too -void AppDelegate::applicationDidEnterBackground() { - Director::getInstance()->stopAnimation(); - - // if you use SimpleAudioEngine, it must be pause - // SimpleAudioEngine::getInstance()->pauseBackgroundMusic(); -} - -// this function will be called when the app is active again -void AppDelegate::applicationWillEnterForeground() { - Director::getInstance()->startAnimation(); - - // if you use SimpleAudioEngine, it must resume here - // SimpleAudioEngine::getInstance()->resumeBackgroundMusic(); -} diff --git a/src/chapter4/AppDelegate.h b/src/chapter4/AppDelegate.h deleted file mode 100644 index 625506c..0000000 --- a/src/chapter4/AppDelegate.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef _APP_DELEGATE_H_ -#define _APP_DELEGATE_H_ - -#include "cocos2d.h" - -/** -@brief The cocos2d Application. - -The reason for implement as private inheritance is to hide some interface call by Director. -*/ -class AppDelegate : private cocos2d::Application -{ -public: - AppDelegate(); - virtual ~AppDelegate(); - - virtual void initGLContextAttrs(); - - /** - @brief Implement Director and Scene init code here. - @return true Initialize success, app continue. - @return false Initialize failed, app terminate. - */ - virtual bool applicationDidFinishLaunching(); - - /** - @brief The function be called when the application enter background - @param the pointer of the application - */ - virtual void applicationDidEnterBackground(); - - /** - @brief The function be called when the application enter foreground - @param the pointer of the application - */ - virtual void applicationWillEnterForeground(); -}; - -#endif // _APP_DELEGATE_H_ - diff --git a/src/chapter4/Chapter4.cpp b/src/chapter4/Chapter4.cpp deleted file mode 100644 index 6959e8e..0000000 --- a/src/chapter4/Chapter4.cpp +++ /dev/null @@ -1,493 +0,0 @@ -#include "Chapter4.h" - -USING_NS_CC; - -Scene* Chapter4::createScene() -{ - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // some upfront items that we need - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto dirs = Director::getInstance(); - Size visibleSize = dirs->getVisibleSize(); - Vec2 origin = dirs->getVisibleOrigin(); - - Size playingSize = Size(visibleSize.width, visibleSize.height - (visibleSize.height/8)); // actual playing size to work with - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto scene = Scene::create(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold non-sprites. - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto nodeItems = Node::create(); - nodeItems->setName("nodeItems"); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold menu - // create a menu - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto menuNode = Node::create(); - menuNode->setName("menuNode"); - int index = 2; - - auto menuItem1 = MenuItemFont::create("First: Create a Sprite"); - menuItem1->setFontNameObj("Marker Felt.ttf"); - menuItem1->setFontSizeObj(32); - menuItem1->setName("menuItem1"); - menuItem1->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem1->setCallback([&](Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("point2"); // old one - dirs->removeChildByName("point3"); // old one - - auto newSprite = Sprite::create("Blue_Front1.png"); - newSprite->setPosition(100, 56); - newSprite->setName("sprite1"); - newSprite->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite,1); - - auto point1 = Sprite::create("dot.png"); - point1->setName("point1"); - point1->setPosition(newSprite->getPosition()); - dirs->addChild(point1,2); - - auto newSprite2 = Sprite::create("Blue_Front1.png"); - newSprite2->setPosition(100, 56); - newSprite2->setName("sprite2"); - newSprite2->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite2,1); - - auto anode = dirs->getChildByName("menuNode"); - auto bnode = anode->getChildByName("menu"); - auto cnode = bnode->getChildByName("menuItem1"); - cnode->setVisible(false); - cnode = bnode->getChildByName("menuItem2"); - cnode->setVisible(true); - cnode = bnode->getChildByName("menuItem3"); - cnode->setVisible(true); - cnode = bnode->getChildByName("menuItem4"); - cnode->setVisible(true); - cnode = bnode->getChildByName("menuItem5"); - cnode->setVisible(true); - cnode = bnode->getChildByName("menuItem6"); - cnode->setVisible(true); - cnode = bnode->getChildByName("menuItem7"); - cnode->setVisible(true); - cnode = bnode->getChildByName("menuItem8"); - cnode->setVisible(true); - cnode = bnode->getChildByName("menuItem9"); - cnode->setVisible(true); - cnode = bnode->getChildByName("menuItem10"); - cnode->setVisible(true); - cnode = bnode->getChildByName("menuItem11"); - cnode->setVisible(true); - }); - - auto menuItem2 = MenuItemFont::create("MoveTo/MoveBy"); - menuItem2->setFontNameObj("Marker Felt.ttf"); - menuItem2->setFontSizeObj(32); - menuItem2->setName("menuItem2"); - menuItem2->setVisible(false); - menuItem2->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - menuItem2->setCallback([&](Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("sprite2"); // the old one - dirs->removeChildByName("sprite3"); // the old one - dirs->removeChildByName("point2"); // the old one - dirs->removeChildByName("point3"); // the old one - - auto newSprite2 = Sprite::create("Blue_Front1.png"); - newSprite2->setPosition(100, 56); - newSprite2->setName("sprite2"); - newSprite2->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite2,1); - - auto moveBy = MoveBy::create(2, Point(500, 0)); - - auto moveTo = MoveTo::create(2, Point(300, 56)); - - auto delay = DelayTime::create(2.0f); - - auto sequence = Sequence::create(moveBy, delay, NULL); - auto sequence2 = Sequence::create(delay, moveTo, NULL); - - newSprite2->runAction(sequence); - - auto newSprite3 = Sprite::create("Blue_Front1.png"); - newSprite3->setPosition(600, 56); - newSprite3->setName("sprite3"); - newSprite3->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite3,1); - - newSprite3->runAction(sequence2); - }); - - auto menuItem3 = MenuItemFont::create("FadeIn/FadeOut"); - menuItem3->setFontNameObj("Marker Felt.ttf"); - menuItem3->setFontSizeObj(32); - menuItem3->setName("menuItem3"); - menuItem3->setVisible(false); - menuItem3->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - menuItem3->setCallback([&](Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("sprite2"); // the old one - dirs->removeChildByName("sprite3"); // the old one - dirs->removeChildByName("point2"); // the old one - dirs->removeChildByName("point3"); // the old one - - auto newSprite2 = Sprite::create("Blue_Front1.png"); - newSprite2->setPosition(300, 56); - newSprite2->setName("sprite2"); - newSprite2->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite2,1); - - auto fadeIn = FadeIn::create(1.0f); - newSprite2->runAction(fadeIn); - - auto newSprite3 = Sprite::create("Blue_Front1.png"); - newSprite3->setPosition(500, 56); - newSprite3->setName("sprite3"); - newSprite3->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite3,1); - - auto fadeOut = FadeOut::create(2.0f); - newSprite3->runAction(fadeOut); - }); - - auto menuItem11 = MenuItemFont::create("Animate"); - menuItem11->setFontNameObj("Marker Felt.ttf"); - menuItem11->setFontSizeObj(32); - menuItem11->setName("menuItem11"); - menuItem11->setVisible(false); - menuItem11->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - menuItem11->setCallback([&](Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("sprite2"); // the old one - dirs->removeChildByName("sprite3"); // the old one - dirs->removeChildByName("point2"); // the old one - dirs->removeChildByName("point3"); // the old one - - auto newSprite2 = Sprite::create("Blue_Front1.png"); - newSprite2->setPosition(300, 56); - newSprite2->setName("sprite2"); - newSprite2->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite2,1); - - auto moveBy = MoveBy::create(2.0f, Vec2(500, 0)); - - newSprite2->runAction(moveBy); - - // now lets animate the sprite we moved - Vector animFrames; - animFrames.reserve(12); - animFrames.pushBack(SpriteFrame::create("Blue_Front1.png", Rect(0,0,65,81))); - animFrames.pushBack(SpriteFrame::create("Blue_Front2.png", Rect(0,0,65,81))); - animFrames.pushBack(SpriteFrame::create("Blue_Front3.png", Rect(0,0,65,81))); - animFrames.pushBack(SpriteFrame::create("Blue_Left1.png", Rect(0,0,65,81))); - animFrames.pushBack(SpriteFrame::create("Blue_Left2.png", Rect(0,0,65,81))); - animFrames.pushBack(SpriteFrame::create("Blue_Left3.png", Rect(0,0,65,81))); - animFrames.pushBack(SpriteFrame::create("Blue_Back1.png", Rect(0,0,65,81))); - animFrames.pushBack(SpriteFrame::create("Blue_Back2.png", Rect(0,0,65,81))); - animFrames.pushBack(SpriteFrame::create("Blue_Back3.png", Rect(0,0,65,81))); - animFrames.pushBack(SpriteFrame::create("Blue_Right1.png", Rect(0,0,65,81))); - animFrames.pushBack(SpriteFrame::create("Blue_Right2.png", Rect(0,0,65,81))); - animFrames.pushBack(SpriteFrame::create("Blue_Right3.png", Rect(0,0,65,81))); - - // create the animation out of the frames - Animation* animation = Animation::createWithSpriteFrames(animFrames, 0.1f); - Animate* animate = Animate::create(animation); - - // run it and repeat it forever - newSprite2->runAction(RepeatForever::create(animate)); - }); - - auto menuItem4 = MenuItemFont::create("RotateTo/RotateBy"); - menuItem4->setFontNameObj("Marker Felt.ttf"); - menuItem4->setFontSizeObj(32); - menuItem4->setName("menuItem4"); - menuItem4->setVisible(false); - menuItem4->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - menuItem4->setCallback([&](Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("sprite2"); // the old one - dirs->removeChildByName("sprite3"); // the old one - dirs->removeChildByName("point2"); // the old one - dirs->removeChildByName("point3"); // the old one - - auto newSprite2 = Sprite::create("Blue_Front1.png"); - newSprite2->setPosition(300, 56); - newSprite2->setName("sprite2"); - newSprite2->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite2,1); - - auto point2 = Sprite::create("dot.png"); - point2->setName("point2"); - point2->setPosition(newSprite2->getPosition()); - dirs->addChild(point2,2); - - auto newSprite3 = Sprite::create("Blue_Front1.png"); - newSprite3->setPosition(500, 56); - newSprite3->setName("sprite3"); - newSprite3->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite3,1); - - auto point3 = Sprite::create("dot.png"); - point3->setName("point3"); - point3->setPosition(newSprite3->getPosition()); - dirs->addChild(point3,2); - - auto rotateTo = RotateTo::create(2.0f, 40.0f); - newSprite2->runAction(rotateTo); - - auto rotateBy = RotateBy::create(2.0f, -20.0f); - newSprite3->runAction(rotateBy); - }); - - auto menuItem5 = MenuItemFont::create("ScaleTo/ScaleBy"); - menuItem5->setFontNameObj("Marker Felt.ttf"); - menuItem5->setFontSizeObj(32); - menuItem5->setName("menuItem5"); - menuItem5->setVisible(false); - menuItem5->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - menuItem5->setCallback([&](Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("sprite2"); // the old one - dirs->removeChildByName("sprite3"); // the old one - dirs->removeChildByName("point2"); // the old one - dirs->removeChildByName("point3"); // the old one - - dirs->getChildByName("sprite1")->setPosition(100, 100); - - auto newSprite2 = Sprite::create("Blue_Front1.png"); - newSprite2->setPosition(300, 100); - newSprite2->setName("sprite2"); - newSprite2->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite2,1); - - auto point2 = Sprite::create("dot.png"); - point2->setName("point2"); - point2->setPosition(newSprite2->getPosition()); - dirs->addChild(point2,2); - - auto scaleTo = ScaleTo::create(2.0f, 2.0f); - newSprite2->runAction(scaleTo); - - auto newSprite3 = Sprite::create("Blue_Front1.png"); - newSprite3->setPosition(500, 56); - newSprite3->setName("sprite3"); - newSprite3->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite3,1); - - auto point3 = Sprite::create("dot.png"); - point3->setName("point3"); - point3->setPosition(newSprite3->getPosition()); - dirs->addChild(point3,2); - - auto scaleBy = ScaleBy::create(2.0f, 0.5f); - newSprite3->runAction(scaleBy); - - dirs->getChildByName("sprite1")->setPosition(100, 56); - }); - - auto menuItem6 = MenuItemFont::create("TintTo/TintBy"); - menuItem6->setFontNameObj("Marker Felt.ttf"); - menuItem6->setFontSizeObj(32); - menuItem6->setName("menuItem6"); - menuItem6->setVisible(false); - menuItem6->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - menuItem6->setCallback([&](Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("sprite2"); // the old one - dirs->removeChildByName("sprite3"); // the old one - dirs->getChildByName("point1")->setVisible(false); // the old one - dirs->removeChildByName("point2"); // the old one - dirs->removeChildByName("point3"); // the old one - - auto newSprite2 = Sprite::create("Blue_Front1.png"); - newSprite2->setPosition(300, 56); - newSprite2->setName("sprite2"); - newSprite2->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite2,1); - - auto tintTo = TintTo::create(2.0f, 120.0f, 232.0f, 254.0f); - newSprite2->runAction(tintTo); - - auto newSprite3 = Sprite::create("Blue_Front1.png"); - newSprite3->setPosition(500, 56); - newSprite3->setName("sprite3"); - newSprite3->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite3,1); - - auto tintBy = TintBy::create(2.0f, 30.0f, 0, 0); - newSprite3->runAction(tintBy); - }); - - auto menuItem7 = MenuItemFont::create("Ease"); - menuItem7->setFontNameObj("Marker Felt.ttf"); - menuItem7->setFontSizeObj(32); - menuItem7->setName("menuItem7"); - menuItem7->setVisible(false); - menuItem7->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - menuItem7->setCallback([&](Ref *sender) { - auto dirs = Director::getInstance(); - dirs->getRunningScene()->getChildByName("point1")->setVisible(true); - dirs->getRunningScene()->removeChildByName("sprite2"); // the old one - dirs->getRunningScene()->removeChildByName("sprite3"); // the old one - dirs->getRunningScene()->removeChildByName("point2"); // the old one - dirs->getRunningScene()->removeChildByName("point3"); // the old one - - auto newSprite2 = Sprite::create("Blue_Front1.png"); - newSprite2->setPosition(100, 56); - newSprite2->setName("sprite2"); - newSprite2->setAnchorPoint(Vec2(0.5,0.5)); - dirs->getRunningScene()->addChild(newSprite2,1); - -// auto newSprite3 = Sprite::create("White_Front1.png"); -// newSprite3->setPosition(100, 56); -// newSprite3->setName("sprite3"); -// newSprite3->setAnchorPoint(Vec2(0.5,0.5)); -// dirs->addChild(newSprite3,1); -// - auto move = MoveBy::create(2, Point(200, dirs->getVisibleSize().height - newSprite2->getContentSize().height)); - auto move_back = move->reverse(); - - auto move_ease_in = EaseBounceIn::create(move->clone() ); - auto move_ease_in_back = move_ease_in->reverse(); - - auto move_ease_out = EaseBounceOut::create(move->clone() ); - auto move_ease_out_back = move_ease_out->reverse(); - - auto delay = DelayTime::create(0.25f); - - auto seq1 = Sequence::create(move_ease_in, delay, move_ease_in_back, delay->clone(), nullptr); - - newSprite2->runAction(RepeatForever::create(seq1)); - }); - - auto menuItem8 = MenuItemFont::create("Sequence"); - menuItem8->setFontNameObj("Marker Felt.ttf"); - menuItem8->setFontSizeObj(32); - menuItem8->setName("menuItem8"); - menuItem8->setVisible(false); - menuItem8->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - menuItem8->setCallback([&](Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("sprite2"); // the old one - dirs->removeChildByName("sprite3"); // the old one - dirs->removeChildByName("point2"); // the old one - dirs->removeChildByName("point3"); // the old one - - auto newSprite2 = Sprite::create("Blue_Front1.png"); - newSprite2->setPosition(100, 56); - newSprite2->setName("sprite2"); - newSprite2->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite2,1); - - // create a few actions. - auto jump = JumpBy::create(0.5, Point(0, 0), 100, 1); - - auto rotate = RotateTo::create(2.0f, 10); - - // create a few callbacks - auto callbackJump = CallFunc::create([](){ - log("Jumped!"); - }); - - auto callbackRotate = CallFunc::create([](){ - log("Rotated!"); - }); - - // create a sequence with the actions and callbacks - auto seq = Sequence::create(jump, callbackJump, rotate, callbackRotate, nullptr); - - newSprite2->runAction(RepeatForever::create(seq)); - }); - - auto menuItem9 = MenuItemFont::create("Spawn"); - menuItem9->setFontNameObj("Marker Felt.ttf"); - menuItem9->setFontSizeObj(32); - menuItem9->setName("menuItem9"); - menuItem9->setVisible(false); - menuItem9->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - menuItem9->setCallback([&](Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("sprite2"); // the old one - dirs->removeChildByName("sprite3"); // the old one - dirs->removeChildByName("point2"); // the old one - dirs->removeChildByName("point3"); // the old one - - auto newSprite2 = Sprite::create("Blue_Front1.png"); - newSprite2->setPosition(100, 56); - newSprite2->setName("sprite2"); - newSprite2->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite2,1); - - // create a few actions - auto moveBy = MoveBy::create(10, Point(400,100)); - auto fadeTo = FadeTo::create(2.0f, 120.0f); - - // running the above Actions with Spawn. - auto mySpawn = Spawn::createWithTwoActions(moveBy, fadeTo); - newSprite2->runAction(mySpawn); - }); - - auto menuItem10 = MenuItemFont::create("Reverse"); - menuItem10->setFontNameObj("Marker Felt.ttf"); - menuItem10->setFontSizeObj(32); - menuItem10->setName("menuItem10"); - menuItem10->setVisible(false); - menuItem10->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - menuItem10->setCallback([&](Ref *sender) { - auto dirs = Director::getInstance()->getRunningScene(); - dirs->removeChildByName("sprite2"); // the old one - dirs->removeChildByName("sprite3"); // the old one - dirs->removeChildByName("point2"); // the old one - dirs->removeChildByName("point3"); // the old one - - auto newSprite2 = Sprite::create("Blue_Front1.png"); - newSprite2->setPosition(100, 56); - newSprite2->setName("sprite2"); - newSprite2->setAnchorPoint(Vec2(0.5,0.5)); - dirs->addChild(newSprite2,1); - - // create a few Actions - auto moveBy = MoveBy::create(2.0f, Point(500,0)); - auto scaleBy = ScaleBy::create(2.0f, 2.0f); - auto delay = DelayTime::create(1.0f); - - // create a sequence - auto delaySequence = Sequence::create(delay, delay->clone(), delay->clone(), delay->clone(), nullptr); - - auto sequence = Sequence::create(moveBy, delay, scaleBy, delaySequence, nullptr); - - newSprite2->runAction(sequence); - - newSprite2->runAction(sequence->reverse()); - }); - - auto menu = Menu::create(menuItem1, menuItem2, menuItem3, menuItem4, menuItem5, - menuItem6, menuItem7, menuItem8, menuItem9, menuItem10, - menuItem11, NULL); - menu->setName("menu"); - menuNode->addChild(menu, 1); - menu->setPosition(Vec2::ZERO); - - scene->addChild(menuNode, 2); - - // return the scene - return scene; -} diff --git a/src/chapter4/Chapter4.h b/src/chapter4/Chapter4.h deleted file mode 100644 index bf0f972..0000000 --- a/src/chapter4/Chapter4.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef __CHAPTER4_H__ -#define __CHAPTER4_H__ - -#include "cocos2d.h" - -#include - -USING_NS_CC; - -class Chapter4 : public Ref -{ - public: - static cocos2d::Scene* createScene(); -}; - -#endif // __CHAPTER4_H__ diff --git a/src/chapter5/AppDelegate.cpp b/src/chapter5/AppDelegate.cpp deleted file mode 100644 index 3b05649..0000000 --- a/src/chapter5/AppDelegate.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "AppDelegate.h" -#include "Chapter5.h" - -USING_NS_CC; - -AppDelegate::AppDelegate() { - -} - -AppDelegate::~AppDelegate() -{ -} - -//if you want a different context,just modify the value of glContextAttrs -//it will takes effect on all platforms -void AppDelegate::initGLContextAttrs() -{ - //set OpenGL context attributions,now can only set six attributions: - //red,green,blue,alpha,depth,stencil - GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8}; - - GLView::setGLContextAttrs(glContextAttrs); -} - -bool AppDelegate::applicationDidFinishLaunching() { - // initialize director - auto director = Director::getInstance(); - auto glview = director->getOpenGLView(); - if(!glview) { - glview = GLViewImpl::create("My Game"); - director->setOpenGLView(glview); - } - - // turn on display FPS - //director->setDisplayStats(true); - - // set FPS. the default value is 1.0/60 if you don't call this - director->setAnimationInterval(1.0 / 60); - - // create a scene. it's an autorelease object - auto chapter5 = Chapter5(); - - // run - director->runWithScene(chapter5.getScene1()); - - return true; -} - -// This function will be called when the app is inactive. When comes a phone call,it's be invoked too -void AppDelegate::applicationDidEnterBackground() { - Director::getInstance()->stopAnimation(); - - // if you use SimpleAudioEngine, it must be pause - // SimpleAudioEngine::getInstance()->pauseBackgroundMusic(); -} - -// this function will be called when the app is active again -void AppDelegate::applicationWillEnterForeground() { - Director::getInstance()->startAnimation(); - - // if you use SimpleAudioEngine, it must resume here - // SimpleAudioEngine::getInstance()->resumeBackgroundMusic(); -} diff --git a/src/chapter5/AppDelegate.h b/src/chapter5/AppDelegate.h deleted file mode 100644 index 625506c..0000000 --- a/src/chapter5/AppDelegate.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef _APP_DELEGATE_H_ -#define _APP_DELEGATE_H_ - -#include "cocos2d.h" - -/** -@brief The cocos2d Application. - -The reason for implement as private inheritance is to hide some interface call by Director. -*/ -class AppDelegate : private cocos2d::Application -{ -public: - AppDelegate(); - virtual ~AppDelegate(); - - virtual void initGLContextAttrs(); - - /** - @brief Implement Director and Scene init code here. - @return true Initialize success, app continue. - @return false Initialize failed, app terminate. - */ - virtual bool applicationDidFinishLaunching(); - - /** - @brief The function be called when the application enter background - @param the pointer of the application - */ - virtual void applicationDidEnterBackground(); - - /** - @brief The function be called when the application enter foreground - @param the pointer of the application - */ - virtual void applicationWillEnterForeground(); -}; - -#endif // _APP_DELEGATE_H_ - diff --git a/src/chapter5/Chapter5.cpp b/src/chapter5/Chapter5.cpp deleted file mode 100644 index 6a68f79..0000000 --- a/src/chapter5/Chapter5.cpp +++ /dev/null @@ -1,166 +0,0 @@ -#include "Chapter5.h" - -USING_NS_CC; - -Chapter5::Chapter5() -{ - initialize(); -} - -Chapter5::~Chapter5() { } - -void Chapter5::initialize() -{ - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // some upfront items that we need - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto dirs = Director::getInstance(); - Size visibleSize = dirs->getVisibleSize(); - Vec2 origin = dirs->getVisibleOrigin(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - scene1 = Scene::create(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold non-sprites. - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto nodeItems = Node::create(); - nodeItems->setName("nodeItems"); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a node to hold menu - // create a menu - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto menuNode = Node::create(); - menuNode->setName("menuNode"); - int index = 2; - - auto thisSceneLabel = Label::createWithTTF("This Is A Scene", "Marker Felt.ttf", 32); - thisSceneLabel->setPosition(Vec2(visibleSize.width/2, visibleSize.height/2)); - scene1->addChild(thisSceneLabel, 1); - - auto menuItem1 = MenuItemFont::create("Make A New Scene"); - menuItem1->setFontNameObj("Marker Felt.ttf"); - menuItem1->setFontSizeObj(32); - menuItem1->setName("menuItem1"); - menuItem1->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem1->setCallback([&](cocos2d::Ref *sender) { - - Director::getInstance()->replaceScene(createScene2()); - }); - - auto menu = Menu::create(menuItem1, NULL); - menu->setName("menu"); - menuNode->addChild(menu, 1); - menu->setPosition(Vec2::ZERO); - - scene1->addChild(menuNode, 2); -} - -Scene* Chapter5::createScene2() -{ - auto dirs = Director::getInstance(); - Size visibleSize = dirs->getVisibleSize(); - Vec2 origin = dirs->getVisibleOrigin(); - - scene2 = Scene::create(); - scene2->retain(); - - auto nodeItems = Node::create(); - nodeItems->setName("nodeItems"); - - auto menuNode = Node::create(); - menuNode->setName("menuNode"); - int index = 2; - - auto thisSceneLabel = Label::createWithTTF("This Is A New Scene", "Marker Felt.ttf", 32); - thisSceneLabel->setPosition(Vec2(visibleSize.width/2, visibleSize.height/2)); - scene2->addChild(thisSceneLabel, 1); - - auto menuItem1 = MenuItemFont::create("Make a New Scene Using a Transition Fade"); - menuItem1->setFontNameObj("Marker Felt.ttf"); - menuItem1->setFontSizeObj(32); - menuItem1->setName("menuItem1"); - menuItem1->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem1->setCallback([&](cocos2d::Ref *sender) { - - Director::getInstance()->replaceScene(TransitionFade::create(0.5, createScene3(), Color3B(0,255,255))); - }); - - auto menu = Menu::create(menuItem1, NULL); - menu->setName("menu"); - menuNode->addChild(menu, 1); - menu->setPosition(Vec2::ZERO); - - scene2->addChild(menuNode, 2); - - return scene2; -} - -Scene* Chapter5::createScene3() -{ - auto dirs = Director::getInstance(); - Size visibleSize = dirs->getVisibleSize(); - Vec2 origin = dirs->getVisibleOrigin(); - - scene3 = Scene::create(); - scene3->retain(); - - auto nodeItems = Node::create(); - nodeItems->setName("nodeItems"); - - auto menuNode = Node::create(); - menuNode->setName("menuNode"); - int index = 2; - - auto thisSceneLabel = Label::createWithTTF("This Scene used a Transition!", "Marker Felt.ttf", 32); - thisSceneLabel->setPosition(Vec2(visibleSize.width/2, visibleSize.height/2)); - scene3->addChild(thisSceneLabel, 1); - - auto menuItem1 = MenuItemFont::create("Make a New Scene Using a Flip"); - menuItem1->setFontNameObj("Marker Felt.ttf"); - menuItem1->setFontSizeObj(32); - menuItem1->setName("menuItem1"); - menuItem1->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (index) * 40)); - menuItem1->setCallback([&](cocos2d::Ref *sender) { - - Director::getInstance()->replaceScene(TransitionFlipX::create(2, createScene4())); - }); - - auto menu = Menu::create(menuItem1, NULL); - menu->setName("menu"); - menuNode->addChild(menu, 1); - menu->setPosition(Vec2::ZERO); - - scene3->addChild(menuNode, 2); - - return scene3; -} - -Scene* Chapter5::createScene4() -{ - auto dirs = Director::getInstance(); - Size visibleSize = dirs->getVisibleSize(); - Vec2 origin = dirs->getVisibleOrigin(); - - scene4 = Scene::create(); - scene4->retain(); - - auto nodeItems = Node::create(); - nodeItems->setName("nodeItems"); - - auto menuNode = Node::create(); - menuNode->setName("menuNode"); - - auto thisSceneLabel = Label::createWithTTF("This Scene used a Flip!", "Marker Felt.ttf", 32); - thisSceneLabel->setPosition(Vec2(visibleSize.width/2, visibleSize.height/2)); - scene4->addChild(thisSceneLabel, 1); - - return scene4; -} diff --git a/src/chapter5/Chapter5.h b/src/chapter5/Chapter5.h deleted file mode 100644 index d59edba..0000000 --- a/src/chapter5/Chapter5.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef __CHAPTER5_H__ -#define __CHAPTER5_H__ - -#include "cocos2d.h" - -USING_NS_CC; - -class Chapter5 : public Ref -{ - public: - Chapter5(); - ~Chapter5(); - - void initialize(); - Scene* createScene2(); - Scene* createScene3(); - Scene* createScene4(); - - inline Scene* getScene1(){ return scene1; }; - - protected: - Scene* scene1; - Scene* scene2; - Scene* scene3; - Scene* scene4; - -}; - -#endif // __CHAPTER5_H__ diff --git a/src/chapter6/AppDelegate.cpp b/src/chapter6/AppDelegate.cpp deleted file mode 100644 index d26611f..0000000 --- a/src/chapter6/AppDelegate.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "AppDelegate.h" -#include "Chapter6.h" - -USING_NS_CC; - -AppDelegate::AppDelegate() { - -} - -AppDelegate::~AppDelegate() -{ -} - -//if you want a different context,just modify the value of glContextAttrs -//it will takes effect on all platforms -void AppDelegate::initGLContextAttrs() -{ - //set OpenGL context attributions,now can only set six attributions: - //red,green,blue,alpha,depth,stencil - GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8}; - - GLView::setGLContextAttrs(glContextAttrs); -} - -bool AppDelegate::applicationDidFinishLaunching() { - // initialize director - auto director = Director::getInstance(); - auto glview = director->getOpenGLView(); - if(!glview) { - glview = GLViewImpl::create("My Game"); - director->setOpenGLView(glview); - } - - // turn on display FPS - //director->setDisplayStats(true); - - // set FPS. the default value is 1.0/60 if you don't call this - director->setAnimationInterval(1.0 / 60); - - // create a scene. it's an autorelease object - auto scene = Chapter6::createScene(); - - // run - director->runWithScene(scene); - - return true; -} - -// This function will be called when the app is inactive. When comes a phone call,it's be invoked too -void AppDelegate::applicationDidEnterBackground() { - Director::getInstance()->stopAnimation(); - - // if you use SimpleAudioEngine, it must be pause - // SimpleAudioEngine::getInstance()->pauseBackgroundMusic(); -} - -// this function will be called when the app is active again -void AppDelegate::applicationWillEnterForeground() { - Director::getInstance()->startAnimation(); - - // if you use SimpleAudioEngine, it must resume here - // SimpleAudioEngine::getInstance()->resumeBackgroundMusic(); -} diff --git a/src/chapter6/AppDelegate.h b/src/chapter6/AppDelegate.h deleted file mode 100644 index 15e3773..0000000 --- a/src/chapter6/AppDelegate.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef _CHAPTER6_DELEGATE_H_ -#define _CHAPTER6_DELEGATE_H_ - -#include "cocos2d.h" - -/** -@brief The cocos2d Application. - -The reason for implement as private inheritance is to hide some interface call by Director. -*/ -class AppDelegate : private cocos2d::Application -{ -public: - AppDelegate(); - virtual ~AppDelegate(); - - virtual void initGLContextAttrs(); - - /** - @brief Implement Director and Scene init code here. - @return true Initialize success, app continue. - @return false Initialize failed, app terminate. - */ - virtual bool applicationDidFinishLaunching(); - - /** - @brief The function be called when the application enter background - @param the pointer of the application - */ - virtual void applicationDidEnterBackground(); - - /** - @brief The function be called when the application enter foreground - @param the pointer of the application - */ - virtual void applicationWillEnterForeground(); -}; - -#endif // _CHAPTER6_DELEGATE_H_ - diff --git a/src/chapter6/Chapter6.cpp b/src/chapter6/Chapter6.cpp deleted file mode 100644 index 259d86b..0000000 --- a/src/chapter6/Chapter6.cpp +++ /dev/null @@ -1,178 +0,0 @@ -#include "Chapter6.h" -#include "Chapter6_1.h" -#include "Chapter6_2.h" -#include "Chapter6_3.h" -#include "Chapter6_4.h" -#include "Chapter6_5.h" -#include "Chapter6_6.h" -#include "Chapter6_7.h" - -USING_NS_CC; - -Scene* Chapter6::createScene() -{ - // 'scene' is an autorelease object - auto scene = Scene::create(); - - // 'layer' is an autorelease object - auto layer = Chapter6::create(); - - // add layer as a child to scene - scene->addChild(layer); - - // return the scene - return scene; -} - -// on "init" you need to initialize your instance -bool Chapter6::init() -{ - ////////////////////////////// - // 1. super init first - if ( !Node::init() ) - { - return false; - } - - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - ///////////////////////////// - // 2. add a menu item with "X" image, which is clicked to quit the program - // you may modify it. - - // add a "close" icon to exit the progress. it's an autorelease object - auto closeItem = MenuItemImage::create( - "CloseNormal.png", - "CloseSelected.png", - CC_CALLBACK_1(Chapter6::onMenuCloseCallback, this)); - - closeItem->setPosition(Vec2(origin.x + visibleSize.width - closeItem->getContentSize().width/2 , - origin.y + closeItem->getContentSize().height/2)); - - // create menu, it's an autorelease object - auto closemenu = Menu::create(closeItem, NULL); - closemenu->setPosition(Vec2::ZERO); - this->addChild(closemenu, 1); - - // Create a Label to identify the sample - auto label = LabelTTF::create("Chapter 6", "Marker Felt.ttf", 32); - - // position the label on the center of the screen - label->setPosition(Vec2(origin.x + visibleSize.width/2, - origin.y + visibleSize.height - label->getContentSize().height)); - - // add the label as a child to this layer - this->addChild(label, 1); - - ///////////////////////////// - // 3. add main menu - auto mainmenu = Menu::create(); - int index = 2; - - // Label - auto itemlabel = LabelTTF::create("Label", "Marker Felt.ttf", 32); - auto menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter6_1::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - // Menu and Menu Items - itemlabel = LabelTTF::create("Menu and Menu Items", "Marker Felt.ttf", 32); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter6_2::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - // Button - itemlabel = LabelTTF::create("Button", "Marker Felt.ttf", 32); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter6_3::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - - // Checkbox - itemlabel = LabelTTF::create("CheckBox", "Marker Felt.ttf", 32); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter6_4::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - // LoadingBar - itemlabel = LabelTTF::create("LoadingBar", "Marker Felt.ttf", 32); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter6_5::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - // Slider - itemlabel = LabelTTF::create("Slider", "Marker Felt.ttf", 32); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter6_6::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - // TextField - itemlabel = LabelTTF::create("TextField", "Marker Felt.ttf", 32); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter6_7::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - - // add main menu - mainmenu->setPosition(Vec2::ZERO); - this->addChild(mainmenu, 1); - - - - return true; -} - -void Chapter6::onMenuCloseCallback(Ref* sender) -{ -#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT) - MessageBox("You pressed the close button. Windows Store Apps do not implement a close button.","Alert"); - return; -#endif - - Director::getInstance()->end(); - -#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) - exit(0); -#endif -} diff --git a/src/chapter6/Chapter6.h b/src/chapter6/Chapter6.h deleted file mode 100644 index 00ff827..0000000 --- a/src/chapter6/Chapter6.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef __CHAPTER6_H__ -#define __CHAPTER6_H__ - -#include "cocos2d.h" - -USING_NS_CC; - -class Chapter6 : public Node -{ -public: - // there's no 'id' in cpp, so we recommend returning the class instance pointer - static Scene* createScene(); - - virtual bool init(); - - // a selector callback - void onMenuCloseCallback(Ref* sender); - - // implement the "static create()" method manually - CREATE_FUNC(Chapter6); -}; - -#endif // __CHAPTER6_H__ diff --git a/src/chapter6/Chapter6_1.cpp b/src/chapter6/Chapter6_1.cpp deleted file mode 100644 index bc03f97..0000000 --- a/src/chapter6/Chapter6_1.cpp +++ /dev/null @@ -1,107 +0,0 @@ -#include "Chapter6_1.h" -#include "Chapter6.h" - -USING_NS_CC; - -Scene* Chapter6_1::createScene() -{ - cocos2d::Rect visibleRect = Director::getInstance()->getOpenGLView()->getVisibleRect(); - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - int index=2; - - // create a scene - auto scene = Scene::create(); - - auto layer = LayerColor::create(Color4B::GRAY); - scene->addChild(layer); - - // add title - auto label = LabelTTF::create("Label", "Marker Felt.ttf", 32); - label->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height/2).x, - Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Marker Felt.ttf", 32); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter6::createScene()); - }); - - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition(Vec2::ZERO); - menuItem->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width - 80, visibleRect.origin.y + 25)); - scene->addChild(menu, 1); - - // this is for Labels section of the Programmers Guide - - // 1. BMFont - auto myLabel = Label::createWithBMFont("bitmapRed.fnt", "LabelBMFont"); - myLabel->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - scene->addChild(myLabel, 1); - - // 2. LabelTTF - auto myLabel2 = Label::createWithTTF("LabelTTF", "Marker Felt.ttf", 32); - myLabel2->setColor(Color3B::RED); - myLabel2->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - scene->addChild(myLabel2, 1); - - // 3. LabelTTF with TTFConfig - - // create a TTFConfig files for labels to share - TTFConfig labelConfig; - labelConfig.fontFilePath = "Marker Felt.ttf"; - labelConfig.fontSize = 32; - - auto myLabel3 = Label::createWithTTF(labelConfig, "LabelTTF from TTFConfig"); - myLabel3->setColor(Color3B::RED); - myLabel3->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - scene->addChild(myLabel3, 1); - - // 4. Label using SystemFont - auto myLabel4 = Label::createWithSystemFont("Label using SystemFont", "Arial", 32); - myLabel4->setColor(Color3B::RED); - myLabel4->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - scene->addChild(myLabel4, 1); - - // 5. LabelTTF with shadow, outline and glow - auto myLabel5 = Label::createWithTTF("LabelTTF with Shadow", "Marker Felt.ttf", 32); - myLabel5->enableShadow(); - myLabel5->setColor(Color3B::RED); - myLabel5->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - scene->addChild(myLabel5, 1); - - auto myLabel6 = Label::createWithTTF("LabelTTF with Outline", "Marker Felt.ttf", 32); - myLabel6->setTextColor(Color4B::RED); - //setColor will change the color of the whole label with effects as if 3.4 -// myLabel6->setColor(Color3B::RED); - myLabel6->enableOutline(Color4B::WHITE, 1); - myLabel6->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - scene->addChild(myLabel6, 1); - - auto myLabel7 = Label::createWithTTF("LabelTTF with Glow", "Marker Felt.ttf", 32); - myLabel7->enableGlow(Color4B::YELLOW); - myLabel7->setTextColor(Color4B::RED); - myLabel7->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - scene->addChild(myLabel7, 1); - - // return the scene - return scene; -} diff --git a/src/chapter6/Chapter6_1.h b/src/chapter6/Chapter6_1.h deleted file mode 100644 index 4a5c28e..0000000 --- a/src/chapter6/Chapter6_1.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef __CHAPTER_6_1_H__ -#define __CHAPTER_6_1_H__ - -#include "cocos2d.h" - -USING_NS_CC; - -class Chapter6_1 : public Ref -{ - public: - static Scene* createScene(); -}; - -#endif // __CHAPTER_6_1_H__ diff --git a/src/chapter6/Chapter6_2.cpp b/src/chapter6/Chapter6_2.cpp deleted file mode 100644 index 58cddb8..0000000 --- a/src/chapter6/Chapter6_2.cpp +++ /dev/null @@ -1,77 +0,0 @@ -#include "Chapter6_2.h" -#include "Chapter6.h" - -USING_NS_CC; - -Scene* Chapter6_2::createScene() -{ - cocos2d::Rect visibleRect = Director::getInstance()->getOpenGLView()->getVisibleRect(); - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - int index=2; - - // create a scene - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("Menu and MenuItem", "Marker Felt.ttf", 32); - label->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height/2).x, - Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Marker Felt.ttf", 32); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter6::createScene()); - }); - - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition(Vec2::ZERO); - menuItem->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width - 80, visibleRect.origin.y + 25)); - scene->addChild(menu, 1); - - // this is for Menu section of the Programmers Guide - // creating a Menu from a Vector of items - Vector MenuItems; - - // first item - auto label1 = LabelTTF::create("Item 1", "Marker Felt.ttf", 32); - auto item1 = MenuItemLabel::create(label1); - item1->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - item1->setCallback([&](cocos2d::Ref *sender) { - std::cout << "Item 1 was pushed..." << std::endl; - }); - MenuItems.pushBack(item1); - - // second item - auto label2 = LabelTTF::create("Item 2", "Marker Felt.ttf", 32); - auto item2 = MenuItemLabel::create(label2); - item2->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - item2->setCallback([&](cocos2d::Ref *sender) { - std::cout << "Item 2 was pushed..." << std::endl; - }); - MenuItems.pushBack(item2); - - // third item - auto label3 = LabelTTF::create("Item 3", "Marker Felt.ttf", 32); - auto item3 = MenuItemLabel::create(label3); - item3->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - item3->setCallback([&](cocos2d::Ref *sender) { - std::cout << "Item 3 was pushed..." << std::endl; - }); - MenuItems.pushBack(item3); - - // now create the menu from the vector of MenuItems - auto menuExample = Menu::createWithArray(MenuItems); - menuExample->setPosition(Vec2::ZERO); - scene->addChild(menuExample, 1); - - // return the scene - return scene; -} diff --git a/src/chapter6/Chapter6_2.h b/src/chapter6/Chapter6_2.h deleted file mode 100644 index 2c5e976..0000000 --- a/src/chapter6/Chapter6_2.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef __CHAPTER_6_2_H__ -#define __CHAPTER_6_2_H__ - -#include - -#include "cocos2d.h" - -USING_NS_CC; - -class Chapter6_2 : public Ref -{ - public: - static Scene* createScene(); -}; - -#endif // __CHAPTER_6_2_H__ diff --git a/src/chapter6/Chapter6_3.cpp b/src/chapter6/Chapter6_3.cpp deleted file mode 100644 index 90ebdf9..0000000 --- a/src/chapter6/Chapter6_3.cpp +++ /dev/null @@ -1,66 +0,0 @@ -#include "Chapter6_3.h" -#include "Chapter6.h" - -#include "ui/CocosGUI.h" - -USING_NS_CC; -using namespace cocos2d::ui; - -Scene* Chapter6_3::createScene() -{ - cocos2d::Rect visibleRect = Director::getInstance()->getOpenGLView()->getVisibleRect(); - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - int index=2; - - // create a scene - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("Button", "Marker Felt.ttf", 32); - label->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height/2).x, - Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Marker Felt.ttf", 32); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter6::createScene()); - }); - - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition(Vec2::ZERO); - menuItem->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width - 80, visibleRect.origin.y + 25)); - scene->addChild(menu, 1); - - // button - auto button = Button::create("Button_Normal.png", "Button_Press.png", "Button_Disable.png"); - button->setTitleText("Button 1"); - button->setPosition(Vec2(visibleSize.width / 2, visibleSize.height - (++index) * 40)); - - button->addTouchEventListener([&](Ref* sender, Widget::TouchEventType type){ - switch (type) - { - case ui::Widget::TouchEventType::BEGAN: - break; - case ui::Widget::TouchEventType::ENDED: - std::cout << "Button 1 clicked" << std::endl; - break; - default: - break; - } - }); - - scene->addChild(button); - - // return the scene - return scene; -} - -//void Chapter6_3::buttonOneCallback(Ref* sender) -//{ -// std::cout << "Button One clicked" << std::endl; -//} diff --git a/src/chapter6/Chapter6_3.h b/src/chapter6/Chapter6_3.h deleted file mode 100644 index 2832183..0000000 --- a/src/chapter6/Chapter6_3.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef __CHAPTER_6_3_H__ -#define __CHAPTER_6_3_H__ - -#include - -#include "cocos2d.h" -#include "ui/UIWidget.h" - -USING_NS_CC; - -class Chapter6_3 : public Ref -{ - public: - static Scene* createScene(); - - //void buttonOneCallback(Ref* sender); -}; - -#endif // __CHAPTER_6_3_H__ diff --git a/src/chapter6/Chapter6_4.cpp b/src/chapter6/Chapter6_4.cpp deleted file mode 100644 index 744a6e4..0000000 --- a/src/chapter6/Chapter6_4.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "Chapter6_4.h" -#include "Chapter6.h" - -#include "ui/CocosGUI.h" - -USING_NS_CC; -using namespace cocos2d::ui; - -Scene* Chapter6_4::createScene() -{ - cocos2d::Rect visibleRect = Director::getInstance()->getOpenGLView()->getVisibleRect(); - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - int index=2; - - // create a scene - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("CheckBox", "Marker Felt.ttf", 32); - label->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height/2).x, - Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Marker Felt.ttf", 32); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter6::createScene()); - }); - - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition(Vec2::ZERO); - menuItem->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width - 80, visibleRect.origin.y + 25)); - scene->addChild(menu, 1); - - // checkbox - auto checkbox = CheckBox::create("CheckBox_Normal.png", - "CheckBox_Press.png", - "CheckBoxNode_Normal.png", - "CheckBox_Disable.png", - "CheckBoxNode_Disable.png"); - - checkbox->setPosition(Vec2(visibleSize.width / 2, visibleSize.height - (++index) * 40)); - - checkbox->addTouchEventListener([&](Ref* sender, Widget::TouchEventType type){ - switch (type) - { - case ui::Widget::TouchEventType::BEGAN: - break; - case ui::Widget::TouchEventType::ENDED: - std::cout << "checkbox 1 clicked" << std::endl; - break; - default: - break; - } - }); - - scene->addChild(checkbox); - - // return the scene - return scene; -} - -//void Chapter6_4::buttonOneCallback(Ref* sender) -//{ -// std::cout << "Button One clicked" << std::endl; -//} diff --git a/src/chapter6/Chapter6_4.h b/src/chapter6/Chapter6_4.h deleted file mode 100644 index 17213e7..0000000 --- a/src/chapter6/Chapter6_4.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef __CHAPTER_6_4_H__ -#define __CHAPTER_6_4_H__ - -#include - -#include "cocos2d.h" -#include "ui/UIWidget.h" - -USING_NS_CC; - -class Chapter6_4 : public Ref -{ - public: - static Scene* createScene(); -}; - -#endif // __CHAPTER_6_4_H__ diff --git a/src/chapter6/Chapter6_5.cpp b/src/chapter6/Chapter6_5.cpp deleted file mode 100644 index 5eb17c5..0000000 --- a/src/chapter6/Chapter6_5.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "Chapter6_5.h" -#include "Chapter6.h" - -#include "ui/CocosGUI.h" - -USING_NS_CC; -using namespace cocos2d::ui; - -Scene* Chapter6_5::createScene() -{ - cocos2d::Rect visibleRect = Director::getInstance()->getOpenGLView()->getVisibleRect(); - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - int index=2; - - // create a scene - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("LoadingBar", "Marker Felt.ttf", 32); - label->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height/2).x, - Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Marker Felt.ttf", 32); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter6::createScene()); - }); - - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition(Vec2::ZERO); - menuItem->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width - 80, visibleRect.origin.y + 25)); - scene->addChild(menu, 1); - - // loadingbar - auto loadingBar = LoadingBar::create("LoadingBarFile.png"); - loadingBar->loadTexture("LoadingBarFile.png"); - loadingBar->setPercent(20.0); - loadingBar->setDirection(LoadingBar::Direction::LEFT); - loadingBar->setPosition(Vec2(visibleSize.width / 2, visibleSize.height - (++index) * 40)); - - scene->addChild(loadingBar, 1); - - loadingBar->schedule([loadingBar](float f){ - if (loadingBar->getPercent() < 100.0) - { - loadingBar->setPercent(loadingBar->getPercent() + 10.00f); - std::cout << "LoadingBar percent: " << loadingBar->getPercent() << std::endl; - } - else - { - loadingBar->unschedule("update_loading_bar"); - std::cout << "Loading complete!" << std::endl; - } - }, 0.5f, "update_loading_bar"); - - // return the scene - return scene; -} diff --git a/src/chapter6/Chapter6_5.h b/src/chapter6/Chapter6_5.h deleted file mode 100644 index 908f0b9..0000000 --- a/src/chapter6/Chapter6_5.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef __CHAPTER_6_5_H__ -#define __CHAPTER_6_5_H__ - -#include - -#include "cocos2d.h" -#include "ui/CocosGUI.h" - -USING_NS_CC; - -class Chapter6_5 : public Ref -{ -public: - static Scene* createScene(); -}; - -#endif // __CHAPTER_6_5_H__ diff --git a/src/chapter6/Chapter6_6.cpp b/src/chapter6/Chapter6_6.cpp deleted file mode 100644 index a22423e..0000000 --- a/src/chapter6/Chapter6_6.cpp +++ /dev/null @@ -1,64 +0,0 @@ -#include "Chapter6_6.h" -#include "Chapter6.h" - -#include "ui/CocosGUI.h" - -USING_NS_CC; -using namespace cocos2d::ui; - -Scene* Chapter6_6::createScene() -{ - cocos2d::Rect visibleRect = Director::getInstance()->getOpenGLView()->getVisibleRect(); - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - int index=2; - - // create a scene - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("Slider", "Marker Felt.ttf", 32); - label->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height/2).x, - Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Marker Felt.ttf", 32); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter6::createScene()); - }); - - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition(Vec2::ZERO); - menuItem->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width - 80, visibleRect.origin.y + 25)); - scene->addChild(menu, 1); - - // slider - auto slider = Slider::create(); - slider->loadBarTexture("Slider_Back.png"); // what the slider looks like - slider->loadSlidBallTextures("SliderNode_Normal.png", "SliderNode_Press.png", "SliderNode_Disable.png"); - slider->loadProgressBarTexture("Slider_PressBar.png"); - slider->setPosition(Vec2(visibleSize.width / 2, visibleSize.height - (++index) * 40)); - - slider->addTouchEventListener([&](Ref* sender, Widget::TouchEventType type){ - switch (type) - { - case ui::Widget::TouchEventType::BEGAN: - break; - case ui::Widget::TouchEventType::ENDED: - std::cout << "slider moved" << std::endl; - break; - default: - break; - } - }); - - scene->addChild(slider); - - - // return the scene - return scene; -} \ No newline at end of file diff --git a/src/chapter6/Chapter6_6.h b/src/chapter6/Chapter6_6.h deleted file mode 100644 index 3301790..0000000 --- a/src/chapter6/Chapter6_6.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef __CHAPTER_6_6_H__ -#define __CHAPTER_6_6_H__ - -#include - -#include "cocos2d.h" -#include "ui/UIWidget.h" - -USING_NS_CC; - -class Chapter6_6 : public Ref -{ - public: - static Scene* createScene(); -}; - -#endif // __CHAPTER_6_6_H__ diff --git a/src/chapter6/Chapter6_7.cpp b/src/chapter6/Chapter6_7.cpp deleted file mode 100644 index 9d59fef..0000000 --- a/src/chapter6/Chapter6_7.cpp +++ /dev/null @@ -1,53 +0,0 @@ -#include "Chapter6_7.h" -#include "Chapter6.h" - -#include "ui/CocosGUI.h" - -USING_NS_CC; -using namespace cocos2d::ui; - -Scene* Chapter6_7::createScene() -{ - cocos2d::Rect visibleRect = Director::getInstance()->getOpenGLView()->getVisibleRect(); - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - int index=2; - - // create a scene - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("TextField", "Marker Felt.ttf", 32); - label->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height/2).x, - Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Marker Felt.ttf", 32); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter6::createScene()); - }); - - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition(Vec2::ZERO); - menuItem->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width - 80, visibleRect.origin.y + 25)); - scene->addChild(menu, 1); - - // textfield - auto textField = TextField::create("TextField - Edit Me", "Marker Felt.ttf", 30); - textField->setPosition(Vec2(visibleSize.width / 2, visibleSize.height - (++index) * 40)); - - textField->setMaxLength(10); // max number of chars user can enter - - textField->addTouchEventListener([&](Ref* sender, Widget::TouchEventType type){ - std::cout << "editing a TextField" << std::endl; - }); - - scene->addChild(textField); - - // return the scene - return scene; -} \ No newline at end of file diff --git a/src/chapter6/Chapter6_7.h b/src/chapter6/Chapter6_7.h deleted file mode 100644 index d64e446..0000000 --- a/src/chapter6/Chapter6_7.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef __CHAPTER_6_7_H__ -#define __CHAPTER_6_7_H__ - -#include - -#include "cocos2d.h" -#include "ui/UIWidget.h" - -USING_NS_CC; - -class Chapter6_7 : public Ref -{ - public: - static Scene* createScene(); -}; - -#endif // __CHAPTER_6_7_H__ diff --git a/src/chapter7/AppDelegate.cpp b/src/chapter7/AppDelegate.cpp deleted file mode 100644 index 2b41227..0000000 --- a/src/chapter7/AppDelegate.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "AppDelegate.h" -#include "Chapter7.h" - -USING_NS_CC; - -AppDelegate::AppDelegate() -{ -} - -AppDelegate::~AppDelegate() -{ -} - -//if you want a different context,just modify the value of glContextAttrs -//it will takes effect on all platforms -void AppDelegate::initGLContextAttrs() -{ - //set OpenGL context attributions,now can only set six attributions: - //red,green,blue,alpha,depth,stencil - GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8}; - - GLView::setGLContextAttrs(glContextAttrs); -} - -bool AppDelegate::applicationDidFinishLaunching() { - // initialize director - auto director = Director::getInstance(); - auto glview = director->getOpenGLView(); - if(!glview) { - glview = GLViewImpl::create("My Game"); - director->setOpenGLView(glview); - } - - // turn on display FPS - //director->setDisplayStats(true); - - // set FPS. the default value is 1.0/60 if you don't call this - director->setAnimationInterval(1.0 / 60); - - // create a scene. it's an autorelease object - auto scene = Chapter7::createScene(); - - // run - director->runWithScene(scene); - - return true; -} - -// This function will be called when the app is inactive. When comes a phone call,it's be invoked too -void AppDelegate::applicationDidEnterBackground() { - Director::getInstance()->stopAnimation(); - - // if you use SimpleAudioEngine, it must be pause - // SimpleAudioEngine::getInstance()->pauseBackgroundMusic(); -} - -// this function will be called when the app is active again -void AppDelegate::applicationWillEnterForeground() { - Director::getInstance()->startAnimation(); - - // if you use SimpleAudioEngine, it must resume here - // SimpleAudioEngine::getInstance()->resumeBackgroundMusic(); -} diff --git a/src/chapter7/AppDelegate.h b/src/chapter7/AppDelegate.h deleted file mode 100644 index 0114c7b..0000000 --- a/src/chapter7/AppDelegate.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef _CHAPTER7_DELEGATE_H_ -#define _CHAPTER7_DELEGATE_H_ - -#include "cocos2d.h" - -/** -@brief The cocos2d Application. - -The reason for implement as private inheritance is to hide some interface call by Director. -*/ -class AppDelegate : private cocos2d::Application -{ -public: - AppDelegate(); - virtual ~AppDelegate(); - - virtual void initGLContextAttrs(); - - /** - @brief Implement Director and Scene init code here. - @return true Initialize success, app continue. - @return false Initialize failed, app terminate. - */ - virtual bool applicationDidFinishLaunching(); - - /** - @brief The function be called when the application enter background - @param the pointer of the application - */ - virtual void applicationDidEnterBackground(); - - /** - @brief The function be called when the application enter foreground - @param the pointer of the application - */ - virtual void applicationWillEnterForeground(); -}; - -#endif // _CHAPTER6_DELEGATE_H_ - diff --git a/src/chapter7/Chapter7.cpp b/src/chapter7/Chapter7.cpp deleted file mode 100644 index 994bfdf..0000000 --- a/src/chapter7/Chapter7.cpp +++ /dev/null @@ -1,122 +0,0 @@ -#include "Chapter7.h" -#include "Chapter7_1.h" -#include "Chapter7_2.h" -#include "Chapter7_3.h" - -USING_NS_CC; - -Scene* Chapter7::createScene() -{ - // 'scene' is an autorelease object - auto scene = Scene::create(); - - // 'layer' is an autorelease object - auto layer = Chapter7::create(); - - // add layer as a child to scene - scene->addChild(layer); - - // return the scene - return scene; -} - -// on "init" you need to initialize your instance -bool Chapter7::init() -{ - ////////////////////////////// - // 1. super init first - if ( !Node::init() ) - { - return false; - } - - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - ///////////////////////////// - // 2. add a menu item with "X" image, which is clicked to quit the program - // you may modify it. - - // add a "close" icon to exit the progress. it's an autorelease object - auto closeItem = MenuItemImage::create( - "CloseNormal.png", - "CloseSelected.png", - CC_CALLBACK_1(Chapter7::onMenuCloseCallback, this)); - - closeItem->setPosition(Vec2(origin.x + visibleSize.width - closeItem->getContentSize().width/2 , - origin.y + closeItem->getContentSize().height/2)); - - // create menu, it's an autorelease object - auto closemenu = Menu::create(closeItem, NULL); - closemenu->setPosition(Vec2::ZERO); - this->addChild(closemenu, 1); - - // Create a Label to identify the sample - auto label = LabelTTF::create("Chapter 7", "Marker Felt.ttf", 32); - - // position the label on the center of the screen - label->setPosition(Vec2(origin.x + visibleSize.width/2, - origin.y + visibleSize.height - label->getContentSize().height)); - - // add the label as a child to this layer - this->addChild(label, 1); - - ///////////////////////////// - // 3. add main menu - auto mainmenu = Menu::create(); - int index = 2; - - // TileMap - auto itemlabel = LabelTTF::create("TileMap", "Marker Felt.ttf", 32); - auto menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter7_1::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - - // Particle - itemlabel = LabelTTF::create("Particle", "Marker Felt.ttf", 32); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter7_2::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - - // Parallax - itemlabel = LabelTTF::create("Parallax", "Marker Felt.ttf", 32); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter7_3::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - - // add main menu - mainmenu->setPosition(Vec2::ZERO); - this->addChild(mainmenu, 1); - - return true; -} - - -void Chapter7::onMenuCloseCallback(Ref* sender) -{ -#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT) - MessageBox("You pressed the close button. Windows Store Apps do not implement a close button.","Alert"); - return; -#endif - - Director::getInstance()->end(); - -#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) - exit(0); -#endif -} diff --git a/src/chapter7/Chapter7.h b/src/chapter7/Chapter7.h deleted file mode 100644 index ae25cd6..0000000 --- a/src/chapter7/Chapter7.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef __CHAPTER7_H__ -#define __CHAPTER7_H__ - -#include "cocos2d.h" - -class Chapter7 : public cocos2d::Node -{ -public: - // there's no 'id' in cpp, so we recommend returning the class instance pointer - static cocos2d::Scene* createScene(); - - virtual bool init(); - - // a selector callback - void onMenuCloseCallback(cocos2d::Ref* sender); - - // implement the "static create()" method manually - CREATE_FUNC(Chapter7); -}; - -#endif // __CHAPTER6_H__ diff --git a/src/chapter7/Chapter7_1.cpp b/src/chapter7/Chapter7_1.cpp deleted file mode 100644 index 904e868..0000000 --- a/src/chapter7/Chapter7_1.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "Chapter7_1.h" -#include "Chapter7.h" - -USING_NS_CC; - -Scene* Chapter7_1::createScene() -{ - cocos2d::Rect visibleRect = Director::getInstance()->getOpenGLView()->getVisibleRect(); - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - // create a scene - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("TileMap", "Marker Felt.ttf", 32); - label->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height/2).x, - Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Marker Felt.ttf", 32); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter7::createScene()); - }); - - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition(Vec2::ZERO); - menuItem->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width - 80, visibleRect.origin.y + 25)); - scene->addChild(menu, 1); - - // TileMap - auto map = TMXTiledMap::create("isometric_grass_and_water.tmx"); - map->setPosition(Vec2(visibleSize.width/2 - map->getContentSize().width/2, 0)); - - auto listener1 = EventListenerTouchOneByOne::create(); - - listener1->onTouchBegan = [](Touch* touch, Event* event){ - return true; // if you are consuming it - }; - - listener1->onTouchEnded = [=](Touch* touch, Event* event){ - auto layer = map->getLayer("layer0"); - Size viewSize = Director::getInstance()->getWinSize(); - - Vec2 mapCordinate = map->convertToNodeSpace(Director::getInstance()->convertToGL(touch->getLocationInView())); - int tileX = mapCordinate.x / map->getTileSize().width; - int tileY = (viewSize.height - mapCordinate.y) / map->getTileSize().height; - - int id = layer->getTileGIDAt(Vec2(tileX, tileY)); - Sprite* tileSprite = layer->getTileAt(Vec2(tileX, tileY)); - - std::cout << "Tile GID: " << id << std::endl; - }; - - Director::getInstance()->getEventDispatcher()->addEventListenerWithSceneGraphPriority(listener1, map); - - scene->addChild(map, 0, 99); // with a tag of '99' - - return scene; -} diff --git a/src/chapter7/Chapter7_1.h b/src/chapter7/Chapter7_1.h deleted file mode 100644 index 1ff55da..0000000 --- a/src/chapter7/Chapter7_1.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef __CHAPTER_7_1_H__ -#define __CHAPTER_7_1_H__ - -#include "cocos2d.h" - -#include - -USING_NS_CC; - -class Chapter7_1 : public Ref -{ - public: - static cocos2d::Scene* createScene(); -}; - -#endif // __CHAPTER_7_1_H__ diff --git a/src/chapter7/Chapter7_2.cpp b/src/chapter7/Chapter7_2.cpp deleted file mode 100644 index bee3d89..0000000 --- a/src/chapter7/Chapter7_2.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include "Chapter7_2.h" -#include "Chapter7.h" - -USING_NS_CC; - -Scene* Chapter7_2::createScene() -{ - cocos2d::Rect visibleRect = Director::getInstance()->getOpenGLView()->getVisibleRect(); - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - // create a scene - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("Particles", "Marker Felt.ttf", 32); - label->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height/2).x, - Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Marker Felt.ttf", 32); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter7::createScene()); - }); - - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition(Vec2::ZERO); - menuItem->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width - 80, visibleRect.origin.y + 25)); - scene->addChild(menu, 1); - - // Particles - auto emitter = ParticleFireworks::create(); - - scene->addChild(emitter, 2); - - return scene; -} diff --git a/src/chapter7/Chapter7_2.h b/src/chapter7/Chapter7_2.h deleted file mode 100644 index 900e583..0000000 --- a/src/chapter7/Chapter7_2.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef __CHAPTER_7_2_H__ -#define __CHAPTER_7_2_H__ - -#include "cocos2d.h" - -USING_NS_CC; - -class Chapter7_2 : public Ref -{ - public: - static cocos2d::Scene* createScene(); -}; - -#endif // __CHAPTER_7_2_H__ diff --git a/src/chapter7/Chapter7_3.cpp b/src/chapter7/Chapter7_3.cpp deleted file mode 100644 index e6a6231..0000000 --- a/src/chapter7/Chapter7_3.cpp +++ /dev/null @@ -1,89 +0,0 @@ -#include "Chapter7_3.h" -#include "Chapter7.h" - -USING_NS_CC; - -Scene* Chapter7_3::createScene() -{ - cocos2d::Rect visibleRect = Director::getInstance()->getOpenGLView()->getVisibleRect(); - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - // create a scene - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("Parallax", "Marker Felt.ttf", 32); - label->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height/2).x, - Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Marker Felt.ttf", 32); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter7::createScene()); - }); - - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition(Vec2::ZERO); - menuItem->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width - 80, visibleRect.origin.y + 25)); - scene->addChild(menu, 1); - - // Parallax - auto parallax = ParallaxNode::create(); - - // create a few "layers" - int verts = 4; - - auto color1 = Color4F(1.0f, 0.5f, 0.3f, 1); - auto color2 = Color4F(1.0f, 0.6f, 0.4f, 1); - auto color3 = Color4F(1.0f, 0.7f, 0.5f, 1); - - Vec2 box1[] = {Vec2::ZERO, Vec2(0,200), Vec2(600,200), Vec2(600,0)}; - Vec2 box2[] = {Vec2::ZERO, Vec2(0,300), Vec2(800,300), Vec2(800,0)}; - Vec2 box3[] = {Vec2::ZERO, Vec2(0,500), Vec2(1000,500), Vec2(1000,0)}; - - DrawNode* layer1 = DrawNode::create(); - layer1->setContentSize(Size(600, 200)); - layer1->drawPolygon(box1, verts, color1, 0, color1); - layer1->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height/2).x, - Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height).y - 60); - - DrawNode* layer2 = DrawNode::create(); - layer2->setContentSize(Size(800, 300)); - layer2->drawPolygon(box2, verts, color2, 0, color2); - layer2->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width/3, visibleRect.origin.y+visibleRect.size.height/3).x, - Vec2(visibleRect.origin.x+visibleRect.size.width/3, visibleRect.origin.y+visibleRect.size.height).y - 80); - - DrawNode* layer3 = DrawNode::create(); - layer3->setContentSize(Size(1000, 500)); - layer3->drawPolygon(box3, verts, color3, 0, color3); - layer3->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width/3, visibleRect.origin.y+visibleRect.size.height/3).x, - Vec2(visibleRect.origin.x+visibleRect.size.width/3, visibleRect.origin.y+visibleRect.size.height).y - 80); - - - // now add all 3 layers to the parallax node - // background image is moved at a ratio of 0.4x, 0.5y - parallax->addChild(layer1, -1, Vec2(0.4f,0.5f), Vec2::ZERO); - - // tiles are moved at a ratio of 2.2x, 1.0y - parallax->addChild(layer2, 1, Vec2(2.2f,1.0f), Vec2(0,-200) ); - - // top image is moved at a ratio of 3.0x, 2.5y - parallax->addChild(layer3, 2, Vec2(3.0f,2.5f), Vec2(200,800) ); - - // now create some actions that will move the 'parallax' node - // and the children of the 'parallax' node will move at different speed - auto goUp = MoveBy::create(4, Vec2(0,-250) ); - auto goDown = goUp->reverse(); - auto go = MoveBy::create(8, Vec2(-500,0) ); - auto goBack = go->reverse(); - auto seq = Sequence::create(goUp, go, goDown, goBack, nullptr); - parallax->runAction( (RepeatForever::create(seq) )); - - scene->addChild(parallax, 1); - - return scene; -} diff --git a/src/chapter7/Chapter7_3.h b/src/chapter7/Chapter7_3.h deleted file mode 100644 index afb82c0..0000000 --- a/src/chapter7/Chapter7_3.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef __CHAPTER_7_3_H__ -#define __CHAPTER_7_3_H__ - -#include "cocos2d.h" - -USING_NS_CC; - -class Chapter7_3 : public Ref -{ - public: - static cocos2d::Scene* createScene(); -}; - -#endif // __CHAPTER_7_3_H__ diff --git a/src/chapter9/AppDelegate.cpp b/src/chapter9/AppDelegate.cpp deleted file mode 100644 index 914fe93..0000000 --- a/src/chapter9/AppDelegate.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "AppDelegate.h" -#include "Chapter9.h" - -USING_NS_CC; - -AppDelegate::AppDelegate() { - -} - -AppDelegate::~AppDelegate() -{ -} - -//if you want a different context,just modify the value of glContextAttrs -//it will takes effect on all platforms -void AppDelegate::initGLContextAttrs() -{ - //set OpenGL context attributions,now can only set six attributions: - //red,green,blue,alpha,depth,stencil - GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8}; - - GLView::setGLContextAttrs(glContextAttrs); -} - -bool AppDelegate::applicationDidFinishLaunching() { - // initialize director - auto director = Director::getInstance(); - auto glview = director->getOpenGLView(); - if(!glview) { - glview = GLViewImpl::create("My Game"); - director->setOpenGLView(glview); - } - - // turn on display FPS - //director->setDisplayStats(true); - - // set FPS. the default value is 1.0/60 if you don't call this - director->setAnimationInterval(1.0 / 60); - - // create a scene. it's an autorelease object - auto scene = Chapter9::createScene(); - - // run - director->runWithScene(scene); - - return true; -} - -// This function will be called when the app is inactive. When comes a phone call,it's be invoked too -void AppDelegate::applicationDidEnterBackground() { - Director::getInstance()->stopAnimation(); - - // if you use SimpleAudioEngine, it must be pause - // SimpleAudioEngine::getInstance()->pauseBackgroundMusic(); -} - -// this function will be called when the app is active again -void AppDelegate::applicationWillEnterForeground() { - Director::getInstance()->startAnimation(); - - // if you use SimpleAudioEngine, it must resume here - // SimpleAudioEngine::getInstance()->resumeBackgroundMusic(); -} diff --git a/src/chapter9/AppDelegate.h b/src/chapter9/AppDelegate.h deleted file mode 100644 index 625506c..0000000 --- a/src/chapter9/AppDelegate.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef _APP_DELEGATE_H_ -#define _APP_DELEGATE_H_ - -#include "cocos2d.h" - -/** -@brief The cocos2d Application. - -The reason for implement as private inheritance is to hide some interface call by Director. -*/ -class AppDelegate : private cocos2d::Application -{ -public: - AppDelegate(); - virtual ~AppDelegate(); - - virtual void initGLContextAttrs(); - - /** - @brief Implement Director and Scene init code here. - @return true Initialize success, app continue. - @return false Initialize failed, app terminate. - */ - virtual bool applicationDidFinishLaunching(); - - /** - @brief The function be called when the application enter background - @param the pointer of the application - */ - virtual void applicationDidEnterBackground(); - - /** - @brief The function be called when the application enter foreground - @param the pointer of the application - */ - virtual void applicationWillEnterForeground(); -}; - -#endif // _APP_DELEGATE_H_ - diff --git a/src/chapter9/Chapter9.cpp b/src/chapter9/Chapter9.cpp deleted file mode 100644 index d861efb..0000000 --- a/src/chapter9/Chapter9.cpp +++ /dev/null @@ -1,219 +0,0 @@ -#include "Chapter9.h" -#include "Chapter9_1.h" -#include "Chapter9_2.h" -#include "Chapter9_3.h" -#include "Chapter9_4.h" -#include "Chapter9_5.h" -#include "Chapter9_6.h" -#include "Chapter9_7.h" -#include "Chapter9_8.h" -#include "Chapter9_9.h" -#include "Chapter9_10.h" - -USING_NS_CC; - -Scene* Chapter9::createScene() -{ - // 'scene' is an autorelease object - auto scene = Scene::create(); - - // 'layer' is an autorelease object - auto layer = Chapter9::create(); - - // add layer as a child to scene - scene->addChild(layer); - - // return the scene - return scene; -} - -// on "init" you need to initialize your instance -bool Chapter9::init() -{ - ////////////////////////////// - // 1. super init first - if ( !Node::init() ) - { - return false; - } - - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - ///////////////////////////// - // 2. add a menu item with "X" image, which is clicked to quit the program - // you may modify it. - - // add a "close" icon to exit the progress. it's an autorelease object - auto closeItem = MenuItemImage::create( - "CloseNormal.png", - "CloseSelected.png", - CC_CALLBACK_1(Chapter9::onMenuCloseCallback, this)); - - closeItem->setPosition(Vec2(origin.x + visibleSize.width - closeItem->getContentSize().width/2 , - origin.y + closeItem->getContentSize().height/2)); - - // create menu, it's an autorelease object - auto closemenu = Menu::create(closeItem, NULL); - closemenu->setPosition(Vec2::ZERO); - this->addChild(closemenu, 1); - - ///////////////////////////// - // 3. add main menu - auto mainmenu = Menu::create(); - int index = 2; - - // add "Static sprite3D model" - auto itemlabel = LabelTTF::create("3D static model", "Arial", 24); - auto menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9_1::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - // add "Sprite3D skeleton animation" - itemlabel = LabelTTF::create("3D skeleton animation", "Arial", 24); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9_2::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - - // add "Attach weapon" - itemlabel = LabelTTF::create("Attach weapon", "Arial", 24); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9_3::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - // add "Test reskin" - itemlabel = LabelTTF::create("Reskin", "Arial", 24); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9_4::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - // add "Test camera" - itemlabel = LabelTTF::create("Camera", "Arial", 24); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9_5::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - // add "Test AABB" - itemlabel = LabelTTF::create("AABB", "Arial", 24); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9_6::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - // add "Test OBB" - itemlabel = LabelTTF::create("OBB", "Arial", 24); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9_7::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - // add "Test BillBoard" - itemlabel = LabelTTF::create("BillBoard", "Arial", 24); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9_8::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - // add "Test Light" - itemlabel = LabelTTF::create("Light", "Arial", 24); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9_9::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - // add "Test Terrain" - itemlabel = LabelTTF::create("Terrain", "Arial", 24); - menuItem = MenuItemLabel::create(itemlabel); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9_10::createScene()); - }); - menuItem->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - (Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - (++index) * 40)); - - mainmenu->addChild(menuItem,2); - mainmenu->setPosition(Vec2::ZERO); - - // add main menu - this->addChild(mainmenu, 1); - - - ///////////////////////////// - // 3. add your codes below... - - auto label = LabelTTF::create("Chapter 9", "Arial", 24); - - // position the label on the center of the screen - label->setPosition(Vec2(origin.x + visibleSize.width/2, - origin.y + visibleSize.height - label->getContentSize().height)); - - // add the label as a child to this layer - this->addChild(label, 1); - - return true; -} - - -void Chapter9::onMenuCloseCallback(Ref* sender) -{ -#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT) - MessageBox("You pressed the close button. Windows Store Apps do not implement a close button.","Alert"); - return; -#endif - - Director::getInstance()->end(); - -#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) - exit(0); -#endif -} diff --git a/src/chapter9/Chapter9.h b/src/chapter9/Chapter9.h deleted file mode 100644 index 6ea4fce..0000000 --- a/src/chapter9/Chapter9.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef __HELLOWORLD_SCENE_H__ -#define __HELLOWORLD_SCENE_H__ - -#include "cocos2d.h" - -class Chapter9 : public cocos2d::Node -{ -public: - // there's no 'id' in cpp, so we recommend returning the class instance pointer - static cocos2d::Scene* createScene(); - - // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone - virtual bool init(); - - // a selector callback - void onMenuCloseCallback(cocos2d::Ref* sender); - - // implement the "static create()" method manually - CREATE_FUNC(Chapter9); -}; - -#endif // __HELLOWORLD_SCENE_H__ diff --git a/src/chapter9/Chapter9_1.cpp b/src/chapter9/Chapter9_1.cpp deleted file mode 100644 index f62b2d0..0000000 --- a/src/chapter9/Chapter9_1.cpp +++ /dev/null @@ -1,52 +0,0 @@ -#include "Chapter9_1.h" -#include "Chapter9.h" - -USING_NS_CC; - -Scene* Chapter9_1::createScene() -{ - cocos2d::Rect visibleRect = Director::getInstance()->getOpenGLView()->getVisibleRect(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("3D static model", "Arial", 24); - label->setPosition(Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height/2).x, - Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Arial", 24); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9::createScene()); - }); - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition( Vec2::ZERO ); - menuItem->setPosition( Vec2( visibleRect.origin.x+visibleRect.size.width - 80, visibleRect.origin.y + 25) ); - scene->addChild(menu, 1); - - // create 3D sprite - auto sprite = Sprite3D::create("boss.c3b"); - sprite->setScale(5.f); - sprite->setPosition( Vec2(visibleRect.origin.x+visibleRect.size.width/2, visibleRect.origin.y+visibleRect.size.height/2)); - - ActionInterval* action; - action = ScaleBy::create(3, 2); - auto action_back = action->reverse(); - auto seq = Sequence::create( action, action_back, nullptr ); - - // Run Action - sprite->runAction( RepeatForever::create(seq) ); - - //add to scene - scene->addChild(sprite); - - // return the scene - return scene; -} diff --git a/src/chapter9/Chapter9_1.h b/src/chapter9/Chapter9_1.h deleted file mode 100644 index 25efaf2..0000000 --- a/src/chapter9/Chapter9_1.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef __CHAPTER_9_1_H__ -#define __CHAPTER_9_1_H__ - -#include "cocos2d.h" - -USING_NS_CC; - -class Chapter9_1 : public Ref -{ - public: - static cocos2d::Scene* createScene(); -}; - -#endif // __CHAPTER_9_1_H__ diff --git a/src/chapter9/Chapter9_10.cpp b/src/chapter9/Chapter9_10.cpp deleted file mode 100755 index 6bd96f9..0000000 --- a/src/chapter9/Chapter9_10.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include "Chapter9_10.h" -#include "Chapter9.h" - - -USING_NS_CC; - -static int TerrainTag = 100; -static int PlayerTag = 101; - -Scene* Chapter9_10::createScene() -{ - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - auto winSize = Director::getInstance()->getWinSize(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("Terrain", "Arial", 24); - label->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Arial", 24); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9::createScene()); - }); - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition( Vec2::ZERO ); - menuItem->setPosition( Vec2(origin.x+visibleSize.width - 80, origin.y + 25) ); - scene->addChild(menu, 1); - - auto layer = Layer::create(); - scene->addChild(layer); - - Terrain::DetailMap r("chapter9/dirt.jpg"),g("chapter9/Grass2.jpg"),b("chapter9/road.jpg"),a("chapter9/GreenSkin.jpg"); - Terrain::TerrainData data("chapter9/heightmap16.jpg","chapter9/alphamap.png",r,g,b,a); - auto terrain = Terrain::create(data,Terrain::CrackFixedType::SKIRT); - - layer->addChild(terrain, TerrainTag); - - auto player = Sprite3D::create("chapter9/orc.c3b"); - player->setScale(0.06f); - player->setPositionY(terrain->getHeight(player->getPositionX(),player->getPositionZ())); - auto animation = Animation3D::create("chapter9/orc.c3b"); - if (animation) - { - auto animate = Animate3D::create(animation); - player->runAction(RepeatForever::create(animate)); - } - layer->addChild(player); - - auto camera = Camera::createPerspective(60, (GLfloat)winSize.width / winSize.height, 1.0f, 1000.0f); - camera->setCameraFlag(CameraFlag::USER1); - camera->setPosition3D(Vec3(0.0, 10, 10)); - camera->lookAt(Vec3(0.0, 0.0, 0.0), Vec3(0.0, 1.0, 0.0)); - layer->addChild(camera); - layer->setCameraMask((unsigned short)CameraFlag::USER1); - - // return the scene - return scene; -} \ No newline at end of file diff --git a/src/chapter9/Chapter9_10.h b/src/chapter9/Chapter9_10.h deleted file mode 100755 index a141a37..0000000 --- a/src/chapter9/Chapter9_10.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef __CHAPTER_9_10_H__ -#define __CHAPTER_9_10_H__ - -#include "cocos2d.h" - -USING_NS_CC; - -class Chapter9_10 : public Ref -{ -public: - static cocos2d::Scene* createScene(); -}; - -#endif // __CHAPTER_9_9_H__ \ No newline at end of file diff --git a/src/chapter9/Chapter9_2.cpp b/src/chapter9/Chapter9_2.cpp deleted file mode 100644 index 046e026..0000000 --- a/src/chapter9/Chapter9_2.cpp +++ /dev/null @@ -1,59 +0,0 @@ -#include "Chapter9_2.h" -#include "Chapter9.h" - -USING_NS_CC; - -Scene* Chapter9_2::createScene() -{ - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("3D skeleton animation", "Arial", 24); - label->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Arial", 24); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9::createScene()); - }); - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition( Vec2::ZERO ); - menuItem->setPosition( Vec2(origin.x+visibleSize.width - 80, origin.y + 25) ); - scene->addChild(menu, 1); - - std::string fileName = "orc.c3b"; - - auto sprite = Sprite3D::create(fileName); - sprite->setScale(8.f); - sprite->setRotation3D(Vec3(0,180,0)); - sprite->setPosition( Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).y ); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // play skeleton animation - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto animation = Animation3D::create(fileName); - if (animation) - { - auto animate = Animate3D::create(animation); - animate->setSpeed(1); - sprite->runAction(RepeatForever::create(animate)); - } - - //add to scene - scene->addChild(sprite); - - // return the scene - return scene; -} diff --git a/src/chapter9/Chapter9_2.h b/src/chapter9/Chapter9_2.h deleted file mode 100644 index cab1ef8..0000000 --- a/src/chapter9/Chapter9_2.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef __CHAPTER_9_2_H__ -#define __CHAPTER_9_2_H__ - -#include "cocos2d.h" - -USING_NS_CC; - -class Chapter9_2 : public Ref -{ - public: - static cocos2d::Scene* createScene(); -}; - -#endif // __CHAPTER_10_2_H__ diff --git a/src/chapter9/Chapter9_3.cpp b/src/chapter9/Chapter9_3.cpp deleted file mode 100644 index ad6ceb0..0000000 --- a/src/chapter9/Chapter9_3.cpp +++ /dev/null @@ -1,94 +0,0 @@ -#include "Chapter9_3.h" -#include "Chapter9.h" - -USING_NS_CC; - -Scene* Chapter9_3::createScene() -{ - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto scene = Scene::create(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create sprite - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - std::string fileName = "orc.c3b"; - static Sprite3D* sprite = nullptr; - if(sprite == nullptr) - sprite = Sprite3D::create(fileName); - sprite->setScale(8.f); - sprite->setRotation3D(Vec3(0,180,0)); - sprite->setPosition( Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).y ); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // play animation - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto animation = Animation3D::create(fileName); - if (animation) - { - auto animate = Animate3D::create(animation); - animate->setSpeed(1); - sprite->runAction(RepeatForever::create(animate)); - } - - // add title - auto label = LabelTTF::create("Attach weapon", "Arial", 24); - label->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - 30); - - scene->addChild(label, -1); - - static bool isAttach = false; - auto label1 = LabelTTF::create("Attach", "Arial", 24); - static MenuItemLabel* item1 = nullptr; - if (item1 == nullptr) - { - item1 = MenuItemLabel::create(label1); - } - - item1->setCallback([&](cocos2d::Ref *sender) { - if(!isAttach) - { - auto sp = Sprite3D::create("axe.c3b"); - sprite->getAttachNode("Bip001 R Hand")->addChild(sp); - item1->setString("Detach"); - } - else - { - sprite->removeAllAttachNode(); - item1->setString("Attach"); - } - isAttach = !isAttach; - }); - auto itemSize = item1->getContentSize(); - item1->setPosition( Vec2(origin.x + 50, origin.y+visibleSize.height - itemSize.height * 2)); - - auto menuSelect = CCMenu::create(item1, NULL); - menuSelect->setPosition(Vec2(0,0)); - scene->addChild(menuSelect, 1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Arial", 24); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - item1 = nullptr; - sprite = nullptr; - Director::getInstance()->replaceScene(Chapter9::createScene()); - }); - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition( Vec2::ZERO ); - menuItem->setPosition( Vec2(origin.x+visibleSize.width - 80, origin.y + 25) ); - scene->addChild(menu, 1); - - //add to scene - scene->addChild(sprite); - - // return the scene - return scene; -} diff --git a/src/chapter9/Chapter9_3.h b/src/chapter9/Chapter9_3.h deleted file mode 100644 index 37db103..0000000 --- a/src/chapter9/Chapter9_3.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef __CHAPTER_9_3_H__ -#define __CHAPTER_9_3_H__ - -#include "cocos2d.h" - -USING_NS_CC; - -class Chapter9_3 : public Ref -{ - public: - static cocos2d::Scene* createScene(); -}; - -#endif // __CHAPTER_10_3_H__ diff --git a/src/chapter9/Chapter9_4.cpp b/src/chapter9/Chapter9_4.cpp deleted file mode 100644 index 6800e12..0000000 --- a/src/chapter9/Chapter9_4.cpp +++ /dev/null @@ -1,226 +0,0 @@ -#include "Chapter9_4.h" -#include "Chapter9.h" - -USING_NS_CC; - -Scene* Chapter9_4::createScene() -{ - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - - static std::string girlPants[] = {"Girl_LowerBody01", "Girl_LowerBody02"}; - static int usePantsId = 0; - static std::string girlUpperBody[] = {"Girl_UpperBody01", "Girl_UpperBody02"}; - static int useUpBodyId = 0; - static std::string girlShoes[] = {"Girl_Shoes01", "Girl_Shoes02"}; - static int useShoesId = 0; - static std::string girlHair[] = {"Girl_Hair01", "Girl_Hair02"}; - static int useHairId = 0; - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("3D model animation", "Arial", 24); - label->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - 30); - - scene->addChild(label, -1); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create sprite3D - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - std::string fileName = "ReskinGirl.c3b"; - static Sprite3D* sprite = nullptr; - if(sprite == nullptr) - sprite = Sprite3D::create(fileName); - sprite->setScale(6.f); - sprite->setPosition( Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).y ); - auto animation = Animation3D::create(fileName); - if (animation) - { - auto animate = Animate3D::create(animation); - sprite->runAction(RepeatForever::create(animate)); - } - scene->addChild(sprite); - - auto girlPants_ = sprite->getMeshByName(girlPants[1]); - if(girlPants) - { - girlPants_->setVisible(false); - } - auto girlShoes_ = sprite->getMeshByName(girlShoes[1]); - if(girlShoes) - { - girlShoes_->setVisible(false); - } - auto girlHair_ = sprite->getMeshByName(girlHair[1]); - if(girlHair) - { - girlHair_->setVisible(false); - } - auto girlUpBody_ = sprite->getMeshByName( girlUpperBody[1]); - if(girlUpBody_) - { - girlUpBody_->setVisible(false); - } - - // add the menu for reskin - auto label1 = LabelTTF::create("Hair", "Arial", 24); - auto item1 = MenuItemLabel::create(label1); - item1->setCallback([&](cocos2d::Ref *sender) { - useHairId++; - if(useHairId > 1 ) - { - useHairId = 0; - } - if(useHairId >= 0 && sprite) - { - for(int i = 0; i < 2; i++ ) - { - auto subMesh = sprite->getMeshByName(girlHair[i]); - if(subMesh) - { - if(i == useHairId ) - { - subMesh->setVisible(true); - } - else - { - subMesh->setVisible(false); - } - } - } - } - }); - - auto label2 = LabelTTF::create("Glasses", "Arial", 24); - auto item2 = MenuItemLabel::create(label2); - item2->setCallback([&](cocos2d::Ref *sender) { - auto subMesh = sprite->getMeshByName("Girl_Glasses01"); - if(subMesh) - { - if(subMesh->isVisible()) - { - subMesh->setVisible(false); - } - else - { - subMesh->setVisible(true); - } - } - }); - - auto label3 = LabelTTF::create("Coat", "Arial", 24); - auto item3 = MenuItemLabel::create(label3); - item3->setCallback([&](cocos2d::Ref *sender) { - useUpBodyId++; - if(useUpBodyId > 1 ) - { - useUpBodyId = 0; - } - if(useUpBodyId >= 0 && sprite) - { - for(int i = 0; i < 2; i++ ) - { - auto subMesh = sprite->getMeshByName(girlUpperBody[i]); - if(subMesh) - { - if(i == useUpBodyId ) - { - subMesh->setVisible(true); - } - else - { - subMesh->setVisible(false); - } - } - } - } - }); - - auto label4 = LabelTTF::create("Pants", "Arial", 24); - auto item4 = MenuItemLabel::create(label4); - item4->setCallback([&](cocos2d::Ref *sender) { - usePantsId++; - if(usePantsId > 1 ) - { - usePantsId = 0; - } - if(usePantsId >= 0 && sprite) - { - for(int i = 0; i < 2; i++ ) - { - auto subMesh = sprite->getMeshByName(girlPants[i]); - if(subMesh) - { - if(i == usePantsId ) - { - subMesh->setVisible(true); - } - else - { - subMesh->setVisible(false); - } - } - } - } - }); - - auto label5 = LabelTTF::create("Shoes", "Arial", 24); - auto item5 = MenuItemLabel::create(label5); - item5->setCallback([&](cocos2d::Ref *sender) { - useShoesId++; - if(useShoesId > 1 ) - { - useShoesId = 0; - } - if(useShoesId >= 0 && sprite) - { - for(int i = 0; i < 2; i++ ) - { - auto subMesh = sprite->getMeshByName(girlShoes[i]); - if(subMesh) - { - if(i == useShoesId ) - { - subMesh->setVisible(true); - } - else - { - subMesh->setVisible(false); - } - } - } - } - }); - - auto itemSize = item1->getContentSize(); - item1->setPosition( Vec2(origin.x + 50, origin.y+visibleSize.height - itemSize.height * 2)); - item2->setPosition( Vec2(origin.x + 50, origin.y+visibleSize.height - itemSize.height * 3)); - item3->setPosition( Vec2(origin.x + 50, origin.y+visibleSize.height - itemSize.height * 4)); - item4->setPosition( Vec2(origin.x + 50, origin.y+visibleSize.height - itemSize.height * 5)); - item5->setPosition( Vec2(origin.x + 50, origin.y+visibleSize.height - itemSize.height * 6)); - auto pMenu1 = CCMenu::create(item1,item2,item3,item4,item5,NULL); - pMenu1->setPosition(Vec2(0,0)); - scene->addChild(pMenu1, 10); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Arial", 24); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - sprite = nullptr; - Director::getInstance()->replaceScene(Chapter9::createScene()); - }); - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition( Vec2::ZERO ); - menuItem->setPosition( Vec2(origin.x+visibleSize.width - 80, origin.y + 25) ); - scene->addChild(menu, 1); - - // return the scene - return scene; -} diff --git a/src/chapter9/Chapter9_4.h b/src/chapter9/Chapter9_4.h deleted file mode 100644 index 4087c48..0000000 --- a/src/chapter9/Chapter9_4.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef __CHAPTER_9_4_H__ -#define __CHAPTER_9_4_H__ - -#include "cocos2d.h" - -USING_NS_CC; - -class Chapter9_4 : public Ref -{ - public: - static cocos2d::Scene* createScene(); -}; - -#endif // __CHAPTER_10_3_H__ diff --git a/src/chapter9/Chapter9_5.cpp b/src/chapter9/Chapter9_5.cpp deleted file mode 100644 index 12f50fb..0000000 --- a/src/chapter9/Chapter9_5.cpp +++ /dev/null @@ -1,85 +0,0 @@ -#include "Chapter9_5.h" -#include "Chapter9.h" - -USING_NS_CC; - -Scene* Chapter9_5::createScene() -{ - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - auto winSize = Director::getInstance()->getWinSize(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("Camera", "Arial", 24); - label->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Arial", 24); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9::createScene()); - }); - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition( Vec2::ZERO ); - menuItem->setPosition( Vec2(origin.x+visibleSize.width - 80, origin.y + 25) ); - scene->addChild(menu, 1); - - auto layer3D=Layer::create(); - scene->addChild(layer3D,2); - - std::string fileName = "orc.c3b"; - - auto sprite = Sprite3D::create(fileName); - sprite->setScale(5.f); - sprite->setRotation3D(Vec3(0,180,0)); - sprite->setPosition( Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).y ); - - // play animation - auto animation = Animation3D::create(fileName); - if (animation) - { - auto animate = Animate3D::create(animation); - animate->setSpeed(1); - sprite->runAction(RepeatForever::create(animate)); - } - - //add to scene - layer3D->addChild(sprite); - - // add camera - auto camera=Camera::createPerspective(60, (GLfloat)winSize.width/winSize.height, 1, 1000); - camera->setCameraFlag(CameraFlag::USER1);// set camera flag - camera->setPosition3D(Vec3(0, 0, 230) + sprite->getPosition3D()); - camera->lookAt(sprite->getPosition3D(), Vec3(0,1,0)); - - // create camera action - auto action = MoveBy::create(3, Vec2(100, 0)); - auto action_back = action->reverse(); - auto action1 = MoveBy::create(3, Vec2(0, 100)); - auto action_back1 = action1->reverse(); - auto seq = Sequence::create( action, action_back, action1, action_back1, nullptr ); - - // run camera action - camera->runAction( RepeatForever::create(seq) ); - - layer3D->addChild(camera); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // set camera mask - // when node's camera-mask & camer-flag result is true, the node is visible for this camera. - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - layer3D->setCameraMask(0x2); - - // return the scene - return scene; -} diff --git a/src/chapter9/Chapter9_5.h b/src/chapter9/Chapter9_5.h deleted file mode 100644 index 79c63bd..0000000 --- a/src/chapter9/Chapter9_5.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef __CHAPTER_9_5_H__ -#define __CHAPTER_9_5_H__ - -#include "cocos2d.h" - -USING_NS_CC; - -class Chapter9_5 : public Ref -{ - public: - static cocos2d::Scene* createScene(); -}; - -#endif // __CHAPTER_9_3_H__ diff --git a/src/chapter9/Chapter9_6.cpp b/src/chapter9/Chapter9_6.cpp deleted file mode 100644 index 23e7925..0000000 --- a/src/chapter9/Chapter9_6.cpp +++ /dev/null @@ -1,131 +0,0 @@ -#include "Chapter9_6.h" -#include "Chapter9.h" -#include "DrawNode3D.h" - -USING_NS_CC; - -Scene* Chapter9_6::createScene() -{ - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto scene = Scene::create(); - - auto layer = ABBTest::create(); - scene->addChild(layer); - - // return the scene - return scene; -} - -ABBTest::ABBTest(): -_drawAABB(nullptr), -_camera(nullptr), -_pick(false) -{ - auto listener = EventListenerTouchAllAtOnce::create(); - listener->onTouchesBegan = CC_CALLBACK_2(ABBTest::onTouchesBegan, this); - listener->onTouchesEnded = CC_CALLBACK_2(ABBTest::onTouchesEnded, this); - listener->onTouchesMoved = CC_CALLBACK_2(ABBTest::onTouchesMoved, this); - _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this); - - auto s = Director::getInstance()->getWinSize(); - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - auto winSize = Director::getInstance()->getWinSize(); - - // add title - auto label = LabelTTF::create("AABB", "Arial", 24); - label->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - 30); - this->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Arial", 24); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9::createScene()); - }); - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition( Vec2::ZERO ); - menuItem->setPosition( Vec2(origin.x+visibleSize.width - 80, origin.y + 25) ); - this->addChild(menu, 1); - - auto layer3D = Layer::create(); - - addChild(layer3D); - - // add camera - _camera=Camera::createPerspective(60, (GLfloat)winSize.width/winSize.height, 1, 1000); - _camera->setCameraFlag(CameraFlag::USER1);// set camera flag - _camera->setPosition3D(Vec3(0, 50, 230)); - _camera->lookAt(Vec3(0,0,0), Vec3(0,1,0)); - layer3D->addChild(_camera); - - _drawAABB = DrawNode3D::create(); - layer3D->addChild(_drawAABB); - - layer3D->setCameraMask(0x2); - scheduleUpdate(); -} - -void ABBTest::update(float dt) -{ - if (_pick) - return; - - _drawAABB->clear(); - - Vec3 extents = Vec3(60, 30, 60); - _aabb = AABB(-extents, extents); - - static float angle = 0.f; - if (angle > 360) { - angle = 0; - } - angle+=0.01f; - - Mat4 mat = Mat4::IDENTITY; - mat.rotate(Vec3::UNIT_Y, angle); - - _aabb.transform(mat); - Vec3 corners[8] = {}; - _aabb.getCorners(corners); - - _drawAABB->setPosition3D(_aabb.getCenter()); - _drawAABB->drawCube(corners, Color4F(0,0,1,1)); -} - -void ABBTest::onTouchesBegan(const std::vector& touches, Event* event) -{ - for (auto touch: touches) - { - auto location = touch->getLocationInView(); - Vec3 nearP(location.x, location.y, -1.0f), farP(location.x, location.y, 1.0f); - auto size = Director::getInstance()->getWinSize(); - _camera->unproject(size, &nearP, &nearP); - _camera->unproject(size, &farP, &farP); - - Vec3 dir(farP - nearP); - dir.normalize(); - Ray ray(_camera->getPosition3D(), dir); - - if(ray.intersects(_aabb)) - { - _pick = true; - return; - } - } - _pick = false; -} - -void ABBTest::onTouchesEnded(const std::vector& touches, Event* event) -{ - _pick = false; -} - -void ABBTest::onTouchesMoved(const std::vector& touches, Event* event) -{ - -} \ No newline at end of file diff --git a/src/chapter9/Chapter9_6.h b/src/chapter9/Chapter9_6.h deleted file mode 100644 index 3ba62df..0000000 --- a/src/chapter9/Chapter9_6.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef __CHAPTER_9_6_H__ -#define __CHAPTER_9_6_H__ - -#include "cocos2d.h" -#include "DrawNode3D.h" - -USING_NS_CC; - -class Chapter9_6 : public Ref -{ - public: - static cocos2d::Scene* createScene(); -}; - -class ABBTest : public Layer -{ -public: - CREATE_FUNC(ABBTest); - ABBTest(); - virtual void update(float dt) override; - void onTouchesBegan(const std::vector& touches, Event* event); - void onTouchesEnded(const std::vector& touches, Event* event); - void onTouchesMoved(const std::vector& touches, Event* event); -protected: - DrawNode3D* _drawAABB; - AABB _aabb; - Camera* _camera; - bool _pick; -}; - -#endif // __CHAPTER_9_6_H__ diff --git a/src/chapter9/Chapter9_7.cpp b/src/chapter9/Chapter9_7.cpp deleted file mode 100644 index 9e39f69..0000000 --- a/src/chapter9/Chapter9_7.cpp +++ /dev/null @@ -1,127 +0,0 @@ -#include "Chapter9_7.h" -#include "Chapter9.h" -#include "DrawNode3D.h" - -USING_NS_CC; - -Scene* Chapter9_7::createScene() -{ - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto scene = Scene::create(); - - auto layer = OBBTest::create(); - scene->addChild(layer); - - // return the scene - return scene; -} - -OBBTest::OBBTest(): -_drawAABB(nullptr), -_pick(false), -_camera(nullptr) -{ - auto listener = EventListenerTouchAllAtOnce::create(); - listener->onTouchesBegan = CC_CALLBACK_2(OBBTest::onTouchesBegan, this); - listener->onTouchesEnded = CC_CALLBACK_2(OBBTest::onTouchesEnded, this); - listener->onTouchesMoved = CC_CALLBACK_2(OBBTest::onTouchesMoved, this); - _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this); - - auto s = Director::getInstance()->getWinSize(); - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - auto winSize = Director::getInstance()->getWinSize(); - - // add title - auto label = LabelTTF::create("OBB", "Arial", 24); - label->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - 30); - - this->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Arial", 24); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9::createScene()); - }); - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition( Vec2::ZERO ); - menuItem->setPosition( Vec2(origin.x+visibleSize.width - 80, origin.y + 25) ); - this->addChild(menu, 1); - - auto layer3D=Layer::create(); - addChild(layer3D); - - // add camera - _camera=Camera::createPerspective(60, (GLfloat)winSize.width/winSize.height, 1, 1000); - _camera->setCameraFlag(CameraFlag::USER1);// set camera flag - _camera->setPosition3D(Vec3(0, 50, 230)); - _camera->lookAt(Vec3(0,0,0), Vec3(0,1,0)); - layer3D->addChild(_camera); - - _drawAABB = DrawNode3D::create(); - - Vec3 extents = Vec3(60, 30, 100); - AABB aabb = AABB(-extents, extents); - _obb = OBB(aabb); - layer3D->addChild(_drawAABB); - - layer3D->setCameraMask(2); - - scheduleUpdate(); -} - -void OBBTest::update(float dt) -{ - if (_pick) - return; - - _drawAABB->clear(); - - Mat4 mat = Mat4::IDENTITY; - mat.rotate(Vec3::UNIT_Y, 0.01f); - - _obb.transform(mat); - Vec3 corners[8] = {}; - _obb.getCorners(corners); - - _drawAABB->setPosition3D(_obb._center); - _drawAABB->drawCube(corners, Color4F(0,0,1,1)); -} - -void OBBTest::onTouchesBegan(const std::vector& touches, Event* event) -{ - for (auto touch: touches) - { - auto location = touch->getLocationInView(); - Vec3 nearP(location.x, location.y, -1.0f), farP(location.x, location.y, 1.0f); - auto size = Director::getInstance()->getWinSize(); - _camera->unproject(size, &nearP, &nearP); - _camera->unproject(size, &farP, &farP); - - Vec3 dir(farP - nearP); - dir.normalize(); - Ray ray(_camera->getPosition3D(), dir); - - if(ray.intersects(_obb)) - { - _pick = true; - return; - } - } - _pick = false; -} - -void OBBTest::onTouchesEnded(const std::vector& touches, Event* event) -{ - _pick = false; -} - -void OBBTest::onTouchesMoved(const std::vector& touches, Event* event) -{ - -} \ No newline at end of file diff --git a/src/chapter9/Chapter9_7.h b/src/chapter9/Chapter9_7.h deleted file mode 100644 index 53b22b7..0000000 --- a/src/chapter9/Chapter9_7.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef __CHAPTER_9_7_H__ -#define __CHAPTER_9_7_H__ - -#include "cocos2d.h" -#include "DrawNode3D.h" - -USING_NS_CC; - -class Chapter9_7 : public Ref -{ - public: - static cocos2d::Scene* createScene(); -}; - -class OBBTest : public Layer -{ -public: - CREATE_FUNC(OBBTest); - OBBTest(); - virtual void update(float dt) override; - void onTouchesBegan(const std::vector& touches, Event* event); - void onTouchesEnded(const std::vector& touches, Event* event); - void onTouchesMoved(const std::vector& touches, Event* event); -protected: - DrawNode3D* _drawAABB; - OBB _obb; - Sprite3D* _sprite; - Camera* _camera; - bool _pick; -}; - -#endif // __CHAPTER_10_6_H__ diff --git a/src/chapter9/Chapter9_8.cpp b/src/chapter9/Chapter9_8.cpp deleted file mode 100644 index bdbad5a..0000000 --- a/src/chapter9/Chapter9_8.cpp +++ /dev/null @@ -1,111 +0,0 @@ -#include "Chapter9_8.h" -#include "Chapter9.h" -#include "DrawNode3D.h" - -USING_NS_CC; - -Scene* Chapter9_8::createScene() -{ - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - auto winSize = Director::getInstance()->getWinSize(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("BillBoard", "Arial", 24); - label->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Arial", 24); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9::createScene()); - }); - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition( Vec2::ZERO ); - menuItem->setPosition( Vec2(origin.x+visibleSize.width - 80, origin.y + 25) ); - scene->addChild(menu, 1); - - - auto layer3D=Layer::create(); - scene->addChild(layer3D,2); - - static std::vector _billboards; - for (int i = -4; i < 4; ++i) - { - auto billboard = BillBoard::create("Blue_Front1.png"); - billboard->setScale(0.5f); - billboard->setPosition3D(Vec3(i * 50, 0.0f, 0)); - billboard->setBlendFunc(cocos2d::BlendFunc::ALPHA_NON_PREMULTIPLIED); - _billboards.push_back(billboard); - layer3D->addChild(billboard); - } - - for (int i = -4; i < 4; ++i) - { - auto billboard = BillBoard::create("Blue_Front1.png"); - billboard->setScale(0.5f); - billboard->setPosition3D(Vec3(i * 50, 0.0f, -50)); - billboard->setBlendFunc(cocos2d::BlendFunc::ALPHA_NON_PREMULTIPLIED); - _billboards.push_back(billboard); - layer3D->addChild(billboard); - } - - // add camera - auto camera=Camera::createPerspective(60, (GLfloat)winSize.width/winSize.height, 1, 1000); - camera->setCameraFlag(CameraFlag::USER1);// set camera flag - camera->setPosition3D(Vec3(0, 150, 230)); - camera->lookAt(Vec3(0, 0, 0), Vec3(0,1,0)); - - // create camera action - auto action = MoveBy::create(3, Vec2(100, 0)); - auto actionrev = action->reverse(); - auto actionback = MoveBy::create(3, Vec2(-100, 0)); - auto actionbackrev = actionback->reverse(); - auto seq = Sequence::create( action, actionrev, actionback, actionbackrev, nullptr ); - - // run camera action - camera->runAction( RepeatForever::create(seq) ); - - layer3D->addChild(camera); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // set camera mask - // when node's camera-mask & camer-flag result is true, the node is visible for this camera. - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - layer3D->setCameraMask(0x2); - - // add select menue - auto label1 = LabelTTF::create("Point Oriented", "Arial", 24); - auto item1 = MenuItemLabel::create(label1); - item1->setCallback([&](cocos2d::Ref *sender) { - for (auto& billboard : _billboards) { - billboard->setMode(BillBoard::Mode::VIEW_POINT_ORIENTED); - } - }); - auto label2 = LabelTTF::create("Plane Oriented", "Arial", 24); - auto item2 = MenuItemLabel::create(label2); - item2->setCallback([&](cocos2d::Ref *sender) { - for (auto& billboard : _billboards) { - billboard->setMode(BillBoard::Mode::VIEW_PLANE_ORIENTED); - } - }); - auto itemSize = item1->getContentSize(); - item1->setPosition( Vec2(origin.x + 100, origin.y+visibleSize.height - itemSize.height * 2)); - item2->setPosition( Vec2(origin.x + 100, origin.y+visibleSize.height - itemSize.height * 3)); - - auto menuSelect = CCMenu::create(item1, item2, NULL); - menuSelect->setPosition(Vec2(0,0)); - scene->addChild(menuSelect, 1); - - // return the scene - return scene; -} \ No newline at end of file diff --git a/src/chapter9/Chapter9_8.h b/src/chapter9/Chapter9_8.h deleted file mode 100644 index 1dc7bd4..0000000 --- a/src/chapter9/Chapter9_8.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef __CHAPTER_9_8_H__ -#define __CHAPTER_9_8_H__ - -#include "cocos2d.h" -#include "DrawNode3D.h" - -USING_NS_CC; - -class Chapter9_8 : public Ref -{ - public: - static cocos2d::Scene* createScene(); -}; - -#endif // __CHAPTER_9_8_H__ diff --git a/src/chapter9/Chapter9_9.cpp b/src/chapter9/Chapter9_9.cpp deleted file mode 100755 index d396b00..0000000 --- a/src/chapter9/Chapter9_9.cpp +++ /dev/null @@ -1,200 +0,0 @@ -#include "Chapter9_9.h" -#include "Chapter9.h" - - -USING_NS_CC; - -Scene* Chapter9_9::createScene() -{ - Size visibleSize = Director::getInstance()->getVisibleSize(); - Vec2 origin = Director::getInstance()->getVisibleOrigin(); - auto winSize = Director::getInstance()->getWinSize(); - - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // create a scene - // 'scene' is an autorelease object - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - auto scene = Scene::create(); - - // add title - auto label = LabelTTF::create("Light", "Arial", 24); - label->setPosition(Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height/2).x, - Vec2(origin.x+visibleSize.width/2, origin.y+visibleSize.height).y - 30); - - scene->addChild(label, -1); - - //add the menu item for back to main menu - label = LabelTTF::create("MainMenu", "Arial", 24); - auto menuItem = MenuItemLabel::create(label); - menuItem->setCallback([&](cocos2d::Ref *sender) { - Director::getInstance()->replaceScene(Chapter9::createScene()); - }); - auto menu = Menu::create(menuItem, nullptr); - menu->setPosition( Vec2::ZERO ); - menuItem->setPosition( Vec2(origin.x+visibleSize.width - 80, origin.y + 25) ); - scene->addChild(menu, 1); - - auto layer = Layer::create(); - scene->addChild(layer); - - //add sprite3d - { - std::string fileName = "orc.c3b"; - auto sprite = Sprite3D::create(fileName); - sprite->setRotation3D(Vec3(0.0, 180.0, 0.0)); - sprite->setPosition(Vec2(-30.0, 0.0)); - sprite->setScale(2.0); - auto sp = Sprite3D::create("axe.c3b"); - sprite->getAttachNode("Bip001 R Hand")->addChild(sp); - auto animation = Animation3D::create(fileName); - if (animation) - { - auto animate = Animate3D::create(animation); - sprite->runAction(RepeatForever::create(animate)); - } - layer->addChild(sprite); - } - - { - std::string fileName = "sphere.c3b"; - auto sprite = Sprite3D::create(fileName); - sprite->setScale(2.0f); - sprite->setPosition(Vec2(30.0, 0.0)); - layer->addChild(sprite); - } - - { - std::string fileName = "plane.obj"; - auto sprite = Sprite3D::create(fileName); - sprite->setTexture("planetex.png"); - sprite->setScale(20.0f); - sprite->setPosition(Vec2(0.0, -10.0f)); - layer->addChild(sprite); - } - - //end add sprite3d - - //add lights - auto s = Director::getInstance()->getWinSize(); - auto ambientLight = AmbientLight::create(Color3B(200, 200, 200)); - ambientLight->setEnabled(true); - layer->addChild(ambientLight); - - auto directionalLight = DirectionLight::create(Vec3(0.0f, -1.0f, 0.0f), Color3B(200, 200, 200)); - directionalLight->setEnabled(false); - layer->addChild(directionalLight); - - auto pointLight = PointLight::create(Vec3(-200.0f, 200.0f, 0.0f), Color3B(200, 200, 200), 10000.0f); - pointLight->setEnabled(false); - layer->addChild(pointLight); - - auto spotLight = SpotLight::create(Vec3(0.0f, -1.0f, 0.0f), Vec3(-200.0f, 200.0f, 0.0f), Color3B(200, 200, 200), 0.0f, 0.5f, 10000.0f); - spotLight->setEnabled(false); - layer->addChild(spotLight); - - { - auto tintto1 = TintTo::create(1, 0, 0, 255); - auto tintto2 = TintTo::create(1, 0, 255, 0); - auto tintto3 = TintTo::create(1, 255, 0, 0); - auto tintto4 = TintTo::create(1, 255, 255, 255); - auto moveby = MoveBy::create(2.0, Vec2(400.0f, 0.0f)); - auto seq = Sequence::create(tintto1, moveby, tintto2, moveby->reverse(), tintto3, moveby, tintto4, moveby->reverse(), nullptr); - ambientLight->runAction(RepeatForever::create(seq)); - } - - { - auto tintto1 = TintTo::create(1, 255, 0, 0); - auto tintto2 = TintTo::create(1, 0, 255, 0); - auto tintto3 = TintTo::create(1, 0, 0, 255); - auto tintto4 = TintTo::create(1, 255, 255, 255); - auto moveby = MoveBy::create(2.0, Vec2(400.0f, 0.0f)); - auto seq = Sequence::create(tintto1, moveby, tintto2, moveby->reverse(), tintto3, moveby, tintto4, moveby->reverse(), nullptr); - directionalLight->runAction(RepeatForever::create(seq)); - } - - { - auto tintto1 = TintTo::create(1, 255, 0, 0); - auto tintto2 = TintTo::create(1, 0, 255, 0); - auto tintto3 = TintTo::create(1, 0, 0, 255); - auto tintto4 = TintTo::create(1, 255, 255, 255); - auto moveby = MoveBy::create(2.0, Vec2(400.0f, 0.0f)); - auto seq = Sequence::create(tintto1, moveby, tintto2, moveby->reverse(), tintto3, moveby, tintto4, moveby->reverse(), nullptr); - pointLight->runAction(RepeatForever::create(seq)); - } - - { - auto tintto1 = TintTo::create(1, 255, 0, 0); - auto tintto2 = TintTo::create(1, 0, 255, 0); - auto tintto3 = TintTo::create(1, 0, 0, 255); - auto tintto4 = TintTo::create(1, 255, 255, 255); - auto moveby = MoveBy::create(2.0, Vec2(400.0f, 0.0f)); - auto seq = Sequence::create(tintto1, moveby, tintto2, moveby->reverse(), tintto3, moveby, tintto4, moveby->reverse(), nullptr); - spotLight->runAction(RepeatForever::create(seq)); - } - //end add lights - - { - auto size = Director::getInstance()->getWinSize(); - auto ambientLightLabel = LabelTTF::create("Ambient Light ON", "Arial", 24); - auto menuItem0 = MenuItemLabel::create(ambientLightLabel); - menuItem0->setCallback([=](cocos2d::Ref *sender) { - char str[32]; - bool isON = !ambientLight->isEnabled(); - sprintf(str, "Ambient Light %s", isON == true? "ON":"OFF"); - ambientLight->setEnabled(isON); - ambientLightLabel->setString(str); - }); - - auto directionalLightLabel = LabelTTF::create("Directional Light OFF", "Arial", 24); - auto menuItem1 = MenuItemLabel::create(directionalLightLabel); - menuItem1->setCallback([=](cocos2d::Ref *sender) { - char str[32]; - bool isON = !directionalLight->isEnabled(); - sprintf(str, "Directional Light %s", isON == true? "ON":"OFF"); - directionalLight->setEnabled(isON); - directionalLightLabel->setString(str); - }); - - auto pointLightLabel = LabelTTF::create("Point Light OFF", "Arial", 24); - auto menuItem2 = MenuItemLabel::create(pointLightLabel); - menuItem2->setCallback([=](cocos2d::Ref *sender) { - char str[32]; - bool isON = !pointLight->isEnabled(); - sprintf(str, "Point Light %s", isON == true? "ON":"OFF"); - pointLight->setEnabled(isON); - pointLightLabel->setString(str); - }); - - auto spotLightLabel = LabelTTF::create("Spot Light OFF", "Arial", 24); - auto menuItem3 = MenuItemLabel::create(spotLightLabel); - menuItem3->setCallback([=](cocos2d::Ref *sender) { - char str[32]; - bool isON = !spotLight->isEnabled(); - sprintf(str, "Spot Light %s", isON == true? "ON":"OFF"); - spotLight->setEnabled(isON); - spotLightLabel->setString(str); - }); - - auto menu = Menu::create(menuItem0, menuItem1, menuItem2, menuItem3, nullptr); - menu->setPosition(Vec2::ZERO); - menuItem0->setAnchorPoint(Vec2::ANCHOR_TOP_LEFT); - menuItem0->setPosition( Vec2(origin.x, origin.y + visibleSize.height - 50) ); - menuItem1->setAnchorPoint(Vec2::ANCHOR_TOP_LEFT); - menuItem1->setPosition( Vec2(origin.x, origin.y + visibleSize.height - 100) ); - menuItem2->setAnchorPoint(Vec2::ANCHOR_TOP_LEFT); - menuItem2->setPosition( Vec2(origin.x, origin.y + visibleSize.height - 150)); - menuItem3->setAnchorPoint(Vec2::ANCHOR_TOP_LEFT); - menuItem3->setPosition( Vec2(origin.x, origin.y + visibleSize.height - 200)); - scene->addChild(menu); - } - - auto camera = Camera::createPerspective(60, (GLfloat)winSize.width / winSize.height, 1.0f, 1000.0f); - camera->setCameraFlag(CameraFlag::USER1); - camera->setPosition3D(Vec3(0.0, 100, 100)); - camera->lookAt(Vec3(0.0, 0.0, 0.0), Vec3(0.0, 1.0, 0.0)); - layer->addChild(camera); - layer->setCameraMask((unsigned short)CameraFlag::USER1); - - // return the scene - return scene; -} \ No newline at end of file diff --git a/src/chapter9/Chapter9_9.h b/src/chapter9/Chapter9_9.h deleted file mode 100755 index a6c8612..0000000 --- a/src/chapter9/Chapter9_9.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef __CHAPTER_9_9_H__ -#define __CHAPTER_9_9_H__ - -#include "cocos2d.h" - -USING_NS_CC; - -class Chapter9_9 : public Ref -{ -public: - static cocos2d::Scene* createScene(); -}; - -#endif // __CHAPTER_9_9_H__ \ No newline at end of file diff --git a/src/chapter9/DrawNode3D.cpp b/src/chapter9/DrawNode3D.cpp deleted file mode 100644 index 3760e0c..0000000 --- a/src/chapter9/DrawNode3D.cpp +++ /dev/null @@ -1,207 +0,0 @@ -#include "DrawNode3D.h" - -NS_CC_BEGIN - - -DrawNode3D::DrawNode3D() -: _vao(0) -, _vbo(0) -, _bufferCapacity(0) -, _bufferCount(0) -, _buffer(nullptr) -, _dirty(false) -{ - _blendFunc = BlendFunc::ALPHA_PREMULTIPLIED; -} - -DrawNode3D::~DrawNode3D() -{ - free(_buffer); - _buffer = nullptr; - - glDeleteBuffers(1, &_vbo); - _vbo = 0; - - if (Configuration::getInstance()->supportsShareableVAO()) - { - glDeleteVertexArrays(1, &_vao); - GL::bindVAO(0); - _vao = 0; - } -} - -DrawNode3D* DrawNode3D::create() -{ - DrawNode3D* ret = new (std::nothrow) DrawNode3D(); - if (ret && ret->init()) - { - ret->autorelease(); - } - else - { - CC_SAFE_DELETE(ret); - } - - return ret; -} - -void DrawNode3D::ensureCapacity(int count) -{ - CCASSERT(count>=0, "capacity must be >= 0"); - - if(_bufferCount + count > _bufferCapacity) - { - _bufferCapacity += MAX(_bufferCapacity, count); - _buffer = (V3F_C4B*)realloc(_buffer, _bufferCapacity*sizeof(V3F_C4B)); - } -} - -bool DrawNode3D::init() -{ - _blendFunc = BlendFunc::ALPHA_PREMULTIPLIED; - - setGLProgramState(GLProgramState::getOrCreateWithGLProgramName(GLProgram::SHADER_NAME_POSITION_COLOR)); - - ensureCapacity(512); - - if (Configuration::getInstance()->supportsShareableVAO()) - { - glGenVertexArrays(1, &_vao); - GL::bindVAO(_vao); - } - - glGenBuffers(1, &_vbo); - glBindBuffer(GL_ARRAY_BUFFER, _vbo); - glBufferData(GL_ARRAY_BUFFER, sizeof(V3F_C4B)* _bufferCapacity, _buffer, GL_STREAM_DRAW); - - glEnableVertexAttribArray(GLProgram::VERTEX_ATTRIB_POSITION); - glVertexAttribPointer(GLProgram::VERTEX_ATTRIB_POSITION, 3, GL_FLOAT, GL_FALSE, sizeof(V3F_C4B), (GLvoid *)offsetof(V3F_C4B, vertices)); - - glEnableVertexAttribArray(GLProgram::VERTEX_ATTRIB_COLOR); - glVertexAttribPointer(GLProgram::VERTEX_ATTRIB_COLOR, 4, GL_UNSIGNED_BYTE, GL_TRUE, sizeof(V3F_C4B), (GLvoid *)offsetof(V3F_C4B, colors)); - - glBindBuffer(GL_ARRAY_BUFFER, 0); - - if (Configuration::getInstance()->supportsShareableVAO()) - { - GL::bindVAO(0); - } - - CHECK_GL_ERROR_DEBUG(); - - _dirty = true; - -#if CC_ENABLE_CACHE_TEXTURE_DATA - // Need to listen the event only when not use batchnode, because it will use VBO - auto listener = EventListenerCustom::create(EVENT_COME_TO_FOREGROUND, [this](EventCustom* event){ - /** listen the event that coming to foreground on Android */ - this->init(); - }); - - _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this); -#endif - - return true; -} - -void DrawNode3D::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) -{ - _customCommand.init(_globalZOrder); - _customCommand.func = CC_CALLBACK_0(DrawNode3D::onDraw, this, transform, flags); - renderer->addCommand(&_customCommand); -} - -void DrawNode3D::onDraw(const Mat4 &transform, uint32_t flags) -{ - auto glProgram = getGLProgram(); - glProgram->use(); - glProgram->setUniformsForBuiltins(transform); - glEnable(GL_DEPTH_TEST); - GL::blendFunc(_blendFunc.src, _blendFunc.dst); - - if (_dirty) - { - glBindBuffer(GL_ARRAY_BUFFER, _vbo); - glBufferData(GL_ARRAY_BUFFER, sizeof(V3F_C4B)*_bufferCapacity, _buffer, GL_STREAM_DRAW); - _dirty = false; - } - if (Configuration::getInstance()->supportsShareableVAO()) - { - GL::bindVAO(_vao); - } - else - { - GL::enableVertexAttribs(GL::VERTEX_ATTRIB_FLAG_POS_COLOR_TEX); - - glBindBuffer(GL_ARRAY_BUFFER, _vbo); - // vertex - glVertexAttribPointer(GLProgram::VERTEX_ATTRIB_POSITION, 3, GL_FLOAT, GL_FALSE, sizeof(V3F_C4B), (GLvoid *)offsetof(V3F_C4B, vertices)); - - // color - glVertexAttribPointer(GLProgram::VERTEX_ATTRIB_COLOR, 4, GL_UNSIGNED_BYTE, GL_TRUE, sizeof(V3F_C4B), (GLvoid *)offsetof(V3F_C4B, colors)); - } - - glDrawArrays(GL_LINES, 0, _bufferCount); - glBindBuffer(GL_ARRAY_BUFFER, 0); - - CC_INCREMENT_GL_DRAWN_BATCHES_AND_VERTICES(1,_bufferCount); - glDisable(GL_DEPTH_TEST); - CHECK_GL_ERROR_DEBUG(); -} - -void DrawNode3D::drawLine(const Vec3 &from, const Vec3 &to, const Color4F &color) -{ - unsigned int vertex_count = 2; - ensureCapacity(vertex_count); - - Color4B col = Color4B(color); - V3F_C4B a = {Vec3(from.x, from.y, from.z), col}; - V3F_C4B b = {Vec3(to.x, to.y, to.z), col, }; - - V3F_C4B *lines = (V3F_C4B *)(_buffer + _bufferCount); - lines[0] = a; - lines[1] = b; - - _bufferCount += vertex_count; - _dirty = true; - -} - -void DrawNode3D::drawCube(Vec3* vertices, const Color4F &color) -{ - // front face - drawLine(vertices[0], vertices[1], color); - drawLine(vertices[1], vertices[2], color); - drawLine(vertices[2], vertices[3], color); - drawLine(vertices[3], vertices[0], color); - - // back face - drawLine(vertices[4], vertices[5], color); - drawLine(vertices[5], vertices[6], color); - drawLine(vertices[6], vertices[7], color); - drawLine(vertices[7], vertices[4], color); - - // edge - drawLine(vertices[0], vertices[7], color); - drawLine(vertices[1], vertices[6], color); - drawLine(vertices[2], vertices[5], color); - drawLine(vertices[3], vertices[4], color); -} - -void DrawNode3D::clear() -{ - _bufferCount = 0; - _dirty = true; -} - -const BlendFunc& DrawNode3D::getBlendFunc() const -{ - return _blendFunc; -} - -void DrawNode3D::setBlendFunc(const BlendFunc &blendFunc) -{ - _blendFunc = blendFunc; -} - -NS_CC_END diff --git a/src/chapter9/DrawNode3D.h b/src/chapter9/DrawNode3D.h deleted file mode 100644 index 07f8727..0000000 --- a/src/chapter9/DrawNode3D.h +++ /dev/null @@ -1,91 +0,0 @@ -#ifndef __DRAW_NODE_3D_H__ -#define __DRAW_NODE_3D_H__ - -#include "cocos2d.h" - -NS_CC_BEGIN - -/** - * Copy DrawNode for 3D geometry drawing. - */ -class DrawNode3D: public Node -{ -public: - /** creates and initialize a DrawNode3D node */ - static DrawNode3D* create(); - - /** - * Draw 3D Line - */ - void drawLine(const Vec3 &from, const Vec3 &to, const Color4F &color); - - /** - * Draw 3D cube - * @param point to a vertex array who has 8 element. - * vertices[0]:Left-top-front, - * vertices[1]:Left-bottom-front, - * vertices[2]:Right-bottom-front, - * vertices[3]:Right-top-front, - * vertices[4]:Right-top-back, - * vertices[5]:Right-bottom-back, - * vertices[6]:Left-bottom-back, - * vertices[7]:Left-top-back. - * @param color - */ - void drawCube(Vec3* vertices, const Color4F &color); - - /** Clear the geometry in the node's buffer. */ - void clear(); - - /** - * @js NA - * @lua NA - */ - const BlendFunc& getBlendFunc() const; - - /** - * @code - * When this function bound into js or lua,the parameter will be changed - * In js: var setBlendFunc(var src, var dst) - * @endcode - * @lua NA - */ - void setBlendFunc(const BlendFunc &blendFunc); - - void onDraw(const Mat4 &transform, uint32_t flags); - - // Overrides - virtual void draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) override; - -CC_CONSTRUCTOR_ACCESS: - DrawNode3D(); - virtual ~DrawNode3D(); - virtual bool init(); - -protected: - struct V3F_C4B - { - Vec3 vertices; - Color4B colors; - }; - void ensureCapacity(int count); - - GLuint _vao; - GLuint _vbo; - - int _bufferCapacity; - GLsizei _bufferCount; - V3F_C4B* _buffer; - - BlendFunc _blendFunc; - CustomCommand _customCommand; - - bool _dirty; - -private: - CC_DISALLOW_COPY_AND_ASSIGN(DrawNode3D); -}; - -NS_CC_END - -#endif // __DRAW_NODE_3D_H__