{"id":2495,"date":"2013-04-28T22:14:54","date_gmt":"2013-04-28T22:14:54","guid":{"rendered":"http:\/\/www.benoitfreslon.com\/?p=2495"},"modified":"2024-07-19T09:31:09","modified_gmt":"2024-07-19T07:31:09","slug":"tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection","status":"publish","type":"post","link":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\/","title":{"rendered":"Tutorial: How to create a game like Angry Birds in Flash &#8211; Part 4 &#8211; Create the pigs and the collision detection"},"content":{"rendered":"<p><\/p>\n<h1>Partie 4 &#8211; Cr\u00e9ation des cochons et d\u00e9tection des collisions<\/h1>\n<h2>Introduction<\/h2>\n<p>Voici le quatri\u00e8me tutoriel pour apprendre \u00e0 cr\u00e9er un jeu de physique comme Angry Birds en Flash avec Box2D.<\/p>\n<p>Vous pouvez t\u00e9l\u00e9charger toutes les sources ici :\u00a0<a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/How_to_create_a_game_like_angry_birds_part4.zip\">How_to_create_a_game_like_angry_birds_part4.zip<\/a><\/p>\n<p>Si vous avez rat\u00e9 le premier tutoriel vous pouvez le trouver ici :\u00a0<a href=\"https:\/\/benoitfreslon.com\/fr\/tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-constructin-kit-and-flash-part-1\">https:\/\/benoitfreslon.com\/fr\/tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-construction-kit-flash-part-1<\/a><\/p>\n<p>Dans ce tutoriel nous allons cr\u00e9er les ennemis : les Cochons. Puis nous allons d\u00e9tecter les collisions pour les d\u00e9truire.<\/p>\n<p>[swf:https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/main2.swf 800 400]<\/p>\n<h2>Create the Pig character<\/h2>\n<p>Cr\u00e9er le Clip du Cochon :<\/p>\n<ol>\n<li>Insertion > Nouveau Symbole<\/li>\n<li>Nom :\u00a0<strong>Pig<\/strong><\/li>\n<li>Type :\u00a0<strong>MovieClip<\/strong><\/li>\n<li>Cocher exporter pour\u00a0<strong>ActionScript<\/strong><\/li>\n<li>Classe :\u00a0<strong>Pig<\/strong><\/li>\n<li>OK<\/li>\n<\/ol>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-28-\u00e0-22.25.04.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-28 \u00e0 22.25.04\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-28-\u00e0-22.25.04-268x300.png\" width=\"268\" height=\"300\" \/><\/a><\/p>\n<p>Dessiner un joli cochon vert comme ceci avec les dimensions : <strong>30&#215;30<\/strong>.<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-28-\u00e0-22.25.21.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-28 \u00e0 22.25.21\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-28-\u00e0-22.25.21.png\" width=\"282\" height=\"275\" \/><\/a><\/p>\n<p>Ou t\u00e9l\u00e9charger mon sprite :<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/pig.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"pig\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/pig.png\" width=\"30\" height=\"30\" \/><\/a><\/p>\n<h2>La classe du Cochon<\/h2>\n<p>Cr\u00e9er la classe du Cochon<\/p>\n<ol>\n<li>Nouveau > Fichier > Classe ActionSript 3.0<\/li>\n<li>Nom de classe :\u00a0<strong>Pig<\/strong><\/li>\n<\/ol>\n<p>Copier et coller ce code \u00e0 la place :<\/p>\n<pre class=\"brush:as3\">package {\r\n\timport flash.events.Event;\r\n\timport flash.utils.*;\r\n\timport flash.geom.*;\r\n\timport Box2DAS.*;\r\n\timport Box2DAS.Collision.*;\r\n\timport Box2DAS.Collision.Shapes.*;\r\n\timport Box2DAS.Common.*;\r\n\timport Box2DAS.Dynamics.*;\r\n\timport Box2DAS.Dynamics.Contacts.*;\r\n\timport Box2DAS.Dynamics.Joints.*;\r\n\timport cmodule.Box2D.*;\r\n\timport wck.*;\r\n\timport shapes.*;\r\n\timport misc.*;\r\n\timport extras.*;\r\n\tpublic class Pig extends Circle {\r\n\r\n\t\t\/** Methode constructeur, appell\u00e9e quand l'instance est cr\u00e9\u00e9e *\/\r\n\t\tpublic function Pig() {\r\n\t\t\t\/\/ code constructeur\r\n\t\t\tsuper();\r\n\t\t}\r\n\t\t\/** Appell\u00e9e quand le cochon est ajout\u00e9e sur la sc\u00e8ne par box2d *\/\r\n\t\toverride public function create():void {\r\n\t\t\ttrace(\"pig created\");\r\n\t\t\t\/\/ Physic properties\r\n\t\t\tdensity = 10;\r\n\t\t\tfriction = 1;\r\n\t\t\ttype = \"Dynamic\";\r\n\t\t\treportBeginContact = true;\r\n\t\t\treportEndContact = true;\r\n\t\t\treportPostSolve = true;\r\n\t\t\treportPreSolve = true;\r\n\t\t\tallowDragging = false;\r\n\t\t\tsuper.create();\r\n\r\n\t\t\t\/\/ Commencer la d\u00e9tection de collision dans 1 seconde\r\n\t\t\t\/\/ Quelque fois la collision se d\u00e9clachance trop t\u00f4t c'est pour \u00e7a que la d\u00e9tection est retard\u00e9e\r\n\t\t\tsetTimeout(initCollision, 1000);\r\n\t\t}\r\n\t\tprivate function initCollision():void {\r\n\t\t\t\/\/ Initialiser la d\u00e9tection de collision\r\n\t\t\tlistenWhileVisible(this, ContactEvent.POST_SOLVE, postSolveContactHandler, false, 0, true);\r\n\t\t}\r\n\t\t\/** D\u00e9finir la taille du la forme *\/\r\n\t\toverride public function shapes():void {\r\n\t\t\t\/\/ 15 px of raduis\r\n\t\t\tcircle(15);\r\n\t\t}\r\n\t\t\/** M\u00e9thode appel\u00e9e au moment d'une collision*\/\r\n\t\tprivate function postSolveContactHandler(e:ContactEvent):void {\r\n\t\t\t\/\/ R\u00e9cup\u00e9rer le contact\r\n\t\t\tvar impulse:b2ContactImpulse = e.impulses;\r\n\t\t\t\/\/ Calculer la force du contact\r\n\t\t\tvar normalLength:Number = Math.sqrt((impulse.normalImpulse1 * impulse.normalImpulse1) + (impulse.normalImpulse2 * impulse.normalImpulse2));\r\n\t\t\ttrace(\"normalLength\", normalLength);\r\n\t\t\t\/\/ V\u00e9rifier si le contact est assez fort\r\n\t\t\tif (normalLength > 1) {\r\n\t\t\t\t\/\/ Supprimer le cochon\r\n\t\t\t\tremove();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}<\/pre>\n<p>Ajouter les cochons dans le clip <strong>World<\/strong> comme ceci :<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-28-\u00e0-23.32.12.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-28 \u00e0 23.32.12\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-28-\u00e0-23.32.12-300x160.png\" width=\"300\" height=\"160\" \/><\/a><\/p>\n<p>Enfin tester le niveau.<\/p>\n<p>Le tutoriel est termin\u00e9. Si vous souhaitez d&rsquo;autres fonctionnalit\u00e9s et plus de tutoriels sur le moteur d&rsquo;Angry Birds postez un commentaire :).<\/p>\n<p>Amusez-vous bien !<\/p>","protected":false},"excerpt":{"rendered":"<p>Partie 4 &#8211; Cr\u00e9ation des cochons et d\u00e9tection des collisions Introduction Voici le quatri\u00e8me tutoriel pour apprendre \u00e0 cr\u00e9er un&#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":false,"_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":[223,94,224,208,70,6,371,222,221,402],"class_list":["post-2495","post","type-post","status-publish","format-standard","hentry","category-news","tag-angry","tag-as3","tag-birds","tag-box2d","tag-collision","tag-flash","tag-physique","tag-pig","tag-tutorials","tag-tutoriels-flash","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: How to create a game like Angry Birds in Flash - Part 4 - Create the pigs and the collision detection - 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-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\/\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\\\/\"},\"author\":{\"name\":\"Benoit Freslon\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/#\\\/schema\\\/person\\\/fe9fe28a6b6c2b56648448b977fd6b78\"},\"headline\":\"Tutorial: How to create a game like Angry Birds in Flash &#8211; Part 4 &#8211; Create the pigs and the collision detection\",\"datePublished\":\"2013-04-28T22:14:54+00:00\",\"dateModified\":\"2024-07-19T07:31:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\\\/\"},\"wordCount\":412,\"image\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/benoitfreslon.com\\\/wp-content\\\/uploads\\\/2013\\\/04\\\/pig.png\",\"keywords\":[\"angry\",\"as3\",\"birds\",\"box2d\",\"collision\",\"flash\",\"physique\",\"pig\",\"tutorials\",\"Tutoriels Flash\"],\"articleSection\":[\"Actualit\u00e9s\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\\\/\",\"url\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\\\/\",\"name\":\"Tutorial: How to create a game like Angry Birds in Flash - Part 4 - Create the pigs and the collision detection - Beno\u00eet Freslon\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/benoitfreslon.com\\\/wp-content\\\/uploads\\\/2013\\\/04\\\/pig.png\",\"datePublished\":\"2013-04-28T22:14:54+00:00\",\"dateModified\":\"2024-07-19T07:31:09+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/#\\\/schema\\\/person\\\/fe9fe28a6b6c2b56648448b977fd6b78\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[[\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\\\/\"]]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\\\/#primaryimage\",\"url\":\"https:\\\/\\\/benoitfreslon.com\\\/wp-content\\\/uploads\\\/2013\\\/04\\\/pig.png\",\"contentUrl\":\"https:\\\/\\\/benoitfreslon.com\\\/wp-content\\\/uploads\\\/2013\\\/04\\\/pig.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorial: How to create a game like Angry Birds in Flash &#8211; Part 4 &#8211; Create the pigs and the collision detection\"}]},{\"@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: How to create a game like Angry Birds in Flash - Part 4 - Create the pigs and the collision detection - 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-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\/","twitter_misc":{"\u00c9crit par":"Benoit Freslon","Dur\u00e9e de lecture estim\u00e9e":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/benoitfreslon.com\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\/#article","isPartOf":{"@id":"https:\/\/benoitfreslon.com\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\/"},"author":{"name":"Benoit Freslon","@id":"https:\/\/benoitfreslon.com\/#\/schema\/person\/fe9fe28a6b6c2b56648448b977fd6b78"},"headline":"Tutorial: How to create a game like Angry Birds in Flash &#8211; Part 4 &#8211; Create the pigs and the collision detection","datePublished":"2013-04-28T22:14:54+00:00","dateModified":"2024-07-19T07:31:09+00:00","mainEntityOfPage":{"@id":"https:\/\/benoitfreslon.com\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\/"},"wordCount":412,"image":{"@id":"https:\/\/benoitfreslon.com\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\/#primaryimage"},"thumbnailUrl":"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/pig.png","keywords":["angry","as3","birds","box2d","collision","flash","physique","pig","tutorials","Tutoriels Flash"],"articleSection":["Actualit\u00e9s"],"inLanguage":"fr-FR"},{"@type":"WebPage","@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\/","url":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\/","name":"Tutorial: How to create a game like Angry Birds in Flash - Part 4 - Create the pigs and the collision detection - Beno\u00eet Freslon","isPartOf":{"@id":"https:\/\/benoitfreslon.com\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\/#primaryimage"},"image":{"@id":"https:\/\/benoitfreslon.com\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\/#primaryimage"},"thumbnailUrl":"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/pig.png","datePublished":"2013-04-28T22:14:54+00:00","dateModified":"2024-07-19T07:31:09+00:00","author":{"@id":"https:\/\/benoitfreslon.com\/#\/schema\/person\/fe9fe28a6b6c2b56648448b977fd6b78"},"breadcrumb":{"@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":[["https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\/"]]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\/#primaryimage","url":"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/pig.png","contentUrl":"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/pig.png"},{"@type":"BreadcrumbList","@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-4-create-the-pigs-and-the-collision-detection\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/benoitfreslon.com\/fr\/"},{"@type":"ListItem","position":2,"name":"Tutorial: How to create a game like Angry Birds in Flash &#8211; Part 4 &#8211; Create the pigs and the collision detection"}]},{"@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-Ef","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts\/2495","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=2495"}],"version-history":[{"count":14,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts\/2495\/revisions"}],"predecessor-version":[{"id":39101,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts\/2495\/revisions\/39101"}],"wp:attachment":[{"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/media?parent=2495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/categories?post=2495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/tags?post=2495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}