{"id":2147,"date":"2013-03-03T22:28:36","date_gmt":"2013-03-03T22:28:36","guid":{"rendered":"http:\/\/www.benoitfreslon.com\/?p=2147"},"modified":"2024-07-19T09:32:15","modified_gmt":"2024-07-19T07:32:15","slug":"tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker","status":"publish","type":"post","link":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\/","title":{"rendered":"Tutorial: Export your Flash animations on iPhone and iPad with cocos2d and TexturePacker"},"content":{"rendered":"<p>Salut amis codeurs iOS,<\/p>\n<p>Dans ce tutorial je vais vous montrer comment exporter une animation .swf utilisable pour iPhone iPad et pour les supports retina avec cocos2d-iPhone 2.0. En gros un truc qui fait le caf\u00e9 !<\/p>\n<p>J&rsquo;utilise toujours Adobe Flash lorsque je d\u00e9veloppe des jeux quelque soit le support.<br \/>\nFlash est un super outils pour les d\u00e9veloppeurs : interface WYSIWYG, \u00e9diteur d&rsquo;animations, \u00e9diteur vectoriel, &#8230;<br \/>\nSi je veux redimensionner mes animations aucun probl\u00e8me avec le vectoriel :).<\/p>\n<p>You pouvez t\u00e9l\u00e9charger le zip final\u00a0<a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/AnimatedSpriteWithFlash.zip\">AnimatedSpriteWithFlash.zip<\/a>.<\/p>\n<h2>1. Outils et fichiers<\/h2>\n<p>Vous avez besoin de quelques outils et quelques fichiers :<\/p>\n<ul>\n<li>T\u00e9l\u00e9charger et installer les librairies\u00a0Cocos2D-iPhone 2.0 libraries\u00a0avec le template.<\/li>\n<li>T\u00e9l\u00e9charger et installer\u00a0Adobe Flash.<\/li>\n<li>T\u00e9l\u00e9charger et installer\u00a0<a title=\"TexturePacker\" href=\"http:\/\/www.codeandweb.com\/texturepacker\" target=\"_blank\" rel=\"noopener\">TexturePacker<\/a>.<\/li>\n<li>T\u00e9l\u00e9charger les classes AnimatedSprite sur\u00a0<a title=\"Animated Sprite\" href=\"https:\/\/github.com\/BenoitFreslon\/AnimatedSprite\" target=\"_blank\" rel=\"noopener\">github<\/a>.<\/li>\n<li>T\u00e9l\u00e9charger les animations Flash :\u00a0<a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/Pig.zip\">Pig.zip<\/a>.<\/li>\n<\/ul>\n<p>[swf:\/wp-content\/uploads\/2013\/03\/pig_dead.swf 100 100]<br \/>\n[swf:\/wp-content\/uploads\/2013\/03\/pig_walk.swf 100 100]<\/p>\n<h2>2. Flash<\/h2>\n<h3>Dans Flash<\/h3>\n<ul>\n<li>Ouvrir\u00a0<strong>pig_walk.fla<\/strong>\u00a0et\u00a0<strong>pig_dead.fla<\/strong>\u00a0avec Adobe Flash.<\/li>\n<li>Ensuite exporter les animations avec CMD+Entr\u00e9e ou CTRL+Entr\u00e9e sous Windows.<\/li>\n<li>Flash va exporter un fichier .swf dans le m\u00eame dossier :\u00a0<strong>pig_walk.swf<\/strong>\u00a0et\u00a0<strong>pig_dead.swf<\/strong>.<\/li>\n<\/ul>\n<h3>Astuces dans Flash<\/h3>\n<ul>\n<li>Cr\u00e9er un\u00a0rep\u00e8re au centre de la sc\u00e8ne. Seulement pour se positionner. Supprimer-le avant l&rsquo;exportation ou bien utiliser un calque \u00ab\u00a0Guide\u00a0\u00bb pour le rendre invisible.<\/li>\n<li>Utiliser les m\u00eames dimensions de sc\u00e8ne pour les diff\u00e9rentes animations d&rsquo;un seul objet.<\/li>\n<li>Utiliser un symbole \u00ab\u00a0<strong>Graphique<\/strong>\u00a0\u00bb au lieu d&rsquo;un \u00ab\u00a0MovieClip\u00a0\u00bb. Les animations Graphiques sont\u00a0lisibles\u00a0par TexturePacker.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-01-\u00e0-17.45.44.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-01-\u00e0-17.45.44.png\" alt=\"Capture d\u2019\u00e9cran 2013-03-01 \u00e0 17.45.44\" width=\"215\" height=\"100\" \/><\/a><\/p>\n<ul>\n<li>Cr\u00e9er un fichier .fla par animation.<\/li>\n<li>Toujours travailler pour l&rsquo;\u00e9chelle 2048&#215;2948 iPad retina. Afin d&rsquo;\u00eatre d\u00e9j\u00e0 pr\u00eat pour l&rsquo;export iPad retina :).<\/li>\n<\/ul>\n<h2>3. TexturePacker<\/h2>\n<h3>Dans TexurePacker<\/h3>\n<p>Utilisons TexturePacker pour exporter un spritesheet compress\u00e9 pour une application universelle.<\/p>\n<ol>\n<li>Ajouter\u00a0<strong>pig_walk.swf<\/strong>\u00a0et\u00a0<strong>pig_dead.swf<\/strong>\u00a0dans TexturePacker<\/li>\n<li>Cliquer sur le<strong>\u00a0[&#8230;] <\/strong>puis\u00a0s\u00e9lectionner le dossier d&rsquo;export et rentrer le nom de fichier\u00a0:\u00a0<strong>pig-ipadhd.plist<\/strong>\u00a0(ipadhd pour l&rsquo;exportation universelle).<\/li>\n<li>Texture au format :\u00a0<strong>zlib compr, PVR (.pvr.ccz, Ver.2)<\/strong><\/li>\n<li>Cocher\u00a0<strong>Premultiply alpha<\/strong><\/li>\n<li><strong>AutoSD<\/strong>: r\u00e9gler\u00a0<strong>cocos2D ipad\/hd\/sd<\/strong>\u00a0et valider en cliquant sut <strong>Apply<\/strong>.<\/li>\n<li>Sauvegarder le fichier puis cliquer sur <strong>Publish.\u00a0<\/strong>TexturePacker va alors exporter 6 fichiers, les images .pvr et les bases de donn\u00e9es .plist pour chaque format (ipad\/hd\/sd).<\/li>\n<\/ol>\n<p>Voici le rendu du spritesheet:<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/pig.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/pig.png\" alt=\"pig\" width=\"342\" height=\"152\" \/><\/a><\/p>\n<h3>Astuces TexturePacker<\/h3>\n<ul>\n<li>R\u00e9gler l&rsquo;image en couleur\u00a0<strong>RGBA4444<\/strong>\u00a0si vous souhaiter optimiser les m\u00e9dias. Puis r\u00e9gler le\u00a0<strong>Dithering<\/strong>\u00a0\u00e0\u00a0<strong>FloydSteinbergAlpha<\/strong>\u00a0pour avoir un meilleur rendu sur les d\u00e9grad\u00e9s de couleur.<\/li>\n<li>Toujours travailler avec le m\u00eame framerate dans Flash et dans XCode.<\/li>\n<li>Les dimensions maximales sont de <strong>4096&#215;4096<\/strong> pour une texture de type iPad retina et 2048&#215;2048 pour un iPhone 3GS. Mais TexturePacker s&rsquo;occupe de redimensionner tout \u00e7a.<\/li>\n<li>Cocher\u00a0<strong>Allow rotation<\/strong><\/li>\n<li>R\u00e9gler\u00a0<strong>size contraints<\/strong>\u00a0\u00e0\u00a0<strong>Any size<\/strong><\/li>\n<li>Si vos sprites sont coup\u00e9s sur les c\u00f4t\u00e9s dans votre rendu r\u00e9gler <strong>Trim mode<\/strong> \u00e0 <strong>None.<\/strong><\/li>\n<li>Cocher\u00a0<strong>Enable auto alias<\/strong><\/li>\n<li>Soyez curieux et testez d&rsquo;autres r\u00e9glages ;).<\/li>\n<\/ul>\n<h2>4. XCode<\/h2>\n<h3>Dans Xcode<\/h3>\n<ul>\n<li>Cr\u00e9er un nouveau projet Cocos2D avec le template install\u00e9.<\/li>\n<li>R\u00e9gler le\u00a0<strong>iOS deployment Target \u00e0 5.1<\/strong>\u00a0au moins.<\/li>\n<li>Ajouter le fichier AnimatedSprite.m et le fichier AnimatedSprite.h dans votre projet XCode. Ne pas oublier de cocher la \u00ab\u00a0target\u00a0\u00bb du projet au moment de l&rsquo;importation.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-02-\u00e0-11.56.56.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-02-\u00e0-11.56.56.png\" alt=\"Capture d\u2019\u00e9cran 2013-03-02 \u00e0 11.56.56\" width=\"541\" height=\"140\" \/><\/a><\/p>\n<ul>\n<li>Si vous utiliser ARC dans votre projet ajouter un \u00ab\u00a0flag\u00a0\u00bb sur le fichier :\u00a0Target &gt; Build Phases &gt; Puis ajouter le \u00ab\u00a0compiler flag\u00a0\u00bb sur le fichier AnimatedSprite.m &gt; &#8211;<strong>fojbc-arc. NB: Par d\u00e9faut l&rsquo;ARC n&rsquo;est pas activ\u00e9.<\/strong><\/li>\n<\/ul>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-01-\u00e0-16.58.30.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-01-\u00e0-16.58.30.png\" alt=\"Capture d\u2019\u00e9cran 2013-03-01 \u00e0 16.58.30\" width=\"431\" height=\"106\" \/><\/a><\/p>\n<ul>\n<li><strong>Ajouter de la m\u00eame mani\u00e8re ces fichiers dans le projet XCode :<\/strong>\n<ul>\n<li><strong>pig.plist<\/strong><\/li>\n<li><strong>pig.pvr.ccz<\/strong><\/li>\n<li><strong>pig-hd.plist<\/strong><\/li>\n<li><strong>pig-hd.pvr.ccz<\/strong><\/li>\n<li><strong>pig-ipadhd<\/strong>.<strong>plist<\/strong><\/li>\n<li><strong>pig-ipadhd.pvr.ccz<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-02-\u00e0-11.57.02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-02-\u00e0-11.57.02.png\" alt=\"Capture d\u2019\u00e9cran 2013-03-02 \u00e0 11.57.02\" width=\"237\" height=\"121\" \/><\/a><\/p>\n<ul>\n<li><strong>Ouvrir le fichier HelloWorldLayer.h depuis XCode et remplacer le par celui ci :<\/strong><\/li>\n<\/ul>\n<pre>\/\/ When you import this file, you import all the cocos2d classes\r\n\r\n#import \"cocos2d.h\"\r\n\r\n#import \"AnimatedSprite.h\"\r\n\r\n\/\/ HelloWorldLayer\r\n\r\n@interface HelloWorldLayer : CCLayer\r\n\r\n{\r\n\r\n    AnimatedSprite *pig;\r\n\r\n}\r\n\r\n\/\/ returns a CCScene that contains the HelloWorldLayer as the only child\r\n\r\n+(CCScene *) scene;\r\n\r\n@end<\/pre>\n<ul>\n<li><strong>Ensuite utiliser ce code pour la classe HelloWorldLayer.m :<\/strong><\/li>\n<\/ul>\n<pre>\/\/ Import the interfaces\r\n#import \"HelloWorldLayer.h\"\r\n\r\n\/\/ Needed to obtain the Navigation Controller\r\n#import \"AppDelegate.h\"\r\n\r\n#import \"AnimatedSprite.h\"\r\n\r\n#pragma mark - HelloWorldLayer\r\n\r\n\/\/ HelloWorldLayer implementation\r\n@implementation HelloWorldLayer\r\n\r\n\/\/ Helper class method that creates a Scene with the HelloWorldLayer as the only child.\r\n+(CCScene *) scene\r\n{\r\n\t\/\/ 'scene' is an autorelease object.\r\n\tCCScene *scene = [CCScene node];\r\n\r\n\t\/\/ 'layer' is an autorelease object.\r\n\tHelloWorldLayer *layer = [HelloWorldLayer node];\r\n\r\n\t\/\/ add layer as a child to scene\r\n\t[scene addChild: layer];\r\n\r\n\t\/\/ return the scene\r\n\treturn scene;\r\n}\r\n\r\n\/\/ on \"init\" you need to initialize your instance\r\n-(id) init\r\n{\r\n\t\/\/ always call \"super\" init\r\n\t\/\/ Apple recommends to re-assign \"self\" with the \"super's\" return value\r\n\tif( (self=[super init]) ) {\r\n\r\n\t\tself.touchEnabled = YES;\r\n\r\n\t\t\/\/ Load the pig spritesheet\r\n\t\t[self loadSpritesheet:@\"pig\"];\r\n\r\n\t\t\/\/ Create the pig instance with a default sprite\r\n\t\tpig = [AnimatedSprite spriteWithSpriteFrameName:@\"pig_walk.swf\/0000\"];\r\n\r\n\t\t\/\/ Init a looping animation\r\n\t\t[pig addLoopingAnimation:@\"walk\" frame:@\"pig_walk.swf\/%04d\" delay:0.05f];\r\n\r\n\t\t\/\/ Init an animation\r\n\t\t[pig addAnimation:@\"dead\" frame:@\"pig_dead.swf\/%04d\" delay:0.05f target:self callback:@selector(removePig)];\r\n\r\n\t\t\/\/ Set the position of the sprite\r\n\t\tpig.position = ccp(200,200);\r\n\r\n\t\t\/\/ Add the sprite in the scene\r\n\t\t[self addChild:pig];\r\n\r\n\t\t\/\/ Start the walk animation\r\n\t\t[pig startAnimation:@\"walk\"];\r\n\r\n\t}\r\n    return self;\r\n}\r\n\r\n- (void) ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {\r\n\tCCLOG(@\"Start dead animation\");\r\n\t[pig startAnimation:@\"dead\"];\r\n}\r\n\r\n- (void) removePig {\r\n\tCCLOG(@\"Remove pig\");\r\n\t[pig removeFromParentAndCleanup:YES];\r\n}\r\n\r\n- (void) loadSpritesheet:(NSString *)spritesheetName {\r\n\r\n\t[CCTexture2D PVRImagesHavePremultipliedAlpha:YES];\r\n\t[CCTexture2D setDefaultAlphaPixelFormat:kCCTexture2DPixelFormat_RGBA4444];\r\n\tNSString *pvrccz = [NSString stringWithFormat:@\"%@.pvr.ccz\", spritesheetName];\r\n\tCCSpriteBatchNode *loadingBatchNode = [CCSpriteBatchNode batchNodeWithFile:pvrccz];\r\n\t[self addChild:loadingBatchNode z:2];\r\n\tNSString *plist = [NSString stringWithFormat:@\"%@.plist\", spritesheetName];\r\n\t[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:plist];\r\n\t[CCTexture2D setDefaultAlphaPixelFormat:kCCTexture2DPixelFormat_Default];\r\n}\r\n\/\/ on \"dealloc\" you need to release all your retained objects\r\n- (void) dealloc\r\n{\r\n\t\/\/ in case you have something to dealloc, do it in this method\r\n\t\/\/ in this particular example nothing needs to be released.\r\n\t\/\/ cocos2d will automatically release all the children (Label)\r\n\r\n\t\/\/ don't forget to call \"super dealloc\"\r\n\t[super dealloc];\r\n}\r\n@end<\/pre>\n<p>Cliquez sur Run et voil\u00e0 le travail :).<\/p>\n<p>Si vous tapez sur l&rsquo;\u00e9cran l&rsquo;animation de mort va se lancer et le cochon va disparaitre.<\/p>\n<p>C&rsquo;est fini !<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-04-\u00e0-00.09.40.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-04-\u00e0-00.09.40-300x154.png\" alt=\"Capture d\u2019\u00e9cran 2013-03-04 \u00e0 00.09.40\" width=\"300\" height=\"154\" \/><\/a><\/p>\n<p>Vous pouvez \u00e9galement lire les commentaires du fichier AnimatedSprite.h pour plus de d\u00e9tails sur cette classe qui permet de g\u00e9rer des animations.<\/p>\n<p>A ++ !<\/p>","protected":false},"excerpt":{"rendered":"<p>Salut amis codeurs iOS, Dans ce tutorial je vais vous montrer comment exporter une animation .swf utilisable pour iPhone iPad&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[189,146,183,6,147,181,180,185,190,182,184],"class_list":["post-2147","post","type-post","status-publish","format-standard","hentry","category-news","tag-animations","tag-cocos2d","tag-development","tag-flash","tag-ios","tag-ipad","tag-spritesheet","tag-texturepacker","tag-tweens","tag-universal","tag-xcode","wpcat-1-id"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tutorial: Export your Flash animations on iPhone and iPad with cocos2d and TexturePacker - Beno\u00eet Freslon<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\/\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Benoit Freslon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\\\/\"},\"author\":{\"name\":\"Benoit Freslon\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/#\\\/schema\\\/person\\\/fe9fe28a6b6c2b56648448b977fd6b78\"},\"headline\":\"Tutorial: Export your Flash animations on iPhone and iPad with cocos2d and TexturePacker\",\"datePublished\":\"2013-03-03T22:28:36+00:00\",\"dateModified\":\"2024-07-19T07:32:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\\\/\"},\"wordCount\":1332,\"image\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/benoitfreslon.com\\\/wp-content\\\/uploads\\\/2013\\\/03\\\/pig.png\",\"keywords\":[\"animations\",\"cocos2d\",\"development\",\"flash\",\"ios\",\"ipad\",\"spritesheet\",\"texturepacker\",\"tweens\",\"universal\",\"xcode\"],\"articleSection\":[\"Actualit\u00e9s\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\\\/\",\"url\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\\\/\",\"name\":\"Tutorial: Export your Flash animations on iPhone and iPad with cocos2d and TexturePacker - Beno\u00eet Freslon\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/benoitfreslon.com\\\/wp-content\\\/uploads\\\/2013\\\/03\\\/pig.png\",\"datePublished\":\"2013-03-03T22:28:36+00:00\",\"dateModified\":\"2024-07-19T07:32:15+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/#\\\/schema\\\/person\\\/fe9fe28a6b6c2b56648448b977fd6b78\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[[\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\\\/\"]]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\\\/#primaryimage\",\"url\":\"https:\\\/\\\/benoitfreslon.com\\\/wp-content\\\/uploads\\\/2013\\\/03\\\/pig.png\",\"contentUrl\":\"https:\\\/\\\/benoitfreslon.com\\\/wp-content\\\/uploads\\\/2013\\\/03\\\/pig.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorial: Export your Flash animations on iPhone and iPad with cocos2d and TexturePacker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/\",\"name\":\"Beno\u00eet Freslon\",\"description\":\"[:en]Game designer | D\u00e9veloppeur de jeux ind\u00e9pendant | Freelance | Enseignant | Blogueur[:fr]Game designer | Independent game developer | Freelance | Teacher | Blogger[:]\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/#\\\/schema\\\/person\\\/fe9fe28a6b6c2b56648448b977fd6b78\",\"name\":\"Benoit Freslon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b828da2527f91fb7c86dab67050492f4303279afa245d6e718ea1c6e6f00bb2?s=96&d=identicon&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b828da2527f91fb7c86dab67050492f4303279afa245d6e718ea1c6e6f00bb2?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b828da2527f91fb7c86dab67050492f4303279afa245d6e718ea1c6e6f00bb2?s=96&d=identicon&r=g\",\"caption\":\"Benoit Freslon\"},\"sameAs\":[\"https:\\\/\\\/benoitfreslon.com\",\"https:\\\/\\\/www.instagram.com\\\/benoitfreslon\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/benoitfreslon\",\"https:\\\/\\\/x.com\\\/BenoitFreslon\",\"https:\\\/\\\/www.youtube.com\\\/benoitfreslon\"],\"url\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tutorial: Export your Flash animations on iPhone and iPad with cocos2d and TexturePacker - Beno\u00eet Freslon","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\/","twitter_misc":{"\u00c9crit par":"Benoit Freslon","Dur\u00e9e de lecture estim\u00e9e":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/benoitfreslon.com\/news\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\/#article","isPartOf":{"@id":"https:\/\/benoitfreslon.com\/news\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\/"},"author":{"name":"Benoit Freslon","@id":"https:\/\/benoitfreslon.com\/#\/schema\/person\/fe9fe28a6b6c2b56648448b977fd6b78"},"headline":"Tutorial: Export your Flash animations on iPhone and iPad with cocos2d and TexturePacker","datePublished":"2013-03-03T22:28:36+00:00","dateModified":"2024-07-19T07:32:15+00:00","mainEntityOfPage":{"@id":"https:\/\/benoitfreslon.com\/news\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\/"},"wordCount":1332,"image":{"@id":"https:\/\/benoitfreslon.com\/news\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\/#primaryimage"},"thumbnailUrl":"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/pig.png","keywords":["animations","cocos2d","development","flash","ios","ipad","spritesheet","texturepacker","tweens","universal","xcode"],"articleSection":["Actualit\u00e9s"],"inLanguage":"fr-FR"},{"@type":"WebPage","@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\/","url":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\/","name":"Tutorial: Export your Flash animations on iPhone and iPad with cocos2d and TexturePacker - Beno\u00eet Freslon","isPartOf":{"@id":"https:\/\/benoitfreslon.com\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\/#primaryimage"},"image":{"@id":"https:\/\/benoitfreslon.com\/news\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\/#primaryimage"},"thumbnailUrl":"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/pig.png","datePublished":"2013-03-03T22:28:36+00:00","dateModified":"2024-07-19T07:32:15+00:00","author":{"@id":"https:\/\/benoitfreslon.com\/#\/schema\/person\/fe9fe28a6b6c2b56648448b977fd6b78"},"breadcrumb":{"@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":[["https:\/\/benoitfreslon.com\/fr\/news\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\/"]]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\/#primaryimage","url":"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/pig.png","contentUrl":"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/pig.png"},{"@type":"BreadcrumbList","@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-export-your-flash-animations-on-iphoneipad-with-cocos2d-and-texturepacker\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/benoitfreslon.com\/fr\/"},{"@type":"ListItem","position":2,"name":"Tutorial: Export your Flash animations on iPhone and iPad with cocos2d and TexturePacker"}]},{"@type":"WebSite","@id":"https:\/\/benoitfreslon.com\/fr\/#website","url":"https:\/\/benoitfreslon.com\/fr\/","name":"Beno\u00eet Freslon","description":"[:en]Game designer | D\u00e9veloppeur de jeux ind\u00e9pendant | Freelance | Enseignant | Blogueur[:fr]Game designer | Independent game developer | Freelance | Teacher | Blogger[:]","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/benoitfreslon.com\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Person","@id":"https:\/\/benoitfreslon.com\/#\/schema\/person\/fe9fe28a6b6c2b56648448b977fd6b78","name":"Benoit Freslon","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/secure.gravatar.com\/avatar\/0b828da2527f91fb7c86dab67050492f4303279afa245d6e718ea1c6e6f00bb2?s=96&d=identicon&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0b828da2527f91fb7c86dab67050492f4303279afa245d6e718ea1c6e6f00bb2?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0b828da2527f91fb7c86dab67050492f4303279afa245d6e718ea1c6e6f00bb2?s=96&d=identicon&r=g","caption":"Benoit Freslon"},"sameAs":["https:\/\/benoitfreslon.com","https:\/\/www.instagram.com\/benoitfreslon","https:\/\/www.linkedin.com\/in\/benoitfreslon","https:\/\/x.com\/BenoitFreslon","https:\/\/www.youtube.com\/benoitfreslon"],"url":"https:\/\/benoitfreslon.com\/fr\/author\/admin\/"}]}},"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/pLAe3-yD","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts\/2147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/comments?post=2147"}],"version-history":[{"count":47,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts\/2147\/revisions"}],"predecessor-version":[{"id":39110,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts\/2147\/revisions\/39110"}],"wp:attachment":[{"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/media?parent=2147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/categories?post=2147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/tags?post=2147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}