{"id":166709,"date":"2013-01-22T21:23:03","date_gmt":"2013-01-22T17:23:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=166709"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=166709","title":{"rendered":"<span class=\"post_title\">\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 CocosBuilder<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/a9a\/8bc\/700\/a9a8bc700d28d9bf4d44626c127cca53.png\"\/><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/www.raywenderlich.com\/23996\/introduction-to-cocosbuilder\">Introduction to CocosBuilder<\/a><\/p>\n<p>  CocosBuilder \u2013 \u044d\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043b\u0435\u0433\u043a\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043f\u0440\u0430\u0439\u0442\u0430\u043c\u0438, \u043c\u0430\u043a\u0435\u0442\u0430\u043c\u0438 \u0438 \u0441\u0446\u0435\u043d\u0430\u043c\u0438 \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0432\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0439 Cocos2D.<\/p>\n<p>  CocosBuilder \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0439 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u043a\u0438 \u043c\u0435\u043d\u044e \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u0441\u0446\u0435\u043d, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043f\u043e \u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0435 \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435.<br \/>  \u0412 \u0445\u043e\u0434\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u0432\u044b \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0438\u0433\u0440\u0443 Cat Jump. \u0412\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435, \u043a\u0430\u043a CocosBuilder \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043c\u0430\u0441\u0441\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u043a\u043e\u0434\u0430.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f CocosBuilder, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0430\u0436\u0435 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0432 \u0438\u0433\u0440\u0435 \u043d\u0430 Cocos2D \u0431\u044b\u043b\u043e \u0433\u043e\u043b\u043e\u0432\u043d\u043e\u0439 \u0431\u043e\u043b\u044c\u044e \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430. \u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043c\u0435\u043d\u044e \u0438\u043b\u0438 \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 \u0438\u0433\u0440\u0443, \u0432\u044b \u043e\u0431\u044b\u0447\u043d\u043e \u0434\u0435\u043b\u0430\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u044d\u0442\u043e\u0433\u043e:  <\/p>\n<ul>\n<li>\u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0443\u0433\u0430\u0434\u0430\u0442\u044c. \u201c\u041c\u043c\u043c\u2026 \u0434\u0443\u043c\u0430\u044e, \u044d\u0442\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0433\u0434\u0435-\u0442\u043e 50 \u043d\u0430 50.\u201d<\/li>\n<li>\u0417\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u201c\u0410\u0433\u0430, \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c\u2026\u201d<\/li>\n<li>\u0415\u0449\u0451 \u043f\u043e\u043f\u044b\u0442\u043a\u0430. \u201c\u0414\u0443\u043c\u0430\u044e, 60 \u043d\u0430 50 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0448\u0435!\u201d<\/li>\n<li>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0438 \u0432\u0441\u0451 \u043f\u043e-\u043d\u043e\u0432\u043e\u0439. \u201c\u0427\u0451\u0440\u0442, \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043d\u0435 \u0442\u043e. \u0413\u0440\u0440\u0440!\u201d<\/li>\n<\/ul>\n<p>  CocosBuilder \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442 \u043a\u0430\u043a \u0432\u0441\u0435 \u043c\u0430\u0441\u0441\u043e\u0432\u044b\u0435 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0441\u043f\u0440\u0430\u0439\u0442\u0430. CocosBuilder \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442 \u0432\u0430\u043c \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043b\u043e\u0433\u0438\u043a\u0435 \u0438\u0433\u0440\u044b, \u0430 \u043d\u0435 \u0440\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u0435\u0431\u0435 \u0432\u043e\u043b\u043e\u0441\u044b, \u043f\u0440\u043e\u0434\u0438\u0440\u0430\u044f\u0441\u044c \u0447\u0435\u0440\u0435\u0437 \u0432\u0430\u0448 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0430\u0441 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u044b\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043c \u2014 \u0430 \u044d\u0442\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u0445\u043e\u0440\u043e\u0448\u043e, \u043d\u0435 \u0442\u0430\u043a \u043b\u0438?<\/p>\n<p>  \u042d\u0442\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445 \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0432\u0430\u043c, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c CocosBuilder \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432. \u0412\u044b \u0443\u0437\u043d\u0430\u0435\u0442\u0435, \u043a\u0430\u043a \u0432 CocosBuilder \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u0435\u043d\u044e, \u043a\u043d\u043e\u043f\u043a\u0438, \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0447\u0430\u0441\u0442\u0438\u0446\u044b (particle systems), \u0441\u043b\u043e\u0438, \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b.<br \/>  \u0412 \u0445\u043e\u0434\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u0432\u044b \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0438\u0433\u0440\u0443 Cat Jump, \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0439 \u0434\u043b\u044f \u0441\u0435\u043c\u0438\u043d\u0430\u0440\u0430 <a href=\"http:\/\/www.raywenderlich.com\/3411\/june-cocos2d-via-minigames\">Cocos2D via Minigames<\/a>. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0412\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435, \u043a\u0430\u043a CocosBuilder \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043c\u0430\u0441\u0441\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u043a\u043e\u0434\u0430.<br \/>  \u042d\u0442\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u043d\u0438\u044f Cocos2D. \u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u043e\u0432\u0438\u0447\u043e\u043a \u0432 Cocos2D, \u043f\u043e\u0447\u0438\u0442\u0430\u0439\u0442\u0435 <a href=\"http:\/\/www.raywenderlich.com\/tutorials#cocos2d\">\u0443\u0440\u043e\u043a\u0438 \u043f\u043e Cocos2D<\/a> \u0441\u043d\u0430\u0447\u0430\u043b\u0430.<\/p>\n<h1>\u0418\u0433\u0440\u0430 Cat Jump<\/h1>\n<p>  \u0418\u0433\u0440\u0430 Cat Jump \u2014 \u044d\u0442\u043e \u0438\u0433\u0440\u0430 \u043f\u0440\u043e \u043a\u043e\u0442\u0430, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u043b\u043e\u0445\u043e\u0439 \u0434\u0435\u043d\u044c. \u041e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u0433\u0443\u043b\u044f\u0435\u0442 \u043f\u043e \u0441\u0432\u043e\u0438\u043c \u0434\u0435\u043b\u0430\u043c, \u0438\u0434\u0451\u0442 \u043f\u043e \u0443\u043b\u0438\u0446\u0435, \u043a\u043e\u0433\u0434\u0430 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043d\u0430 \u043d\u0435\u0433\u043e \u043d\u0430\u0442\u044b\u043a\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435 \u043f\u043e\u0434\u0440\u044f\u0434 \u2014 \u0430\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u0438, \u0433\u0440\u0443\u0437\u043e\u0432\u0438\u043a\u0438, \u0438 \u0434\u0430\u0436\u0435 \u0434\u0435\u0442\u0438 \u043d\u0430 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u0430\u0445!<br \/>  \u0421\u043d\u0438\u043c\u043e\u043a \u044d\u043a\u0440\u0430\u043d\u0430 \u0438\u0437 \u0438\u0433\u0440\u044b \u0432\u044b \u0432\u0438\u0434\u0435\u043b\u0438 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430.<\/p>\n<p>  \u0412\u0430\u0448 \u0431\u0435\u0434\u043d\u044b\u0439 \u043a\u043e\u0442 \u0438\u043c\u0435\u0435\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0436\u0438\u0437\u043d\u0435\u0439 (\u043a\u043e\u043d\u0435\u0447\u043d\u043e 9), \u0438 \u0432\u0430\u0448\u0430 \u0446\u0435\u043b\u044c \u2014 \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u0432 \u0436\u0438\u0432\u044b\u0445 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u043b\u044c\u0448\u0435, \u0438\u0437\u0431\u0435\u0433\u0430\u044f \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439.<br \/>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u0441\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u0432\u0435\u0440\u0441\u0438\u044e <a href=\"http:\/\/cdn1.raywenderlich.com\/downloads\/CatJumpWithoutCocosBuilder.zip\">CatJump \u0431\u0435\u0437 CocosBuilder<\/a>. \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0435\u0433\u043e \u0432 Xcode, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0438 \u043f\u043e\u0438\u0433\u0440\u0430\u0439\u0442\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u2014 \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0432\u0435\u0441\u0435\u043b\u043e!<br \/>  \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043f\u043e\u0438\u0433\u0440\u0430\u0435\u0442\u0435, \u0437\u0430\u0433\u043b\u044f\u043d\u0438\u0442\u0435 \u0432 \u043a\u043e\u0434 \u2014 \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0442\u043e\u043d\u043d\u044b, \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u044f\u043c\u043e \u0432 \u043a\u043e\u0434\u0435, \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0439 \u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u0439 \u043c\u0435\u043d\u044e, \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0441\u043f\u0440\u0430\u0439\u0442\u043e\u0432. \u042d\u0442\u043e \u0432\u0441\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0431\u044b\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u0442\u044f\u0436\u0435\u043b\u043e \u2014 \u0432\u044b \u0443\u0437\u043d\u0430\u0435\u0442\u0435 \u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043b\u0443\u0447\u0448\u0435!<br \/>  \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0432\u044b \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u0438\u0433\u0440\u0443 Cat Jump, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438:  <\/p>\n<ul>\n<li><b>\u041f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043c\u0435\u043d\u044e \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c CocosBuilder.<\/b> \u0421\u0435\u0439\u0447\u0430\u0441 \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043f\u0443\u0442\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0435\u043d\u044e \u0432 \u0436\u0435\u0441\u0442\u043a\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0432 \u043a\u043e\u0434\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445 \u2014 \u0432\u044b \u0443\u0434\u0430\u043b\u0438\u0442\u0435 \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0438 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043c\u0435\u043d\u044e \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c CocosBuilder.<\/li>\n<li><b>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u043a\u0440\u0430\u043d Options.<\/b> \u0412\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u044d\u043a\u0440\u0430\u043d \u0441 \u0442\u0440\u0435\u043c\u044f \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438 \u0432\u044b\u0431\u043e\u0440\u0430 \u0443\u0440\u043e\u0432\u043d\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438: Easy, Medium \u0438 Hard. \u0412\u044b\u0431\u043e\u0440 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u0432 \u043a\u043e\u0434\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/li>\n<li><b>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u043a\u0440\u0430\u043d About.<\/b> \u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0435 \u044d\u043a\u0440\u0430\u043d \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u043a\u0440\u0443\u0442\u043e\u0433\u043e \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0430. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f CocosBuilder, \u0432\u044b \u043d\u0435 \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043d\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u043e\u0434\u0430, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e!<\/li>\n<li><b>\u041f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u044d\u043a\u0440\u0430\u043d \u0438\u0433\u0440\u044b \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c CocosBuilder.<\/b> \u0412\u044b \u0443\u0434\u0430\u043b\u0438\u0442\u0435 \u0440\u0443\u0447\u043d\u043e\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0441\u043f\u0440\u0430\u0439\u0442\u043e\u0432 \u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 CocosBuilder.<\/li>\n<li><b>\u041f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u043a\u0440\u0430\u043d \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0438\u0433\u0440\u044b \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c CocosBuilder.<\/b> \u041e\u043f\u044f\u0442\u044c \u0436\u0435, \u043d\u0438 \u043a\u0430\u043a\u0438\u0445 \u0436\u0435\u0441\u0442\u043a\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0439!<\/li>\n<\/ul>\n<p>  \u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u043e\u0432\u0435\u0442\u044b \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0438\u0441\u043a\u0430\u0442\u044c \u0438 \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 CocosBuilder. \u0412\u044b \u0443\u0437\u043d\u0430\u0435\u0442\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u0441\u0435\u0439\u0447\u0430\u0441 \u0438 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u0435 \u0441\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0442\u043e\u043c.<\/p>\n<h1>\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u044f \u043a \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 CocosBuilder<\/h1>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0435\u0449\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438, \u0442\u043e <a href=\"http:\/\/cocosbuilder.com\/\">\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 CocosBuilder<\/a>. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 2.1. \u0422\u0430\u043a\u0436\u0435 \u0441\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b\u044b \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/d13\/275\/56a\/d1327556a261ac847b172fbae9698124.png\"\/><\/p>\n<p>  \u0420\u0430\u0441\u043f\u0430\u043a\u0443\u0439\u0442\u0435 CocosBuilder \u0438\u0437 \u0441\u043a\u0430\u0447\u0430\u043d\u043d\u043e\u0433\u043e \u0430\u0440\u0445\u0438\u0432\u0430 \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0435\u0433\u043e \u0432 \u043f\u0430\u043f\u043a\u0443 \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<br \/>  \u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 CocosBuilder, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u042d\u0442\u043e \u0442\u043e \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u0438\u0433\u0440\u043e\u0432\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b\/\u0430\u043a\u0442\u0438\u0432\u044b.<\/p>\n<blockquote><p><b>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/b>: \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u0432\u043e\u0451\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432, \u0441 \u0445\u0440\u0430\u043d\u044f\u0449\u0438\u043c\u0438\u0441\u044f \u0442\u0430\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0442\u043e\u0447\u043d\u043e \u043c\u043d\u0435 \u0437\u043d\u0430\u0442\u044c, \u0433\u0434\u0435 \u0432\u0441\u0435 \u043c\u043e\u0438 \u0444\u0430\u0439\u043b\u044b \u0438 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043c\u043e\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u043e.  <\/p><\/blockquote>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435 \u0438 \u043d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e <b>CocosBuilderFiles<\/b>. \u0417\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0434\u0432\u0435 \u043f\u043e\u0434\u043f\u0430\u043f\u043a\u0438 \u0432 \u044d\u0442\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u0438 \u043d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0438\u0445 <b>Resources <\/b>\u0438 <b>Scenes<\/b>.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/5d2\/e70\/e67\/5d2e70e67f10ecb1c55d6e5c035c8935.png\"\/><\/p>\n<p>  \u041f\u0430\u043f\u043a\u0430 Resources \u0431\u0443\u0434\u0435\u0442, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432\u0441\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0434\u043b\u044f \u0438\u0433\u0440\u044b (\u0441\u043f\u0440\u0430\u0439\u0442\u044b, \u0448\u0440\u0438\u0444\u0442\u044b \u0438 \u0442.\u0434.). \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Cat Jump, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u0440\u0430\u043d\u0435\u0435, \u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u0435\u0449\u0451 \u043f\u0440\u043e\u0449\u0435 \u2014 \u044f \u0441\u043e\u0437\u0434\u0430\u043b <a href=\"http:\/\/cdn5.raywenderlich.com\/downloads\/CatJumpResources.zip\">ZIP \u0444\u0430\u0439\u043b<\/a> \u0441\u043e \u0432\u0441\u0435\u043c, \u0447\u0442\u043e \u0432\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f. \u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435, \u0440\u0430\u0441\u043f\u0430\u043a\u0443\u0439\u0442\u0435 \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0432 \u043f\u0430\u043f\u043a\u0443 Resources.<\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 CocosBuilder \u0438 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0443\u043d\u043a\u0442 \u043c\u0435\u043d\u044e File\\New\\New Project. \u041d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 CatJump \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0435\u0433\u043e \u0432 \u043f\u0430\u043f\u043a\u0435 CocosBuilderFiles.<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u043f\u0430\u043f\u043a\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 \u0441\u0446\u0435\u043d\u044b \u043d\u0430 \u0431\u043e\u043a\u043e\u0432\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u043b\u0435\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 CocosBuilder. \u0422\u0430\u043a\u0436\u0435 \u0437\u0430\u043c\u0435\u0442\u044c\u0442\u0435, \u0447\u0442\u043e CocosBuilder \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u043b \u043d\u043e\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <b>ccbResources<\/b>. \u0422\u0430\u043c \u0436\u0435 \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <b>HelloCocosBuilder.ccb<\/b>. \u0414\u0432\u0430\u0436\u0434\u044b \u0449\u0435\u043b\u043a\u043d\u0438\u0442\u0435 \u043f\u043e \u0444\u0430\u0439\u043b\u0443, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435.<br \/>  \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043b\u043e\u0439 \u0441 \u043d\u0430\u0434\u043f\u0438\u0441\u044c\u044e \u00abHello CocosBuilder\u00bb:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/8cf\/5be\/41b\/8cf5be41b2bb725730e0b92f7e2e021c.png\"\/><\/p>\n<p>  \u041d\u0435 \u0432\u043e\u043b\u043d\u0443\u0439\u0442\u0435\u0441\u044c, \u0432\u0430\u0448\u0430 \u0438\u0433\u0440\u0430 CatJump \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u0447\u0435\u043c \u044d\u0442\u043e.<\/p>\n<h1>\u0413\u043b\u044f\u043d\u044c, \u043c\u0430\u043c, \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435\u0442 \u043a\u043e\u0434\u0430!<\/h1>\n<p>  \u041d\u0430\u0447\u043d\u0451\u043c \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u043a\u0443 CatJump \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e \u0438\u0433\u0440\u044b. \u042d\u0442\u0430 \u0441\u0446\u0435\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0442\u0440\u0438 \u043a\u043d\u043e\u043f\u043a\u0438:  <\/p>\n<ul>\n<li><b>Play<\/b> \u2013 \u0422\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0433\u0440\u0430!<\/li>\n<li><b>Options<\/b> \u2013 \u041f\u043e\u043a\u0430\u0436\u0435\u043c \u0441\u0446\u0435\u043d\u0443 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438, \u0433\u0434\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438\u0433\u0440\u044b.<\/li>\n<li><b>About<\/b> \u2014 \u041f\u043e\u043a\u0430\u0436\u0435\u043c \u0441\u0446\u0435\u043d\u0435, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0438\u0433\u0440\u0430\u0442\u044c \u0432 \u0438\u0433\u0440\u0443.<\/li>\n<\/ul>\n<p>  \u0418 \u043f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u044d\u0442\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0444\u0430\u0439\u043b HelloCocosBuilder.ccb, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0444\u0430\u0439\u043b-\u0448\u0430\u0431\u043b\u043e\u043d, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 CocosBuilder.<\/p>\n<blockquote><p><b>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/b> \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0443\u043c\u0430\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u2014 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b \u0441\u0446\u0435\u043d\u044b \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043d\u043e \u044f \u043d\u0435 \u0431\u044b\u043b \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043f\u0440\u044f\u043c\u043e \u0438\u0437 CocosBuilder. \u041c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0437\u0430\u043a\u0440\u044b\u0442\u044c CocosBuilder, \u0443\u0434\u0430\u043b\u0438\u0442\u044c HelloCocosBuilder.ccb \u0438\u0437 Finder, \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u043d\u043e\u0432\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 CocosBuilder. \u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0437\u043d\u0430\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u0435!  <\/p><\/blockquote>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0443\u043d\u043a\u0442 \u043c\u0435\u043d\u044e File\\New\\New File. \u0412 \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0435\u043c\u0441\u044f \u043e\u043a\u043d\u0435 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432 \u043f\u043e\u043b\u0435 \u0442\u0438\u043f \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 (Root object type) \u0432\u044b\u0431\u0440\u0430\u043d CCLayer \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0433\u0430\u043b\u043e\u0447\u043a\u0438 \u0443 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0442\u0438\u043f\u043e\u0432 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0439: <b>iPhone Landscape<\/b> \u0438 <b>iPhone 5 Landscape<\/b>.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/4c3\/8cd\/6b4\/4c38cd6b4c61bd0c1e01e379dc4243ae.png\"\/><\/p>\n<p>  \u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 Create, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 <b>MainMenuScene <\/b>\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u043f\u0430\u043f\u043a\u0435 Scenes.<br \/>  \u041f\u0430\u043d\u0435\u043b\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/49c\/a09\/45b\/49ca0945b93379fe521085a377ccfe9e.png\"\/><\/p>\n<p>  \u041d\u0443, \u0432\u043e\u0442, \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0441\u0432\u043e\u044e \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0446\u0435\u043d\u0443! \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u0430\u043a \u043d\u0430\u0441\u0447\u0451\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u043f\u0440\u0430\u0439\u0442\u043e\u0432?<br \/>  \u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 CCSprite \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u041f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430: \u041a\u043d\u043e\u043f\u043a\u0430 \u043e\u0431\u0432\u0435\u0434\u0435\u043d\u0430 \u043a\u0440\u0443\u0433\u043e\u043c \u043d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u043d\u0438\u0436\u0435.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/a26\/0fb\/e6d\/a260fbe6dd2f4e739aa61592f60a5503.png\"\/><\/p>\n<p>  \u0422\u0430\u043a \u0432\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0441\u043f\u0440\u0430\u0439\u0442 \u043d\u0430 \u0441\u0446\u0435\u043d\u0443.<br \/>  \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0440\u0430\u0439\u0442 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0435\u043c\u0443 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0444\u0440\u0435\u0439\u043c\u0430 \u0444\u0430\u0439\u043b <b>Title_catjump.png<\/b>. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u0440\u0430\u0432\u0443\u044e \u0431\u043e\u043a\u043e\u0432\u0443\u044e \u043f\u0430\u043d\u0435\u043b\u044c, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u0412 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 CCSprite \u0443 \u043f\u043e\u043b\u044f <b>Sprite frame<\/b> \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u043c\u0435\u043d\u044e \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043b <b>Title_catjump.png<\/b> \u0432 \u043f\u0430\u043f\u043a\u0435 Resources\\Normal.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/3d0\/92b\/08f\/3d092b08f7d112d249a5f7bbd761e7ed.png\"\/><\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c, \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u043f\u0440\u0430\u0439\u0442 \u0432 \u0446\u0435\u043d\u0442\u0440 \u0441\u0446\u0435\u043d\u044b, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0432 \u0435\u0433\u043e \u0432 \u0446\u0435\u043d\u0442\u0440. \u0418\u043b\u0438, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u0442\u0435 \u0431\u044b\u0442\u044c \u0442\u043e\u0447\u043d\u044b\u043c, \u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <b>Anchor Point<\/b> (\u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 CCNode) \u0432 0 \u0434\u043b\u044f X \u0438 Y \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<br \/>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043f\u043e\u043b\u0435 <b>Position <\/b>\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0438\u0436\u043d\u0435\u0433\u043e \u043b\u0435\u0432\u043e\u0433\u043e \u0443\u0433\u043b\u0430. \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044f, \u0442\u043e \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f X \u0438 Y. \u0420\u0430\u0437\u0432\u043b\u0435\u043a\u0438\u0442\u0435\u0441\u044c \u2014 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435, \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u041e\u0442\u043b\u0438\u0447\u043d\u043e! \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0444\u043e\u043d\u043e\u0432\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435. \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u044d\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0438 \u0434\u043b\u044f \u043f\u0443\u043d\u043a\u0442\u043e\u0432 \u043c\u0435\u043d\u044e.<br \/>  \u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043f\u0443\u043d\u043a\u0442 <b>CCControlButton <\/b>\u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/b6e\/5f3\/8a4\/b6e5f38a4fb584d0165fc7f162131e6f.png\"\/><\/p>\n<p>  \u041d\u043e\u0432\u0430\u044f \u043a\u043d\u043e\u043f\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0441 \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u0444\u043e\u043d\u043e\u0432\u044b\u043c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u0432 \u043f\u0430\u043f\u043a\u0435 <b>ccbResources<\/b>, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0439 CocosBuilder. \u0414\u0430\u0439\u0442\u0435 \u044d\u0442\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 Play, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0440\u0430\u0437\u0434\u0435\u043b CCControlButton \u043d\u0430 \u043f\u0440\u0430\u0432\u043e\u0439 \u0431\u043e\u043a\u043e\u0432\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438, \u043f\u043e\u043b\u0435 Title.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/f56\/99d\/ab7\/f5699dab775407b08f999d1c1c182fce.png\"\/><\/p>\n<p>  \u041e\u0442\u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u0439\u0442\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0435\u0451 \u0433\u0434\u0435 \u0443\u0433\u043e\u0434\u043d\u043e, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u044f \u0435\u0451 \u0438\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043d\u0430 \u043f\u0440\u0430\u0432\u043e\u0439 \u0431\u043e\u043a\u043e\u0432\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438.<br \/>  \u041b\u0430\u0434\u043d\u043e, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043d\u043e\u043f\u043e\u043a! \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u0443\u044e \u0432\u044b\u0448\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0449\u0451 \u0434\u0432\u0435. \u0412\u0442\u043e\u0440\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 Options, \u0442\u0440\u0435\u0442\u044c\u044e \u2014 About. \u0412\u0430\u0448 \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u0430\u043a\u0435\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u043d\u0438\u0436\u0435:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/405\/c9a\/ce0\/405c9ace0a6289054ec66ceb9dbc5d92.png\"\/><\/p>\n<p>  \u0423\u0440\u0430, \u043c\u0430\u043a\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0446\u0435\u043d\u044b \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043d!<\/p>\n<h1>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u044f \u043a \u043a\u043b\u0430\u0441\u0441\u0443<\/h1>\n<p>  \u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u043a\u0443. \u0415\u0441\u043b\u0438 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0435 \u0441\u0446\u0435\u043d\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u043b\u043e\u0439, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432 CocosBuilder, \u0438 \u0435\u0441\u043b\u0438 \u044d\u0442\u043e\u0442 \u0441\u043b\u043e\u0439 \u0441\u0446\u0435\u043d\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430, \u0442\u043e \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043a\u0430\u0437\u0430\u0442\u044c CocosBuilder \u0438\u043c\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430.<br \/>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0432\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u0446\u0435\u043d\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0444\u0430\u0439\u043b <b>MainMenuScene<\/b>, \u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0447\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u0441\u043b\u043e\u0439 \u0431\u044b\u043b \u0442\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438, \u0442\u043e \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <b>Code Connections<\/b>.<br \/>  \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043b<b>MainMenuScene.ccb<\/b> \u0438 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0443\u0437\u0435\u043b CCLayer \u043d\u0430 \u0448\u043a\u0430\u043b\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<br \/>  \u0412 \u0440\u0430\u0437\u0434\u0435\u043b\u0435<b> Code Connections<\/b>, \u0432 \u043f\u043e\u043b\u0435 <b>Custom class<\/b> \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 <b>MainMenuLayer<\/b>. \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0435 \u044d\u0442\u0443 \u0441\u0446\u0435\u043d\u0443, CocosBuilder \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c MainMenuLayer \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u0441\u043b\u043e\u044f \u0441\u0446\u0435\u043d\u044b.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/a89\/1c9\/ce5\/a891c9ce5ca70cfe8421cedea0846cc9.png\"\/><\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 CocosBuilder. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0443\u043d\u043a\u0442 \u043c\u0435\u043d\u044e File\\Publish. \u0422\u0430\u043a \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <b>MainMenuScene.ccbi<\/b> \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 Scenes.<br \/>  \u0425\u0432\u0430\u0442\u0438\u0442 \u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f \u0441 CocosBuilder \u2013 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0451 \u044d\u0442\u043e \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0432 Xcode!<\/p>\n<h1>\u0412\u0440\u0435\u043c\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434!<\/h1>\n<p>  \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0432\u0435\u0440\u0441\u0438\u044f Cocos2D 2.X (2.1-beta4 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u0443\u0447\u0435\u0431\u043d\u0438\u043a\u0430). <br \/>  \u0417\u0430\u0442\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 Xcode \u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c iOS\\cocos2d v2.x\\cocos2d. \u0412\u0432\u0435\u0434\u0438\u0442\u0435 CatJump \u0432 \u043f\u043e\u043b\u0435 <b>Product Name<\/b>, \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u043e\u043b\u0435 <b>Company Identifier<\/b>, \u0430 \u0432 \u043f\u043e\u043b\u0435 <b>Device Family<\/b> \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 iPhone:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/224\/59e\/25e\/22459e25e91fc9f684207dcc028577e1.png\"\/><\/p>\n<p>  \u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0435\u0433\u043e \u0433\u0434\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u0434\u0438\u0441\u043a\u0435.<br \/>  \u0417\u0430\u0442\u0435\u043c, \u0432 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0433\u0440\u0443\u043f\u043f\u0443 Scenes, \u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0442\u0443\u0434\u0430 \u0444\u0430\u0439\u043b <b>MainMenuScene.ccb<\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u043b\u0438. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0440\u044f\u0434\u043e\u043c \u0441 \u043f\u0443\u043d\u043a\u0442\u043e\u043c \u00abCopy items to destination group\u2019s folder (if needed)\u00bb \u0441\u0442\u043e\u0438\u0442 \u0433\u0430\u043b\u043e\u0447\u043a\u0430 \u0438 \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 \u00abAdd to targets\u00bb \u043e\u043a\u043e\u043b\u043e CatJump \u0442\u043e\u0436\u0435 \u0441\u0442\u043e\u0438\u0442 \u0433\u0430\u043b\u043e\u0447\u043a\u0430.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c CCBReader \u043a \u0432\u0430\u0448\u0435\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443. CCBReader \u0438\u0434\u0451\u0442 \u0432 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0435 \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b\u0438 \u0440\u0430\u043d\u0435\u0435 \u0441 \u0441\u0430\u0439\u0442\u0430 CocosBuilder. \u0420\u0430\u0437\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u0443\u0439\u0442\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 (\u0435\u0441\u043b\u0438 \u0432\u044b \u0435\u0449\u0435 \u044d\u0442\u043e \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438) \u0432 \u043f\u0430\u043f\u043a\u0443 \u043d\u0430 \u0436\u0435\u0441\u0442\u043a\u043e\u043c \u0434\u0438\u0441\u043a\u0435. \u041d\u0430\u0439\u0434\u0438\u0442\u0435 \u043f\u0430\u043f\u043a\u0443 CCBReader \u0432 \u043f\u0430\u043f\u043a\u0435 <b>Add to Your Project\\cocos2d-iphone<\/b>.<br \/>  \u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0432\u0441\u044e \u043f\u0430\u043f\u043a\u0443 CCBReader \u0432 \u0432\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u044b\u0431\u0440\u0430\u043d \u043f\u0443\u043d\u043a\u0442 \u00abCreate groups for any added folders\u00bb \u0438 \u0441\u0442\u043e\u0438\u0442 \u0433\u0430\u043b\u043e\u0447\u043a\u0430 \u0443 \u043f\u0443\u043d\u043a\u0442\u0430 \u00abCopy items into destination group\u2019s folder\u00bb. \u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0441 \u043f\u0430\u043f\u043a\u043e\u0439 CCControlExtension.<br \/>  \u0414\u0430\u043b\u0435\u0435, \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0433\u0440\u0443\u043f\u043f\u0443 \u0432 \u0432\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438 \u043d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0435\u0451 <b>Layers<\/b>. \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c iOS\\cocos2d v2.x\\CCNode. \u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0435\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u043e\u043c CCLayer \u0438 \u043d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e <b>MainMenuLayer.m<\/b>.<br \/>  \u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434, \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 <b>AppDelegate.m<\/b> \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0438\u043c\u043f\u043e\u0440\u0442\u0430 (\u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0432 \u0444\u0430\u0439\u043b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 #import):<\/p>\n<pre><code>#import &quot;CCBReader.h&quot; <\/code><\/pre>\n<p>  \u0417\u0430\u0442\u0435\u043c \u043d\u0430\u0439\u0434\u0438\u0442\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443 <b>application:didFinishLaunchingWithOptions:<\/b>, \u0430 \u0432 \u043d\u0435\u0439 \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443:  <\/p>\n<pre><code>[director_ pushScene: [IntroLayer scene]]; <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b \u0435\u0451 \u043d\u0430\u0439\u0434\u0451\u0442\u0435, \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0435\u0451 \u043d\u0430 \u044d\u0442\u043e:  <\/p>\n<pre><code>[director_ pushScene: [CCBReader sceneWithNodeGraphFromFile:@&quot;MainMenuScene.ccbi&quot;]]; <\/code><\/pre>\n<p>  \u0418 \u044d\u0442\u043e \u0432\u0441\u0451, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u043a\u043e\u0434\u0435, \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0446\u0435\u043d\u044b, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0441 CocosBuilder! \u041a\u043b\u0430\u0441\u0441 CCBReader \u0431\u0443\u0434\u0435\u0442 \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0444\u0430\u0439\u043b <b>MainMenuScene.ccbi<\/b> \u0438 \u0441\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0441\u0446\u0435\u043d\u0443!<br \/>  \u041d\u043e \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0432\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0448\u0430\u0433. \u041f\u043e\u043c\u043d\u0438\u0442\u0435 \u0442\u043e \u0444\u043e\u043d\u043e\u0432\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0432\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0432 \u0432\u0430\u0448\u0443 \u0441\u0446\u0435\u043d\u0443 \u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 ccbResources \u0432 \u043f\u0430\u043f\u043a\u0435 \u0432\u0430\u0448\u0435\u0433\u043e CocosBuilder-\u043f\u0440\u043e\u0435\u043a\u0442\u0430?<br \/>  \u042d\u0442\u0438\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043d\u0435\u0442 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0430 \u043e\u043d\u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430. \u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443. (\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u044d\u0442\u043e \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441, \u043f\u044b\u0442\u0430\u0432\u0448\u0438\u0441\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443&#8230;)<br \/>  \u0412\u043e\u0437\u044c\u043c\u0438\u0442\u0435 \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 Resources \u0432\u0430\u0448\u0435\u0433\u043e CocosBuilder-\u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0438\u0445 \u0432 \u043f\u0430\u043f\u043a\u0443 Resources \u0432\u0430\u0448\u0435\u0433\u043e Xcode-\u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0441\u043e \u0432\u0441\u0435\u043c \u0444\u0430\u0439\u043b\u0430\u043c \u0432 \u043f\u0430\u043f\u043a\u0435 ccbResources. \u041a\u0430\u043a \u0438 \u043f\u0440\u0435\u0436\u0434\u0435, \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u0433\u0430\u043b\u043e\u0447\u043a\u0430 \u043e\u043a\u043e\u043b\u043e \u043f\u0443\u043d\u043a\u0442\u0430 \u00abCopy items into destination group\u2019s folder\u00bb, \u0447\u0442\u043e \u0432\u044b\u0431\u0440\u0430\u043d \u043f\u0443\u043d\u043a\u0442 \u00abCreate groups for any added folders\u00bb \u0438 \u043e\u043a\u043e\u043b\u043e \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 CatJump \u0441\u0442\u043e\u0438\u0442 \u0433\u0430\u043b\u043e\u0447\u043a\u0430.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/081\/cf0\/9fc\/081cf09fce0a74fc9b98799621544da8.png\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443. \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 CCBReader.m, \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439 \u043d\u0430 \u043d\u0438\u0436\u0435\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e:  <\/p>\n<pre><code>return [_bundle pathForResource:resource ofType:ext inDirectory:subpath]; <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043c\u0435\u043d\u044e \u0441 \u0442\u0440\u0435\u043c\u044f \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0438\u0436\u0435:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/351\/432\/105\/3514321050b3403b544db0333ebec354.png\"\/><\/p>\n<h1>\u0421\u043e\u0431\u044b\u0442\u0438\u044f<\/h1>\n<p>  \u041f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u044f\u044e, \u0442\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u043c\u0430\u043a\u0435\u0442, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432 CocosBuilder, \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u043a\u043e\u0434\u0430! \ud83d\ude42<br \/>  \u041d\u043e \u043a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u0436\u0430\u043b \u043d\u0430 \u043e\u0434\u043d\u0443 \u0438\u0437 \u044d\u0442\u0438\u0445 \u043a\u043d\u043e\u043f\u043e\u043a?<br \/>  CocosBuilder \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0441 \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e! \u041e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0430\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f \u043c\u0435\u0442\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u0436\u043c\u0451\u0442 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443. \u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043d\u0430\u0431\u043e\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432).<br \/>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432 MainMenuScene. \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 <b>MainMenuScene.ccb<\/b> \u0432 CocosBuilder \u0438 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 Play. \u041d\u0430 \u043f\u0440\u0430\u0432\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438, \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 CCNode \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 Tag \u043d\u0430 1.<br \/>  \u0417\u0430\u0442\u0435\u043c, \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 CCControl \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u043f\u043e\u043b\u0435 <b>Selector<\/b> \u0438\u043c\u0435\u043d\u0435\u043c \u043c\u0435\u0442\u043e\u0434\u0430 <b>buttonPressed:<\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f. \u0422\u0430\u043a\u0436\u0435 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u043f\u043e\u043b\u0435 <b>Target <\/b>\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>Document root<\/b>.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/956\/569\/b7f\/956569b7f9ef217416ab150b815abd15.png\"\/><\/p>\n<p>  \u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u043a\u043d\u043e\u043f\u043e\u043a, \u043d\u043e \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0442\u0435\u0433\u0430\u043c\u0438 \u2013 \u0443 Options \u2013 \u043f\u043e\u043b\u0435 Tag \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u043e 2, \u0443 About \u2014 3.<br \/>  \u0423\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e! \u0412\u044b \u0441\u0432\u044f\u0437\u0430\u043b\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u0441 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u043e\u043c, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u043c \u0432 CCLayer. \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0439\u0442\u0435 MainMenuScene.ccb, \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0432 \u043f\u0430\u043f\u043a\u0443 Xcode- \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<blockquote><p><b>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/b>: \u0412\u0430\u043c \u043d\u0435 \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0432 Xcode-\u043f\u0440\u043e\u0435\u043a\u0442 \u043a\u0430\u043a \u0440\u0430\u043d\u044c\u0448\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u0444\u0430\u0439\u043b \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435. \u0422\u0430\u043a \u0447\u0442\u043e, \u043b\u0438\u0431\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u0435 \u0444\u0430\u0439\u043b \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0435\u0433\u043e \u0441\u043d\u043e\u0432\u0430 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442, \u043b\u0438\u0431\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Finder \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 CocosBuilderFiles \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0432\u0430\u0448\u0435\u0433\u043e Xcode-\u043f\u0440\u043e\u0435\u043a\u0442\u0430.  <\/p><\/blockquote>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 MainMenuLayer.m \u0432 Xcode \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0442\u0443\u0434\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438\u043c\u043f\u043e\u0440\u0442\u0430:  <\/p>\n<pre><code>#import &quot;CCControlButton.h&quot; #import &quot;CCBReader.h&quot; <\/code><\/pre>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b #define \u0441 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u043c\u0438 \u0441\u0440\u0430\u0437\u0443 \u043d\u0438\u0436\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 #import. \u041e\u043d\u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u0442\u0435\u0433\u0438 \u0442\u0435\u0445 \u043a\u043d\u043e\u043f\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043b\u0438 \u043d\u0430 \u0441\u0446\u0435\u043d\u0435:  <\/p>\n<pre><code>#define PLAY_BUTTON_TAG 1 #define OPTIONS_BUTTON_TAG 2 #define ABOUT_BUTTON_TAG 3 <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u043d\u0430 \u0441\u0447\u0451\u0442 \u043c\u0435\u0442\u043e\u0434\u0430 <b>buttonPressed:<\/b>? \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0435\u0433\u043e \u0432 MainMenuLayer.m:  <\/p>\n<pre><code>-(void)buttonPressed:(id)sender { \tCCControlButton *button = (CCControlButton*) sender; \tswitch (button.tag) { \tcase PLAY_BUTTON_TAG: \t[[CCDirector sharedDirector] replaceScene:[CCTransitionCrossFade transitionWithDuration:1.0 scene:[CCBReader sceneWithNodeGraphFromFile:@&quot;GameScene.ccbi&quot;]]]; \tbreak; \tcase OPTIONS_BUTTON_TAG: \t[[CCDirector sharedDirector] replaceScene:[CCTransitionFlipAngular transitionWithDuration:1.0 scene:[CCBReader sceneWithNodeGraphFromFile:@&quot;OptionsScene.ccbi&quot;]]]; \tbreak; \tcase ABOUT_BUTTON_TAG: \t[[CCDirector sharedDirector] replaceScene:[CCTransitionCrossFade transitionWithDuration:1.0 scene:[CCBReader sceneWithNodeGraphFromFile:@&quot;AboutScene.ccbi&quot;]]]; \tbreak; \t} } <\/code><\/pre>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0435 \u0432\u0441\u0451 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u043e: \u0442\u0443\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0436\u0438\u043c\u0430\u044e\u0442 \u043a\u043d\u043e\u043f\u043a\u0443 About, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0446\u0435\u043d\u0430 AboutScene.ccbi.<\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0438\u0433\u0440\u0443. \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043c\u0435\u043d\u044e.<br \/>  \u041f\u043e\u0442\u0440\u044f\u0441\u0430\u044e\u0449\u0435, \u0432\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0441\u0432\u043e\u044e \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0446\u0435\u043d\u0443, \u0438 \u0432\u044b \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043a\u043e\u0434\u0430.<br \/>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432\u044b \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438, \u0447\u0442\u043e \u043a\u043e\u0434 \u0434\u043b\u044f <b>buttonPressed:<\/b> \u0441\u0432\u044f\u0437\u0430\u043d \u0441 CCBI-\u0444\u0430\u0439\u043b\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b \u0435\u0449\u0451 \u043d\u0435 \u0434\u0435\u043b\u0430\u043b\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u043b\u044e\u0431\u0443\u044e \u0438\u0437 \u043a\u043d\u043e\u043f\u043e\u043a \u0432 \u043c\u0435\u043d\u044e, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0432\u044b\u0434\u0430\u0441\u0442 \u043e\u0448\u0438\u0431\u043a\u0443, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u0438\u0445 \u0441\u0446\u0435\u043d\u044b \u0435\u0449\u0435 \u043d\u0435\u0442 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435.<br \/>  \u042d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e \u0432\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435 \u2014 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u0435\u043b\u044b!<\/p>\n<h1>\u0422\u0443\u0442 \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e!<\/h1>\n<p>  \u041a\u0430\u043a \u0438 \u0432 \u0433\u043b\u0430\u0432\u043d\u043e\u043c \u043c\u0435\u043d\u044e, \u0432 \u0441\u0446\u0435\u043d\u0435 \u0432\u044b\u0431\u043e\u0440\u0430 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0431\u0443\u0434\u0435\u0442 \u0442\u0440\u0438 \u043a\u043d\u043e\u043f\u043a\u0438, \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u0441\u0446\u0435\u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u043e\u043b\u044c \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u043c.<br \/>  \u0412 \u0441\u0446\u0435\u043d\u0435 Options, \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043a\u043d\u043e\u043f\u043e\u043a \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 Easy, Medium \u0438\u043b\u0438 Hard. \u0422\u0430\u043c \u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0432 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043c\u0435\u043d\u044e.<br \/>  \u041e\u0442\u043a\u0440\u044b\u0442\u043e\u0435 CocosBuilder \u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0441\u0446\u0435\u043d\u0443, \u0432\u044b\u0431\u0440\u0430\u0432 \u043f\u0443\u043d\u043a\u0442 \u043c\u0435\u043d\u044e File\\New\\New File (\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0442\u0435 \u0436\u0435 \u0448\u0430\u0433\u0438, \u0447\u0442\u043e \u0438 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 MainMenuScene), \u043d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0435\u0451 OptionsScene \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0432 \u043f\u0430\u043f\u043a\u0435 Scenes.<br \/>  \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043d\u0430 \u0441\u0446\u0435\u043d\u0443 \u0442\u0440\u0438 \u043a\u043d\u043e\u043f\u043a\u0438 \u0438 \u0434\u0430\u0439\u0442\u0435 \u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f Easy, Medium \u0438 Hard. \u0417\u0430\u0442\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0438\u0445 \u0442\u0435\u0433\u0430\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f 1, 2 \u0438 3, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<br \/>  \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0436\u0438\u043c\u0430\u0442\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0438, \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d. \u0422\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0432\u044b \u0434\u0435\u043b\u0430\u043b\u0438 \u0441 MainMenuScene, \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u043a\u043d\u043e\u043f\u043e\u043a \u0432 \u043f\u043e\u043b\u0435 Selector \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>difficultyButtonPressed:<\/b> \u0430 \u0432 \u043f\u043e\u043b\u0435 Target \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>Document Root<\/b>.<\/p>\n<blockquote><p><b>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/b>: \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u044d\u0442\u043e\u0442 Document Root? \u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0443\u0437\u0435\u043b \u0432 \u0434\u0435\u0440\u0435\u0432\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0448\u043a\u0430\u043b\u044b \u00abDefault Timeline\u00bb. \u0421\u043a\u043e\u0440\u043e \u0432\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c\u0443 \u0443\u0437\u043b\u0443 (CCLayer) \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u043b\u0430\u0441\u0441 \u2014 OptionsLayer. \u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 Document Root \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441 OptionsLayer.  <\/p><\/blockquote>\n<p>  \u0412\u0430\u0448 \u043c\u0430\u043a\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0432\u0440\u043e\u0434\u0435 \u044d\u0442\u043e\u0433\u043e:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/f6f\/4a5\/4cf\/f6f4a54cf66863721e3188f22f8b9f98.png\"\/><br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043a\u043d\u043e\u043f\u043a\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043d\u0430\u0437\u0430\u0434, \u0432 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043c\u0435\u043d\u044e. \u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437, \u0432\u043c\u0435\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f CCControlButton, \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 \u043c\u0435\u043d\u044e CCMenu.<br \/>  \u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 CCMenu \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/e6a\/422\/c21\/e6a422c21e08e4a1da534e51bd0e79dd.png\"\/><\/p>\n<p>  \u0422\u0430\u043a \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u0442\u0435 \u043c\u0435\u043d\u044e CCMenu \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0435 \u0435\u0433\u043e \u0432 \u0441\u043b\u043e\u0439 OptionsScene. \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043f\u0443\u043d\u043a\u0442 \u043c\u0435\u043d\u044e CCMenuItemImage, \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 CCMenuItemImage \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/8bb\/c6c\/f37\/8bbc6cf373c392b464cf002722cdaccb.png\"\/><\/p>\n<p>  \u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0432 \u043f\u043e\u043b\u044f\u0445 Normal \u0438 Selected \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u043f\u0440\u0430\u0439\u0442\u044b, \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0432\u043e\u0439 \u2014 <b>btn-back-0.png<\/b> \u0438 <b>btn-back-1.png<\/b>. \u042d\u0442\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u044b \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 CCMenuItemImage \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0441\u043f\u0440\u0430\u0432\u0430.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/20e\/90b\/189\/20e90b189c5d5f3191a423111e557fb8.png\"\/><\/p>\n<p>  \u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u041d\u0430\u0437\u0430\u0434\u00bb \u0432 \u0432\u0435\u0440\u0445\u043d\u0438\u0439 \u043b\u0435\u0432\u044b\u0439 \u0443\u0433\u043e\u043b \u0441\u0446\u0435\u043d\u044b \u0438 \u043f\u0440\u043e\u043f\u0438\u0448\u0438\u0442\u0435 \u0434\u043b\u044f \u043d\u0435\u0451 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 <b>backButtonPressed:<\/b>. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432 \u043f\u043e\u043b\u0435 Target \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 Document root.<br \/>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435! \u0421\u0446\u0435\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/720\/c92\/334\/720c923346dcf0ef667a9e3ce183e06e.png\"\/><\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0440\u0430\u043d\u044c\u0448\u0435 \u0432\u044b \u0434\u0435\u043b\u0430\u043b\u0438 \u0441 MainMenuScene, \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f OptionsScene. \u041d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e <b>OptionsLayer<\/b>.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/953\/cf2\/16f\/953cf216fb34f3784f9d984913944481.png\"\/><\/p>\n<p>  \u041a\u0430\u043a \u0438 \u043f\u0440\u0435\u0436\u0434\u0435, \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0439\u0442\u0435 \u0441\u0446\u0435\u043d\u0443, \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 CCBI-\u0444\u0430\u0439\u043b \u0432 Xcode-\u043f\u0440\u043e\u0435\u043a\u0442.<br \/>  \u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 Xcode, \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 Layers \u0438 \u043d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e <b>OptionsLayer <\/b>(\u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u043e\u043d \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441 \u043a\u043b\u0430\u0441\u0441\u0430 CCLayer), \u0432\u0441\u0451 \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0432\u044b \u0434\u0435\u043b\u0430\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435.<br \/>  \u0417\u0430\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438\u043c\u043f\u043e\u0440\u0442\u0430 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432 \u043d\u0430\u0447\u0430\u043b\u043e OptionsLayer.m:  <\/p>\n<pre><code>#import &quot;CCBReader.h&quot; #import &quot;CCControlButton.h&quot;   #define DIFFICULTY_EASY_BUTTON_TAG 1 #define DIFFICULTY_MEDIUM_BUTTON_TAG 2 #define DIFFICULTY_HARD_BUTTON_TAG 3 <\/code><\/pre>\n<p>  \u0410 \u0442\u0430\u043a\u0436\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b:  <\/p>\n<pre><code>-(void)backButtonPressed:(id)sender { \t[[CCDirector sharedDirector] replaceScene:[CCTransitionFlipAngular transitionWithDuration:1.0 scene:[CCBReader sceneWithNodeGraphFromFile:@&quot;MainMenuScene.ccbi&quot;]]]; }   -(void)difficultyButtonPressed:(id)sender { \tCCControlButton *button = (CCControlButton*) sender; \tNSString *difficultyLevel = @&quot;Hard&quot;; \tif (button.tag == DIFFICULTY_EASY_BUTTON_TAG) { \t\tdifficultyLevel = @&quot;Easy&quot;; \t} else if(button.tag == DIFFICULTY_MEDIUM_BUTTON_TAG) { \t\tdifficultyLevel = @&quot;Medium&quot;; \t} \tNSLog(@&quot;Difficulty is set to %@&quot;, difficultyLevel); } <\/code><\/pre>\n<p>  \u0412\u0441\u0435 \u044d\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432\u0430\u043c \u0437\u043d\u0430\u043a\u043e\u043c\u043e. \u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 <b>backButtonPressed:<\/b> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430\u0437\u0430\u0434, \u0432 \u043c\u0435\u043d\u044e \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u044b.<br \/>  \u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 <b>difficultyButtonPressed:<\/b> \u0432 \u0435\u0451 \u043d\u044b\u043d\u0435\u0448\u043d\u0435\u043c \u0432\u0438\u0434\u0435 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0438\u0448\u0435\u0442 \u0432 \u0436\u0443\u0440\u043d\u0430\u043b \u0441\u0430\u043c \u0444\u0430\u043a\u0442 \u0432\u044b\u0431\u043e\u0440\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041d\u0435 \u0441\u0442\u0435\u0441\u043d\u044f\u0439\u0442\u0435\u0441\u044c \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u043d\u0438\u0447\u0435\u0433\u043e \u0432\u0435\u0434\u044c \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f.<br \/>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0438\u0433\u0440\u0443, \u0442\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u0432\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0446\u0435\u043d\u044b. \u0412\u044b \u0443\u0436\u0435 \u043d\u0430 \u043f\u043e\u043b\u043f\u0443\u0442\u0438 \u043a \u043f\u043e\u043b\u043d\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 \u0438\u0433\u0440\u044b!<\/p>\n<h1>\u041f\u0440\u0438\u0448\u043b\u0430 \u043e\u0447\u0435\u0440\u0435\u0434\u044c\u2026 \u043e\u0433\u043d\u044f!<\/h1>\n<p>  \u0421\u0446\u0435\u043d\u044b About \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0432\u0430\u0448\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u2014 \u043a\u0430\u043a \u0438\u0433\u0440\u0430\u0442\u044c \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u0442\u043e \u0435\u0451 \u0441\u0434\u0435\u043b\u0430\u043b, \u043d\u043e\u043c\u0435\u0440 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435.<br \/>  \u0412\u0430\u0448\u0430 \u0441\u0446\u0435\u043d\u0430 About \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0439: \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0433\u043e\u0440\u044f\u0449\u0438\u0439 \u0430\u0434! \u042d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043a\u0440\u0443\u0442\u043e, \u043d\u043e \u0438 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0447\u0430\u0441\u0442\u0438\u0446 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442), \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f CocosBuilder.<br \/>  \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u0441\u044c \u0432 CocosBuilder, \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <b>AboutScene <\/b>\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 Scenes.<br \/>  \u041d\u0430\u0447\u043d\u0438\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u0430\u0434 \u043c\u0430\u043a\u0435\u0442\u043e\u043c, \u043d\u0430\u0436\u0430\u0432 \u043a\u043d\u043e\u043f\u043a\u0443 CCParticleSystemQuad \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/55f\/60f\/c4b\/55f60fc4b76514f086098d5d2d046727.png\"\/><\/p>\n<p>  \u0422\u0430\u043a \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u0442\u0435 \u043e\u0433\u043d\u0435\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0447\u0430\u0441\u0442\u0438\u0446. \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0447\u0430\u0441\u0442\u0438\u0446 \u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <b>Particle texture<\/b> \u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>cat_leap_1.png<\/b>. \u041f\u043e\u0438\u0433\u0440\u0430\u0439\u0442\u0435\u0441\u044c \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c CCParticleSystemQuad, \u043f\u043e\u043a\u0430 \u0432\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u0442\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u044b \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c. \u0417\u0430\u0442\u0435\u043c \u0441\u0434\u0432\u0438\u043d\u044c\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0447\u0430\u0441\u0442\u0438\u0446 \u0432 \u043f\u0440\u0430\u0432\u044b\u0439 \u043d\u0438\u0436\u043d\u0438\u0439 \u0443\u0433\u043e\u043b \u044d\u043a\u0440\u0430\u043d\u0430, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0438\u0436\u0435:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/4ff\/574\/889\/4ff574889a58faed7ef5cf45539c6ead.png\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430. \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 CCLabelBMFont, \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/215\/24b\/a1a\/21524ba1abe1f22d80331159c8e76517.png\"\/><\/p>\n<p>  \u0412 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0448\u0440\u0438\u0444\u0442\u0430 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 <b>Arial.fnt<\/b> (\u0438\u0437 \u043f\u0430\u043f\u043a\u0438 Resources). \u0417\u0430\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0435\u0449\u0435 \u0434\u0432\u0430 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043e\u0434\u0438\u043d \u043f\u043e\u0434 \u0434\u0440\u0443\u0433\u043e\u0439, \u0442\u043e\u0436\u0435 \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0442\u043e\u0442 \u0436\u0435 \u0448\u0440\u0438\u0444\u0442.<br \/>  \u0420\u0430\u0437\u0431\u0435\u0439\u0442\u0435 \u0442\u0435\u043a\u0441\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u2014 <b>Help the cat jump over all the obstacles trying to run him over<\/b> \u2014 \u043c\u0435\u0436\u0434\u0443 \u0442\u0440\u0435\u043c\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u043d\u044e\u0430\u043d\u0441\u043e\u0432 \u0437\u0434\u0435\u0441\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435\u0442.<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c, \u0441\u0446\u0435\u043d\u0430 About \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/d5c\/4e3\/bb9\/d5c4e3bb99e6b256d220d71f75d54205.png\"\/><\/p>\n<p>  \u0412\u044b \u043f\u043e\u0447\u0442\u0438 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438 \u0441 \u044d\u0442\u043e\u0439 \u0441\u0446\u0435\u043d\u043e\u0439! \u0412\u0441\u0435, \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u2014 \u043a\u043d\u043e\u043f\u043a\u0430 \u041d\u0430\u0437\u0430\u0434.<br \/>  \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u041d\u0430\u0437\u0430\u0434 \u0432 \u0432\u0435\u0440\u0445\u043d\u0438\u0439 \u043b\u0435\u0432\u044b\u0439 \u0443\u0433\u043e\u043b, \u043a\u0430\u043a \u0432\u044b \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u0430 \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 <b>backButtonPressed:<\/b>, \u0432 \u043f\u043e\u043b\u0435 Target \u2014 Document root.<br \/>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0448\u0430\u0433 \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0441\u0446\u0435\u043d\u044b, \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0438 \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0441\u0446\u0435\u043d. \u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u2014 <b>AboutLayer<\/b>, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0438\u0436\u0435:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/2b3\/d51\/59a\/2b3d5159ab40b2d480db7e2619b13f4e.png\"\/><\/p>\n<p>  \u041a\u0430\u043a \u0438 \u043f\u0440\u0435\u0436\u0434\u0435, \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0439\u0442\u0435 \u0441\u0446\u0435\u043d\u0443, \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0435\u0451 \u0432 Xcode-\u043f\u0440\u043e\u0435\u043a\u0442. \u0417\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 Xcode \u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 Cocos2D \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 Layers. \u041d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e <b>AboutLayer <\/b>\u0438 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u043e\u043d \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441 \u043a\u043b\u0430\u0441\u0441\u0430 CCLayer.<br \/>  \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 <b>AboutLayer.m<\/b> \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0438\u043c\u043f\u043e\u0440\u0442\u0430:  <\/p>\n<pre><code>#import &quot;CCBReader.h&quot; <\/code><\/pre>\n<p>  \u0410 \u0442\u0430\u043a\u0436\u0435 \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434:  <\/p>\n<pre><code>-(void)backButtonPressed:(id)sender { \t[[CCDirector sharedDirector] replaceScene:[CCTransitionFlipAngular transitionWithDuration:1.0 scene:[CCBReader sceneWithNodeGraphFromFile:@&quot;MainMenuScene.ccbi&quot;]]]; } <\/code><\/pre>\n<p>  \u041c\u0435\u0442\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u0436\u043c\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0443 \u041d\u0430\u0437\u0430\u0434 (\u0437\u0435\u043b\u0451\u043d\u0443\u044e \u0441\u0442\u0440\u0435\u043b\u043a\u0443) \u0438 \u043c\u0435\u0442\u043e\u0434 \u0437\u0430\u043c\u0435\u043d\u0438\u0442 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0441\u0446\u0435\u043d\u0443 \u043d\u0430 \u0441\u0446\u0435\u043d\u0443 MainMenu.<br \/>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0438\u0433\u0440\u0443. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435: \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 About \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0441\u0446\u0435\u043d\u0443 AboutScene, \u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u041d\u0430\u0437\u0430\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0432\u0430\u0441 \u0432 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043c\u0435\u043d\u044e. \u041d\u0435 \u043f\u043b\u043e\u0445\u043e \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0438\u043d\u0443\u0442 \u0412\u0430\u0448\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0430?<\/p>\n<h1>\u0412 \u0438\u0433\u0440\u0443!<\/h1>\n<p>  \u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u043d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f, \u0447\u0442\u043e\u0431\u044b \u0432\u0432\u0435\u0441\u0442\u0438 \u0432 \u0438\u0433\u0440\u0443 \u043d\u0430\u0448\u0443 \u0437\u0432\u0435\u0437\u0434\u0443 \u2013 \u043a\u043e\u0442\u0430, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0442\u044f\u0436\u0435\u043b\u044b\u0439 \u0434\u0435\u043d\u044c! \u0412\u0441\u0435 \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0442\u0430\u043a \u044d\u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u043f\u0440\u0430\u0439\u0442\u044b, \u043d\u0443\u0436\u043d\u044b\u0435 \u0434\u043b\u044f \u0438\u0433\u0440\u044b, \u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430, \u0438 \u044d\u0442\u043e \u0432\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u0431\u0435\u0437 \u043a\u043e\u0432\u044b\u0440\u044f\u043d\u0438\u0439 \u0432 \u043a\u043e\u0434\u0435. \u0418\u0442\u0430\u043a, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0447\u043d\u0435\u043c!<br \/>  \u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 CocosBuilder \u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b. \u041d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e <b>GameScene <\/b>\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0432 \u043f\u0430\u043f\u043a\u0435 Scenes.<br \/>  \u0417\u0430\u0442\u0435\u043c \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 CCSprite \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0441\u043f\u0440\u0430\u0439\u0442. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0432 \u043f\u043e\u043b\u0435 Frame \u0443 \u044d\u0442\u043e\u0433\u043e \u0441\u043f\u0440\u0430\u0439\u0442\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>bg.png<\/b> \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0432 \u0446\u0435\u043d\u0442\u0440\u0430 \u044d\u043a\u0440\u0430\u043d\u0430. \u0412\u0430\u0448\u0430 \u0441\u0446\u0435\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0438\u0436\u0435:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/d43\/911\/c4c\/d43911c4ca7c0e775e6eabe4caad9308.png\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u0433\u0435\u0440\u043e\u044f \u0438\u0433\u0440\u044b \u2014 \u043a\u043e\u0442\u0430! \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0441\u043f\u0440\u0430\u0439\u0442 \u0432 \u0441\u043b\u043e\u0439, \u043d\u0430\u0436\u0430\u0432 \u043a\u043d\u043e\u043f\u043a\u0443 CCSprite \u0435\u0449\u0435 \u0440\u0430\u0437. \u0412 \u043f\u043e\u043b\u0435 Frame \u0443 \u0441\u043f\u0440\u0430\u0439\u0442\u0430 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 <b>cat_stand_1.png<\/b> \u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b X: 75, Y: 75.<br \/>  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0434\u0432\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 CCLabelBMFonts. \u041e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0436\u0438\u0437\u043d\u0435\u0439 \u043a\u043e\u0448\u043a\u0438, \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u044b\u0436\u043a\u043e\u0432.<br \/>  \u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 CCLabelBMFont \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u0438 \u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0445 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u043a\u0441\u0442 <b>Lives:<\/b> \u0438 <b>Dodges:<\/b>. \u0423 \u044d\u0442\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0448\u0440\u0438\u0444\u0442 <b>Arial.fnt<\/b>. \u041f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u0432\u0435\u0440\u0445\u043d\u0438\u0439 \u043b\u0435\u0432\u044b\u0439 \u0438 \u043f\u0440\u0430\u0432\u044b\u0439 \u0443\u0433\u043b\u044b \u044d\u043a\u0440\u0430\u043d\u0430, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0438\u0436\u0435:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/86b\/18e\/44e\/86b18e44ebf26ce61bcb793070d9c4c9.png\"\/><\/p>\n<p>  \u041e\u0442\u043b\u0438\u0447\u043d\u043e! \u0412\u0441\u0451 \u0433\u043e\u0442\u043e\u0432\u043e.<br \/>  \u0418\u043b\u0438 \u043d\u0435 \u0432\u0441\u0451? \u0421\u043f\u0440\u0430\u0439\u0442\u044b \u0432\u044b \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043b\u0438, \u043d\u043e \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0441\u043e\u0441\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043d\u0438\u0445 \u0432 \u043a\u043e\u0434\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a \u0431\u044b \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0442\u043e\u043c \u0432 \u043b\u043e\u0433\u0438\u043a\u0435 \u0438\u0433\u0440\u044b? \u041d\u0435 \u043b\u043e\u043c\u0430\u0439\u0442\u0435 \u0433\u043e\u043b\u043e\u0432\u0443 \u2013 \u0441 CocosBuilder \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e.<br \/>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0447\u043d\u0435\u043c \u0441 \u043d\u0430\u0448\u0435\u0433\u043e \u0433\u0435\u0440\u043e\u044f, \u043a\u043e\u0442\u0430. \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u043f\u0440\u0430\u0439\u0442 \u043a\u043e\u0442\u0430 \u0438 \u0432 \u043f\u0440\u0430\u0432\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438, \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <b>Code Connections<\/b>, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0438\u0436\u0435 \u043f\u043e\u043b\u044f <b>Custom class<\/b> \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u0435 \u043c\u0435\u043d\u044e.<br \/>  \u0412 \u044d\u0442\u043e\u043c \u043c\u0435\u043d\u044e (\u0441\u0435\u0439\u0447\u0430\u0441 \u0442\u0430\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 Don\u2019t assign) \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>Doc root var<\/b> \u0438 \u0432 \u0441\u043e\u0441\u0435\u0434\u043d\u0435\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c \u043f\u043e\u043b\u0435 \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0438\u043c\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <b>cat<\/b>. \u0422\u0430\u043a \u043c\u044b \u0441\u0432\u044f\u0437\u0430\u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u00abcat\u00bb \u0441 \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0441\u043f\u0440\u0430\u0439\u0442. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 &quot; Doc root var&quot; \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2013 \u043a\u043b\u0430\u0441\u0441\u0435 \u0441\u043b\u043e\u044f.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/698\/21a\/746\/69821a746d450fb53754a0807fc051aa.png\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0434\u043b\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0441\u0432\u044f\u0436\u0438\u0442\u0435 \u0438\u0445 \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 <b>livesLabel <\/b>\u0438 <b>dodgesLabel<\/b>.<br \/>  \u0414\u043e\u0433\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u0430\u043b\u044c\u0448\u0435? \u0422\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0441\u0446\u0435\u043d\u044b, \u044d\u0442\u0430 \u0441\u0446\u0435\u043d\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043a\u043b\u0430\u0441\u0441\u043e\u043c \u0441\u043b\u043e\u044f. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0432\u044f\u0437\u044c \u044d\u0442\u043e\u0439 \u0441\u0446\u0435\u043d\u044b \u0441 \u043a\u043b\u0430\u0441\u0441\u043e\u043c <b>GameLayer<\/b>, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0438\u0436\u0435:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/044\/827\/af2\/044827af28aa396ba85ad2c0e6b06657.png\"\/><\/p>\n<p>  \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0439\u0442\u0435 \u0441\u0446\u0435\u043d\u0443, \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 CCBI-\u0444\u0430\u0439\u043b \u0432 \u043f\u0440\u043e\u0435\u043a\u0442. \u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 Xcode \u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 Layers, \u043d\u0430\u0437\u0432\u0430\u0432 \u0435\u0433\u043e <b>GameLayer <\/b>\u0438 \u0443\u0431\u0435\u0434\u0438\u0432\u0448\u0438\u0441\u044c, \u0447\u0442\u043e \u043e\u043d \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441 CCLayer.<br \/>  \u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0433\u0440\u043e\u0432\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443. \u041d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 CocosBuilder (\u0430 \u043d\u0435 \u043f\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044e \u043b\u043e\u0433\u0438\u043a\u0438 \u0438\u0433\u0440\u044b), \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 GameLayer.m \u044d\u0442\u0438\u043c \u0434\u043b\u0438\u043d\u043d\u044b\u043c \u0431\u043b\u043e\u043a\u043e\u043c \u043a\u043e\u0434\u0430:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 GameLayer.m<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>#import &quot;GameLayer.h&quot; #import &quot;CCBReader.h&quot; #import &quot;SimpleAudioEngine.h&quot;   #define kVehicleTypeNone -1 #define kVehicleTypeRedCar 0 #define kVehicleTypeYellowCar 1 #define kVehicleTypeDog 2 #define kVehicleTypeKid 3   @interface GameLayer() { \tCCLabelBMFont *livesLabel; \tCCLabelBMFont *dodgesLabel; \tCCSprite *cat;   \tCCNode *_vehicles; \tBOOL _invincible; \tBOOL _jumping; \tdouble _nextSpawn; \tint _lives; \tint _dodges; \tCCSpriteBatchNode *_catJumpBatchNode; \tCCAnimation *_catJumpAnimation; } @end   @implementation GameLayer   - (id) init { \tself = [super init]; \tif (self) {   \t\t[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@&quot;CatJumpAtlas.plist&quot;];   \t\t_catJumpBatchNode = [CCSpriteBatchNode batchNodeWithFile:@&quot;CatJumpAtlas.png&quot;]; \t\t[self addChild:_catJumpBatchNode z:1];   \t\t_catJumpAnimation = [CCAnimation animation]; \t\t[_catJumpAnimation addSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;cat_leap_1.png&quot;]]; \t\t[_catJumpAnimation addSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;cat_leap_2.png&quot;]]; \t\t[_catJumpAnimation setDelayPerUnit:0.625f]; \t\t[_catJumpAnimation retain];   \t\t\/\/ If you want to add this to the AnimationCache instead of retaining \t\t\/\/[[CCAnimationCache sharedAnimationCache] addAnimation:catJumpAnimation name:@&quot;catJumpAnim&quot;];   \t\t\/\/ Dog Animation \t\tCCAnimation *dogAnimation = [CCAnimation animation]; \t\t[dogAnimation addSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;dog_1.png&quot;]]; \t\t[dogAnimation addSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;dog_2.png&quot;]]; \t\t[dogAnimation addSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;dog_3.png&quot;]]; \t\t[dogAnimation addSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;dog_4.png&quot;]]; \t\t[[CCAnimationCache sharedAnimationCache] addAnimation:dogAnimation name:@&quot;dogAnimation&quot;];   \t\t\/\/ Kid Animation \t\tCCAnimation *kidAnimation = [CCAnimation animation]; \t\t[kidAnimation addSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;kidontrike_1.png&quot;]]; \t\t[kidAnimation addSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;kidontrike_2.png&quot;]]; \t\t[kidAnimation addSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;kidontrike_3.png&quot;]]; \t\t[kidAnimation addSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;kidontrike_4.png&quot;]]; \t\t[[CCAnimationCache sharedAnimationCache] addAnimation:kidAnimation name:@&quot;kidAnimation&quot;];     \t\tself.isTouchEnabled = YES;   \t\t[self scheduleUpdate];   \t\t_vehicles = [CCNode node]; \t\t[self addChild:_vehicles];   \t\t_lives = 9; \t\t_dodges = 0;   \t\tdouble curTime = [[NSDate date] timeIntervalSince1970]; \t\t_nextSpawn = curTime + 4;   \t} \treturn self; }   - (void) didLoadFromCCB {  \t[self setLives:_lives]; \t[self setDodges:_dodges]; }   - (void) setDodges:(int) noOfDodges { \tdodgesLabel.string = [NSString stringWithFormat:@&quot;Dodges:%d&quot;, noOfDodges]; }   - (void) setLives:(int) noOfLives { \tlivesLabel.string = [NSString stringWithFormat:@&quot;Lives:%d&quot;, noOfLives]; }   - (void)carDone:(id)sender {   \tCCSprite *vehicle = (CCSprite *)sender; \t[vehicle removeFromParentAndCleanup:YES];   \t_dodges++; \t[self setDodges:_dodges]; }   - (void)doneInvincible { \t_invincible = FALSE; }   - (void)update:(ccTime)dt { \tCGSize winSize = [CCDirector sharedDirector].winSize; \tCCSprite *vehicleSprite; \t\/\/ Spawn Vehicles (new) \tdouble curTime = [[NSDate date] timeIntervalSince1970]; \tif (curTime &gt; _nextSpawn) {   \t\tint randomVehicle = arc4random() % 4;   \t\tif (randomVehicle == kVehicleTypeRedCar) { \t\t\t\/\/ Red Car \t\t\tvehicleSprite = [CCSprite spriteWithSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;car1_1.png&quot;]]; \t\t\t[vehicleSprite setUserData:[NSNumber numberWithInt:kVehicleTypeRedCar]]; \t\t\tCCSprite *wheel1 = [CCSprite spriteWithSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;car1_tire.png&quot;]]; \t\t\tCCSprite *wheel2 = [CCSprite spriteWithSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;car1_tire.png&quot;]]; \t\t\tid tireRotateAction1 = [CCRotateBy actionWithDuration:1.0f angle:360.0f]; \/\/ Ray, these are backwards on purpose as a lab exercise. \t\t\tid tireRotateAction2 = [CCRotateBy actionWithDuration:1.0f angle:360.0f]; \t\t\t[wheel1 runAction:[CCRepeatForever actionWithAction:tireRotateAction1]]; \t\t\t[wheel2 runAction:[CCRepeatForever actionWithAction:tireRotateAction2]]; \t\t\t[vehicleSprite addChild:wheel1]; \t\t\t[vehicleSprite addChild:wheel2]; \t\t\t[wheel1 setPosition:ccp(65,18)]; \t\t\t[wheel2 setPosition:ccp(212,18)];   \t\t} else if (randomVehicle == kVehicleTypeYellowCar) { \t\t\t\/\/ Yellow Car (Same code as Red Car except for wheel placement, re-listed for clarity. Consilidate in your own games) \t\t\tvehicleSprite = [CCSprite spriteWithSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;car2_1.png&quot;]]; \t\t\t[vehicleSprite setUserData:[NSNumber numberWithInt:kVehicleTypeYellowCar]]; \t\t\tCCSprite *wheel1 = [CCSprite spriteWithSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;car2_tire.png&quot;]]; \t\t\tCCSprite *wheel2 = [CCSprite spriteWithSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;car2_tire.png&quot;]]; \t\t\tid tireRotateAction1 = [CCRotateBy actionWithDuration:1.0f angle:-360.0f]; \t\t\tid tireRotateAction2 = [CCRotateBy actionWithDuration:1.0f angle:-360.0f]; \t\t\t[wheel1 runAction:[CCRepeatForever actionWithAction:tireRotateAction1]]; \t\t\t[wheel2 runAction:[CCRepeatForever actionWithAction:tireRotateAction2]]; \t\t\t[vehicleSprite addChild:wheel1]; \t\t\t[vehicleSprite addChild:wheel2]; \t\t\t[wheel1 setPosition:ccp(62,15)]; \t\t\t[wheel2 setPosition:ccp(195,15)];   \t\t} else if (randomVehicle == kVehicleTypeDog) { \t\t\t\/\/ Dog \t\t\tvehicleSprite = [CCSprite spriteWithSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;dog_1.png&quot;]]; \t\t\t[vehicleSprite setUserData:[NSNumber numberWithInt:kVehicleTypeDog]];   \t\t\t\/\/ In your code, check that the animationByName did not return nil (due to memory warnings) \t\t\tCCAnimation *vehicleAnimation = [[CCAnimationCache sharedAnimationCache] animationByName:@&quot;dogAnimation&quot;];   \t\t\tvehicleAnimation.restoreOriginalFrame = NO; \t\t\tvehicleAnimation.delayPerUnit = 0.5f\/ vehicleAnimation.frames.count; \t\t\tid animationAction = [CCAnimate actionWithAnimation:vehicleAnimation];   \t\t\t[vehicleSprite runAction:[CCRepeatForever actionWithAction:animationAction]];   \t\t} else { \t\t\t\/\/ Kid on Bike (Same code as Dog, re-listed for clarity. Consilidate in your own games) \t\t\tvehicleSprite = [CCSprite spriteWithSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@&quot;kidontrike_1.png&quot;]]; \t\t\t[vehicleSprite setUserData:[NSNumber numberWithInt:kVehicleTypeKid]];   \t\t\t\/\/ In your code, check that the animationByName did not return nil (due to memory warnings) \t\t\tCCAnimation *vehicleAnimation = [[CCAnimationCache sharedAnimationCache] animationByName:@&quot;kidAnimation&quot;];   \t\t\tvehicleAnimation.restoreOriginalFrame = NO; \t\t\tvehicleAnimation.delayPerUnit = 0.5f\/ vehicleAnimation.frames.count; \t\t\tid animationAction = [CCAnimate actionWithAnimation:vehicleAnimation];   \t\t\t[vehicleSprite runAction:[CCRepeatForever actionWithAction:animationAction]];   \t\t}   \t\t\/\/ Common placement and movement code for all vehicles   \t\tvehicleSprite.position = ccp(winSize.width + vehicleSprite.contentSize.width\/2, 75); \t\t[_catJumpBatchNode addChild:vehicleSprite];   \t\t[vehicleSprite runAction:[CCSequence actions: \t\t\t\t\t\t\t\t  [CCMoveBy actionWithDuration:1.25 position:ccp(-winSize.width-vehicleSprite.contentSize.width, 0)], \t\t\t\t\t\t\t\t  [CCCallFuncN actionWithTarget:self selector:@selector(carDone:)], \t\t\t\t\t\t\t\t  nil]];   \t\tfloat randomInterval = arc4random() % 3 + 1.5; \t\t_nextSpawn = curTime + randomInterval;     \t}     \t\/\/ Check for collisions \tif (!_invincible) { \t\tfloat insetAmtX = 10; \t\tfloat insetAmtY = 10; \t\tBOOL isCatColliding; \t\tCGRect catRect = CGRectInset(cat.boundingBox, insetAmtX, insetAmtY); \t\tCGRect vehicleRect; \t\tfor (CCSprite *vehicle in _catJumpBatchNode.children) { \t\t\tif ([vehicle tag] == 1) { \t\t\t\tcontinue;  \/\/ No need to check if the Cat collides with itself \t\t\t} \t\t\tisCatColliding = NO; \t\t\tNSNumber *vehicleTypeNumber = (NSNumber*)[vehicle userData]; \t\t\tint vehicleType = [vehicleTypeNumber intValue];   \t\t\tif (vehicleType == kVehicleTypeRedCar) { \t\t\t\tCGPoint boundingBoxOrigin = vehicle.boundingBox.origin; \t\t\t\tCGRect carHood = CGRectMake(boundingBoxOrigin.x+10,boundingBoxOrigin.y , 40,80); \t\t\t\tinsetAmtX = 50; \t\t\t\tinsetAmtY = 10; \t\t\t\tvehicleRect = CGRectInset(vehicle.boundingBox,insetAmtX,insetAmtY);   \t\t\t\tif ((CGRectIntersectsRect(catRect,carHood)) || \t\t\t\t\t(CGRectIntersectsRect(catRect, vehicleRect))) { \t\t\t\t\tisCatColliding = YES; \t\t\t\t\tCCLOG(@&quot;Collided with Red Car&quot;); \t\t\t\t}   \t\t\t} else if (vehicleType == kVehicleTypeYellowCar) { \t\t\t\tCGPoint boundingBoxOrigin = vehicle.boundingBox.origin; \t\t\t\tCGRect carHood = CGRectMake(boundingBoxOrigin.x+10,boundingBoxOrigin.y , 68,65); \t\t\t\tinsetAmtX = 68; \t\t\t\tinsetAmtY = 10; \t\t\t\tvehicleRect = CGRectInset(vehicle.boundingBox,insetAmtX,insetAmtY);   \t\t\t\tif ((CGRectIntersectsRect(catRect,carHood)) || \t\t\t\t\t(CGRectIntersectsRect(catRect, vehicleRect))) { \t\t\t\t\tisCatColliding = YES; \t\t\t\t\tCCLOG(@&quot;Collided with Yellow Car&quot;); \t\t\t\t}      \t\t\t} else { \t\t\t\t\/\/ Dog or Kid \t\t\t\tCGRect vehicleRect = CGRectInset(vehicle.boundingBox, insetAmtX, insetAmtY); \t\t\t\tif (CGRectIntersectsRect(catRect, vehicleRect)) { \t\t\t\t\tisCatColliding = YES; \t\t\t\t} \t\t\t}     \t\t\tif (isCatColliding == YES) { \t\t\t\t\/\/ Play sound, take a hit, invincible, break out of the loop \t\t\t\t[[SimpleAudioEngine sharedEngine] playEffect:@&quot;squish.wav&quot;];\t\t\t \t\t\t\t_invincible = TRUE; \t\t\t\t[cat runAction:[CCSequence actions: \t\t\t\t\t\t\t\t[CCBlink actionWithDuration:1.0 blinks:6], \t\t\t\t\t\t\t\t[CCCallFunc actionWithTarget:self selector:@selector(doneInvincible)], \t\t\t\t\t\t\t\tnil]];\t  \t\t\t\t_lives--; \t\t\t\t[self setLives:_lives];   \t\t\t\tif (_lives &lt;= 0) { \t\t\t\t\t[[CCDirector sharedDirector] replaceScene:[CCTransitionJumpZoom transitionWithDuration:1.0 scene:[CCBReader sceneWithNodeGraphFromFile:@&quot;GameOver.ccbi&quot;]]]; \t\t\t\t} \t\t\t\tbreak; \t\t\t} \t\t}   \t} }   - (void)doneJump { \t_jumping = FALSE; }   - (void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {   \tif (!_jumping) {   \t\t_jumping = TRUE; \t\t[[SimpleAudioEngine sharedEngine] playEffect:@&quot;meow.wav&quot;];   \t\tCCLOG(@&quot;Making the Cat Jump&quot;); \t\t_catJumpAnimation.restoreOriginalFrame = YES; \t\tCCAnimate *jumpAnimation = [CCAnimate actionWithAnimation:_catJumpAnimation];   \t\tCCJumpBy *jumpAction = [CCJumpBy actionWithDuration:1.25 position:ccp(0,0) height:200 jumps:1]; \t\tCCCallFunc *doneJumpAction = [CCCallFunc actionWithTarget:self selector:@selector(doneJump)]; \t\tCCSequence *sequenceAction = [CCSequence actions:jumpAction,doneJumpAction, nil];     \t\t[cat runAction:[CCSpawn actions:jumpAnimation,sequenceAction, nil]]; \t}   } @end <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0435 \u0441\u0442\u0435\u0441\u043d\u044f\u0439\u0442\u0435\u0441\u044c \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u0432 \u043a\u043e\u0434, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 \u043b\u043e\u0433\u0438\u043a\u043e\u0439 \u0438\u0433\u0440\u043e\u0439, \u043d\u043e \u043d\u0435 \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0439\u0442\u0435\u0441\u044c \u043e\u0431 \u044d\u0442\u043e\u043c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u2014 \u0432 \u0446\u0435\u043d\u0442\u0440\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f CocosBuilder.<br \/>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043a\u043e\u0434\u0430, \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 #defines:  <\/p>\n<pre><code>CCLabelBMFont *livesLabel; CCLabelBMFont *dodgesLabel; CCSprite *cat; <\/code><\/pre>\n<p>  \u042d\u0442\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u044f \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u0432\u044b \u0438\u0445 \u043f\u043e\u043c\u043d\u0438\u0442\u0435, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0432 CocosBuilder. \u041e\u043d\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u0441\u043f\u0440\u0430\u0439\u0442 \u043a\u043e\u0442\u0430, \u0442\u0435\u043a\u0441\u0442 \u043f\u0440\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0436\u0438\u0437\u043d\u0435\u0439 \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u044b\u0436\u043a\u043e\u0432.<br \/>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0438\u0433\u0440\u0443. \u0422\u0435\u043f\u0435\u0440\u044c, \u0435\u0441\u043b\u0438 \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 Play \u0432 \u0433\u043b\u0430\u0432\u043d\u043e\u043c \u043c\u0435\u043d\u044e, \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u0432 \u0438\u0433\u0440\u0443.<br \/>  \u0423\u0440\u0430! \u0412\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0438\u0433\u0440\u043e\u0432\u0443\u044e \u0441\u0446\u0435\u043d\u0443. \u042d\u0442\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043b\u0435\u0433\u0447\u0435, \u0447\u0435\u043c \u0443\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0434\u0435\u0442\u0435\u0439 \u043d\u0430 \u0442\u0440\u0435\u0445\u043a\u043e\u043b\u0435\u0441\u043d\u044b\u0445 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u0430\u0445.<\/p>\n<h1>\u041a\u043e\u043d\u0435\u0446 \u0438\u0433\u0440\u044b<\/h1>\n<p>  \u0414\u0443\u043c\u0430\u0435\u0442\u0435 \u0432\u044b \u0432\u0441\u0451 \u0441\u0434\u0435\u043b\u0430\u043b\u0438? \u041d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c.<br \/>  \u0412\u044b, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438, \u0447\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u0442 \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u0442 \u0432\u0441\u0435 \u0436\u0438\u0437\u043d\u0438, \u0438\u0433\u0440\u0430 \u0432\u044b\u0434\u0430\u0451\u0442 \u043e\u0448\u0438\u0431\u043a\u0443. \u042d\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0441\u0446\u0435\u043d\u0430 Game Over, \u043a\u043e\u0442\u043e\u0440\u0443\u044e CCBReader \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432\u044b \u0435\u0435 \u0435\u0449\u0451 \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438.<br \/>  \u042d\u0442\u0430 \u0441\u0446\u0435\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0434\u0432\u0435 \u043a\u043d\u043e\u043f\u043a\u0438:  <\/p>\n<ul>\n<li><b>Main Menu<\/b>: \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043c\u0435\u043d\u044e.<\/li>\n<li><b>Replay<\/b>: \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0438\u0433\u0440\u0430\u0435\u0442 \u0432 \u0438\u0433\u0440\u0443 \u0441\u043d\u043e\u0432\u0430.<\/li>\n<\/ul>\n<p>  \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u0441\u044c \u0432 CocosBuilder \u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <b>GameOver<\/b>. \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0434\u0432\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 CCControlButtons \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0432\u044b\u0448\u0435. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u0437\u0430\u0431\u044b\u043b\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u043c \u0442\u0435\u0433\u0438 1 \u0438 2. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0432 \u043f\u043e\u043b\u0435 Selector \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>buttonPressed:<\/b>, \u0430 \u0432 \u043f\u043e\u043b\u0435 Target \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>Document root<\/b>.<br \/>  \u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0443 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u0441\u043b\u043e\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>GameOverLayer<\/b>, \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0439\u0442\u0435 \u0444\u0430\u0439\u043b.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/a2f\/7bb\/9e4\/a2f7bb9e47a4de9d625bcec87a459fef.png\"\/><\/p>\n<p>  \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u0441\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 Xcode \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 CCBI-\u0444\u0430\u0439\u043b \u0432 \u043f\u0440\u043e\u0435\u043a\u0442. \u0417\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 Cocos2D \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 Layers \u0438 \u043d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e <b>GameOverLayer<\/b>, \u0443\u0431\u0435\u0434\u0438\u0432\u0448\u0438\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043a\u043b\u0430\u0441\u0441 \u2013 \u043f\u043e\u0434-\u043a\u043b\u0430\u0441\u0441 CCLayer \u043a\u043b\u0430\u0441\u0441\u0430.<br \/>  \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438\u043c\u043f\u043e\u0440\u0442\u0430 \u0432 GameOverLayer.m:  <\/p>\n<pre><code>#import &quot;CCControlButton.h&quot; #import &quot;CCBReader.h&quot; <\/code><\/pre>\n<p>  \u0410 \u0442\u0430\u043a\u0436\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439:  <\/p>\n<pre><code>#define MAIN_MENU_BUTTON_TAG 1 #define PLAY_AGAIN_BUTTON_TAG 2 <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043c\u0435\u0442\u043e\u0434, \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438:  <\/p>\n<pre><code>-(void)buttonPressed:(id)sender { \tCCControlButton *button = (CCControlButton*) sender; \tswitch (button.tag) { \t\tcase MAIN_MENU_BUTTON_TAG: \t\t\t[[CCDirector sharedDirector] replaceScene:[CCTransitionFlipY transitionWithDuration:1.0 scene:[CCBReader sceneWithNodeGraphFromFile:@&quot;MainMenuScene.ccbi&quot;]]]; \t\t\tbreak;   \t\tcase PLAY_AGAIN_BUTTON_TAG: \t\t\t[[CCDirector sharedDirector] replaceScene:[CCTransitionFadeUp transitionWithDuration:1.0 scene:[CCBReader sceneWithNodeGraphFromFile:@&quot;GameScene.ccbi&quot;]]]; \t\t\tbreak; \t} } <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443. \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u043f\u043e\u043b\u043d\u043e\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u0433\u0440\u0430.<br \/>  \u042d\u0442\u043e \u0436\u0435 \u0431\u044b\u043b\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435, \u0447\u0435\u043c \u043f\u043e\u0434\u0431\u043e\u0440 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441\u043f\u0440\u0430\u0439\u0442\u043e\u0432 \u0432 \u043a\u043e\u0434\u0435 \u0438\u0433\u0440\u044b?<\/p>\n<h1>\u041f\u043e\u0438\u0441\u043a \u0438 \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 CocosBuilder<\/h1>\n<p>  CocosBuilder \u2013 \u044d\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0446\u0435\u043d. \u041e\u0434\u043d\u0430\u043a\u043e, \u044d\u0442\u043e\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448 \u0432 \u043e\u0431\u0449\u0435\u043d\u0438\u0438, \u043a\u043e\u0433\u0434\u0430 \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0441\u043e \u0441\u0446\u0435\u043d\u043e\u0439. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0430\u0448\u0435 \u0432\u0440\u0435\u043c\u044f, \u044f \u0441\u043e\u0431\u0440\u0430\u043b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0439\u0442\u0438, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0441\u0446\u0435\u043d\u0430 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043e\u043b\u0436\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438\u043b\u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438.  <\/p>\n<ul>\n<li>\u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 CocosBuilder \u043f\u0435\u0440\u0435\u0434 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u0444\u0430\u0439\u043b\u0430. \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e. CocosBuilder \u043d\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u0435\u0442 \u0432\u0430\u0441 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0435 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044e. \u0422\u0430\u043a \u0447\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u044d\u0442\u043e \u043f\u0440\u0438\u0432\u044b\u0447\u043a\u043e\u0439 \u2014 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0434 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u0441\u0446\u0435\u043d\u044b.<\/li>\n<li>\u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u0442\u0435 CCBI-\u0444\u0430\u0439\u043b \u0432 Xcode-\u043f\u0440\u043e\u0435\u043a\u0442, \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435, \u0447\u0442\u043e \u0432 \u043f\u043e\u043b\u0435 <b>Add to target<\/b>, \u0440\u044f\u0434\u043e\u043c \u0441 \u0432\u0430\u0448\u0438\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u0441\u0442\u043e\u0438\u0442 \u0433\u0430\u043b\u043e\u0447\u043a\u0430. \u041e\u0431\u044b\u0447\u043d\u043e, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u0435 \u0433\u0430\u043b\u043e\u0447\u043a\u0443 \u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u043f\u043e\u043b\u0435 Add to targets, \u043e\u043d\u0430 \u0442\u0430\u043c \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f. \u041d\u043e \u043d\u0435 \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 CCBI. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u044d\u0442\u043e\u0439 \u0433\u0430\u043b\u043e\u0447\u043a\u0438, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0446\u0435\u043d\u044b \u0443 \u0432\u0430\u0441 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u0430.<\/li>\n<li>\u0427\u0438\u0442\u0430\u0439\u0442\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0438. \u0415\u0441\u043b\u0438 CocosBuilder \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0430\u043c, \u0447\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a, \u0442\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0432\u0430\u043c \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a. \u0415\u0441\u043b\u0438 \u0442\u0430\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e: \u00abFile not found: GameOver.ccbi\u00bb, \u0442\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0444\u0430\u0439\u043b GameOver.ccbi \u0438\u043b\u0438 \u043d\u0435 \u0431\u044b\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432 \u043f\u0440\u043e\u0435\u043a\u0442, \u0438\u043b\u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u044c\u044e \u0442\u043e\u0439 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0435, \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0435\u0441\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430.<\/li>\n<li>\u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u043e\u043f\u0435\u0447\u0430\u0442\u0430\u043b\u0438\u0441\u044c. \u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u0432\u0432\u043e\u0434\u0438\u0442\u0435 \u0442\u0430\u043a\u043e\u0439 \u0442\u0435\u043a\u0441\u0442, \u043a\u0430\u043a \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0438\u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e \u043d\u0435 \u043e\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c\u0441\u044f. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430.<\/li>\n<\/ul>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u0441\u043e\u0432\u0435\u0442\u044b, \u0442\u043e \u0432\u044b \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u0435 \u0441\u0435\u0431\u0435 \u0432\u0440\u0435\u043c\u044f, \u0430 \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u0441\u0451 \u0436\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0435\u0442, \u0442\u043e, \u043c\u044b \u043d\u0430\u0434\u0435\u0435\u043c\u0441\u044f, \u0432\u044b \u043d\u0430\u0431\u0440\u043e\u0441\u0438\u0442\u0435\u0441\u044c \u043d\u0430 \u043d\u0435\u0451, \u043a\u0430\u043a \u0440\u0435\u0437\u0432\u044b\u0439 \u043a\u043e\u0442 \u043d\u0430 \u043c\u044b\u0448\u044c.<\/p>\n<h1>\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435?<\/h1>\n<p>  <a href=\"http:\/\/cdn2.raywenderlich.com\/downloads\/CatJumpWithCocosBuilder2.zip\">\u0422\u0443\u0442 \u0432\u0435\u0441\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/a> \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u0433\u043e\u0442\u043e\u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c CocosBuilder \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0438\u0433\u0440. \u042f \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u0443\u0440\u043e\u043a \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u0412\u0430\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u044b\u0445 \u0438\u0433\u0440! \t\t\t \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/166709\/\"> http:\/\/habrahabr.ru\/post\/166709\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/a9a\/8bc\/700\/a9a8bc700d28d9bf4d44626c127cca53.png\"\/><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/www.raywenderlich.com\/23996\/introduction-to-cocosbuilder\">Introduction to CocosBuilder<\/a><\/p>\n<p>  CocosBuilder \u2013 \u044d\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043b\u0435\u0433\u043a\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043f\u0440\u0430\u0439\u0442\u0430\u043c\u0438, \u043c\u0430\u043a\u0435\u0442\u0430\u043c\u0438 \u0438 \u0441\u0446\u0435\u043d\u0430\u043c\u0438 \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0432\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0439 Cocos2D.<\/p>\n<p>  CocosBuilder \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0439 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u043a\u0438 \u043c\u0435\u043d\u044e \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u0441\u0446\u0435\u043d, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043f\u043e \u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0435 \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435.<br \/>  \u0412 \u0445\u043e\u0434\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u0432\u044b \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0438\u0433\u0440\u0443 Cat Jump. \u0412\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435, \u043a\u0430\u043a CocosBuilder \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043c\u0430\u0441\u0441\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u043a\u043e\u0434\u0430.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-166709","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/166709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=166709"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/166709\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=166709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=166709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=166709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}