{"id":2360,"date":"2013-04-01T23:59:35","date_gmt":"2013-04-01T23:59:35","guid":{"rendered":"http:\/\/www.benoitfreslon.com\/?p=2360"},"modified":"2024-07-19T09:31:31","modified_gmt":"2024-07-19T07:31:31","slug":"tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-2-create-the-world","status":"publish","type":"post","link":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-2-create-the-world\/","title":{"rendered":"Tutorial: How to create a game like Angry Birds in Flash with Box2d- Part 2 &#8211; Create the world"},"content":{"rendered":"<p><\/p>\n<h1>Partie 2 &#8211; Creation du niveau avec Box2D<\/h1>\n<h2>Introduction<\/h2>\n<p>Voici\u00a0la suite\u00a0du\u00a0tutoriel\u00a0sur\u00a0la\u00a0cr\u00e9ation\u00a0d&rsquo;un\u00a0jeu\u00a0de\u00a0<strong>physique<\/strong>\u00a0comme\u00a0<strong>Angry\u00a0Birds<\/strong>\u00a0en\u00a0<strong>Flash<\/strong>.<\/p>\n<p>Vous pouvez t\u00e9l\u00e9charger les sources ici :\u00a0<a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/How_to_create_a_game_like_angry_birds_part2.zip\">How_to_create_a_game_like_angry_birds_part2.zip<\/a><\/p>\n<p>Si\u00a0vous\u00a0avez\u00a0rat\u00e9\u00a0la\u00a0premi\u00e8re\u00a0\u00e9tape\u00a0indispensable du\u00a0tutoriel\u00a0elle\u00a0est\u00a0ici\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<h2>Introduction<\/h2>\n<p>Dans\u00a0ce\u00a0tutoriel\u00a0je\u00a0vais\u00a0vous\u00a0montrer\u00a0comment\u00a0cr\u00e9er\u00a0un\u00a0objet\u00a0de type : plaque\u00a0rigide\u00a0et\u00a0indestructible.<br \/> Nous\u00a0allons\u00a0ensuite\u00a0l&rsquo;utiliser\u00a0dans\u00a0un\u00a0niveau\u00a0simple pour\u00a0construire\u00a0une\u00a0structure\u00a0de\u00a0base.<\/p>\n<h2>Modification\u00a0de\u00a0la\u00a0sc\u00e8ne<\/h2>\n<p>Depuis\u00a0le\u00a0panneau\u00a0<strong>Propri\u00e9t\u00e9s,<\/strong>\u00a0modifier\u00a0la\u00a0taille\u00a0de\u00a0la\u00a0sc\u00e8ne\u00a0pour 800px\u00a0de\u00a0large.<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.27.19.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-01 \u00e0 20.27.19\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.27.19.png\" width=\"294\" height=\"141\" \/><\/a><\/p>\n<h2>Cr\u00e9ation\u00a0du\u00a0sol<\/h2>\n<p>Commen\u00e7ons\u00a0par\u00a0cr\u00e9er\u00a0le\u00a0MovieClip\u00a0du\u00a0sol.<\/p>\n<p>Insertion &gt;\u00a0Nouveau\u00a0Symbole\u00a0&gt;\u00a0Nom\u00a0:\u00a0<strong>Floor<\/strong>\u00a0&gt; Type : Clip &gt; Exporter pour\u00a0ActionScript\u00a0&gt;\u00a0Classe\u00a0:\u00a0<strong>Floor<\/strong>\u00a0&gt;\u00a0Classe\u00a0de\u00a0Base :\u00a0<strong>shapes.Box<\/strong>\u00a0&gt; OK<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-21.12.18.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-01 \u00e0 21.12.18\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-21.12.18-300x201.png\" width=\"300\" height=\"201\" \/><\/a><\/p>\n<p>Une\u00a0fois\u00a0dans\u00a0le\u00a0clip\u00a0cr\u00e9\u00e9,\u00a0dessiner\u00a0un\u00a0carr\u00e9\u00a0vert.<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.31.51.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-01 \u00e0 20.31.51\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.31.51-300x174.png\" width=\"300\" height=\"174\" \/><\/a><\/p>\n<p><strong>NB : Le\u00a0moteur\u00a0World\u00a0Construction Kit utilise\u00a0toujours\u00a0le\u00a0centre\u00a0de\u00a0l&rsquo;image\u00a0comme\u00a0\u00e9tant\u00a0le\u00a0centre\u00a0de\u00a0gravit\u00e9\u00a0d&rsquo;une\u00a0forme\u00a0physique.<\/strong><\/p>\n<p>Donc toujours\u00a0centrer\u00a0la\u00a0forme\u00a0au\u00a0centre\u00a0du\u00a0symbole\u00a0\u00e0 l&rsquo;aide\u00a0du\u00a0panneau\u00a0Aligner :<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.32.03.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-01 \u00e0 20.32.03\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.32.03.png\" width=\"216\" height=\"201\" \/><\/a><\/p>\n<p>Une\u00a0fois\u00a0le\u00a0sol\u00a0termin\u00e9\u00a0cliquer\u00a0sur\u00a0<strong>Sc\u00e8ne\u00a01\u00a0<\/strong>pour\u00a0revenir\u00a0sur\u00a0la\u00a0sc\u00e8ne\u00a0puis\u00a0rentrer\u00a0dans\u00a0le\u00a0Clip\u00a0<strong>World.<\/strong><\/p>\n<p>C&rsquo;est\u00a0seulement\u00a0dans\u00a0le\u00a0Clip\u00a0<strong>World<\/strong>\u00a0que\u00a0nous\u00a0allons\u00a0construire\u00a0le\u00a0monde\u00a0physique.<\/p>\n<p>Depuis\u00a0la\u00a0biblioth\u00e8que\u00a0cliquer\u00a0et\u00a0d\u00e9poser\u00a0une\u00a0instance\u00a0de\u00a0<strong>Floor<\/strong>\u00a0sur\u00a0la\u00a0sc\u00e8ne\u00a0comme\u00a0ceci\u00a0:<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.33.33.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-01 \u00e0 20.33.33\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.33.33-300x277.png\" width=\"300\" height=\"277\" \/><\/a><\/p>\n<p>Ensuite d\u00e9former\u00a0la\u00a0forme\u00a0du\u00a0sol\u00a0avec\u00a0l&rsquo;<strong>outil\u00a0de\u00a0transformation\u00a0libre<\/strong>\u00a0dans\u00a0la barre d&rsquo;outils \u00e0 gauche.<\/p>\n<p><strong>Supprimer<\/strong>\u00a0l&rsquo;ancien sol\u00a0gris\u00a0pour\u00a0le\u00a0remplacer\u00a0par\u00a0le\u00a0nouveau.\u00a0Placer\u00a0le\u00a0sol en bas\u00a0de\u00a0l&rsquo;\u00e9cran\u00a0de\u00a0cette\u00a0fa\u00e7on.<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.34.35.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-01 \u00e0 20.34.35\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.34.35-300x156.png\" width=\"300\" height=\"156\" \/><\/a><\/p>\n<p>Pour\u00a0r\u00e9gler\u00a0tous\u00a0les\u00a0param\u00e8tres physiques\u00a0du\u00a0sol il a 2 fa\u00e7ons. Soit via\u00a0le\u00a0code\u00a0ActionScript\u00a0(nous verrons cela plus tard) soit\u00a0avec\u00a0les\u00a0propri\u00e9t\u00e9s\u00a0du\u00a0composant Flash.<\/p>\n<p>Pour avoir acc\u00e8s \u00e0 toutes ces propri\u00e9t\u00e9s via Flash il faut d\u00e9finir\u00a0un\u00a0composant\u00a0sur\u00a0l&rsquo;objet\u00a0Floor\u00a0fra\u00eechement\u00a0cr\u00e9\u00e9.<\/p>\n<p>Depuis\u00a0la\u00a0biblioth\u00e8que\u00a0&gt; s\u00e9lectionner\u00a0le\u00a0clip\u00a0<strong>Floor<\/strong>\u00a0puis\u00a0&gt; clic droit &gt; D\u00e9finition\u00a0du\u00a0composant.<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.39.14.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-01 \u00e0 20.39.14\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.39.14-300x265.png\" width=\"300\" height=\"265\" \/><\/a><\/p>\n<p>Classe\u00a0:\u00a0<strong>wck.BodyShape<\/strong>\u00a0&gt; OK.<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.41.06.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-01 \u00e0 20.41.06\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.41.06-300x280.png\" width=\"300\" height=\"280\" \/><\/a><\/p>\n<p>D\u00e9sormais lorsqu&rsquo;on clic\u00a0sur\u00a0le\u00a0clip\u00a0<strong>Floor<\/strong>\u00a0plac\u00e9\u00a0sur\u00a0la\u00a0sc\u00e8ne\u00a0on a\u00a0acc\u00e8s aux propri\u00e9t\u00e9s physiques depuis<strong>\u00a0les\u00a0param\u00e8tres\u00a0du\u00a0composant<\/strong>\u00a0dans\u00a0dans\u00a0le\u00a0panneau\u00a0<strong>propri\u00e9t\u00e9s<\/strong>.<\/p>\n<p>R\u00e9gler\u00a0de\u00a0cette\u00a0fa\u00e7on\u00a0pour\u00a0le\u00a0moment:<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.44.23.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-01 \u00e0 20.44.23\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.44.23-92x300.png\" width=\"92\" height=\"300\" \/><\/a><\/p>\n<h2>Cr\u00e9ation\u00a0de\u00a0plateformes dynamiques<\/h2>\n<p>Nous\u00a0allons\u00a0maintenant\u00a0cr\u00e9er\u00a0les\u00a0plateformes dynamiques.<\/p>\n<p>Insertion &gt;\u00a0Nouveau\u00a0symbole\u00a0&gt;\u00a0Nom\u00a0:\u00a0<strong>IronPlate<\/strong>\u00a0&gt; Type : Clip &gt; Exporter pour\u00a0ActionScript\u00a0&gt;\u00a0Classe\u00a0:\u00a0<strong>IronPlate<\/strong>\u00a0&gt;\u00a0Classe\u00a0de\u00a0base :\u00a0<strong>shapes.Box<\/strong>\u00a0&gt; OK<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.45.08.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-01 \u00e0 20.45.08\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.45.08-300x207.png\" width=\"300\" height=\"207\" \/><\/a><\/p>\n<p>Dessinez\u00a0une\u00a0plaque\u00a0de\u00a0m\u00e9tal environ 200\u00a0px\u00a0de\u00a0large\u00a0et\u00a010\u00a0px\u00a0de\u00a0hauteur\u00a0et\u00a0centrez l&rsquo;image.<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.45.41.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-01 \u00e0 20.45.41\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.45.41-300x116.png\" width=\"300\" height=\"116\" \/><\/a><\/p>\n<p>Nous\u00a0allons\u00a0donner\u00a0les\u00a0m\u00eames r\u00e9glages \u00e0 toutes\u00a0les\u00a0plaques dispos\u00e9es\u00a0dans\u00a0le\u00a0jeu\u00a0avec\u00a0une\u00a0seule classe.<\/p>\n<p>Cela nous \u00e9vitera\u00a0de\u00a0r\u00e9gler\u00a0TOUS\u00a0les\u00a0objets\u00a0un\u00a0par\u00a0un\u00a0via Flash.\u00a0Une\u00a0t\u00e2che p\u00e9nible. Voil\u00e0 pourquoi\u00a0nous\u00a0allons\u00a0cr\u00e9er\u00a0une\u00a0classe\u00a0<strong>IronPlate<\/strong>.<\/p>\n<p>Fichier &gt;\u00a0Nouveau\u00a0&gt;\u00a0Classe\u00a0d&rsquo;ActionScript\u00a03.0 &gt;\u00a0Nom\u00a0de\u00a0classe :\u00a0<strong>IronPlate<\/strong>\u00a0&gt; OK<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.46.39.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-01 \u00e0 20.46.39\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.46.39-300x181.png\" width=\"300\" height=\"181\" \/><\/a><\/p>\n<p>Ensuite &gt; Fichier &gt; Enregistrer Sous &gt;\u00a0<strong>IronPlate.as<\/strong>\u00a0( Dans\u00a0le\u00a0m\u00eame dossier\u00a0que\u00a0le\u00a0fichier .fla ).<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.47.05.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-01 \u00e0 20.47.05\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.47.05-300x180.png\" width=\"300\" height=\"180\" \/><\/a><\/p>\n<p>Copier coller ensuite\u00a0ce\u00a0code afin\u00a0de\u00a0donner\u00a0un\u00a0r\u00e9glage g\u00e9n\u00e9rique pour toutes\u00a0les\u00a0plaques en m\u00e9tal.<\/p>\n<pre>package  {\r\n\r\n\timport shapes.Box\r\n\r\n\tpublic class IronPlate extends Box {\r\n\r\n\t\tpublic function IronPlate() {\r\n\t\t\t\/\/ constructor code\r\n\t\t}\r\n\t\toverride public function create():void {\r\n\t\t\tsuper.create();\r\n\t\t\t\/\/trace(\"iron plate created\");\r\n\t\t\tthis.type = \"Dynamic\";\r\n\t\t\tthis.friction = 0.2;\r\n\t\t\tthis.density = 1;\r\n\t\t\tthis.restitution = 0;\r\n\t\t\tthis.isGround = true;\r\n\t\t\tthis.allowDragging = false;\r\n\t\t\tthis.reportBeginContact = true;\r\n\t\t\tthis.reportEndContact = true;\r\n\t\t\tthis.reportPostSolve = true;\r\n\t\t\tthis.reportPreSolve = true;\r\n\r\n\t\t}\r\n\t}\r\n\r\n}<\/pre>\n<p>Enfin ajouter plusieurs instances\u00a0de\u00a0<strong>IronPlate<\/strong>\u00a0dans\u00a0le\u00a0Clip\u00a0<strong>World<\/strong>\u00a0qui se trouve\u00a0sur\u00a0la\u00a0sc\u00e8ne.<\/p>\n<p>Construire\u00a0une\u00a0structure\u00a0dans\u00a0le\u00a0genre pour tester\u00a0le\u00a0bon fonctionnement\u00a0du\u00a0jeu.<\/p>\n<p>J&rsquo;ai plac\u00e9 la grosse boite\u00a0au\u00a0dessus pour casser la structure.<\/p>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.54.20.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"Capture d\u2019\u00e9cran 2013-04-01 \u00e0 20.54.20\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/Capture-d\u2019\u00e9cran-2013-04-01-\u00e0-20.54.20-300x206.png\" width=\"300\" height=\"206\" \/><\/a><\/p>\n<p>Tester l&rsquo;animation &gt; CTRL + Entr\u00e9e<\/p>\n<p>[swf:https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/04\/main.swf width:400 height:250]<\/p>\n<p>Si\u00a0il\u00a0a\u00a0des erreurs ou des plaques immobiles v\u00e9rifier\u00a0que\u00a0les\u00a0Clip\u00a0<strong>IronPlates<\/strong>\u00a0sont bien\u00a0dans\u00a0le\u00a0clip\u00a0<strong>World<\/strong>.<\/p>\n<p>Sc\u00e8ne\u00a0&gt; World &gt; IronPlates<\/p>\n<p>A bient\u00f4t :).<\/p>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Partie 2 &#8211; Creation du niveau avec Box2D Introduction Voici\u00a0la suite\u00a0du\u00a0tutoriel\u00a0sur\u00a0la\u00a0cr\u00e9ation\u00a0d&rsquo;un\u00a0jeu\u00a0de\u00a0physique\u00a0comme\u00a0Angry\u00a0Birds\u00a0en\u00a0Flash. Vous pouvez t\u00e9l\u00e9charger les sources ici :\u00a0How_to_create_a_game_like_angry_birds_part2.zip Si\u00a0vous\u00a0avez\u00a0rat\u00e9\u00a0la\u00a0premi\u00e8re\u00a0\u00e9tape\u00a0indispensable du\u00a0tutoriel\u00a0elle\u00a0est\u00a0ici\u00a0:&#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":[212,209,94,208,6,211,48,371,213,402,210,58],"class_list":["post-2360","post","type-post","status-publish","format-standard","hentry","category-news","tag-acitonscript","tag-angry-birds","tag-as3","tag-box2d","tag-flash","tag-ide","tag-jeu","tag-physique","tag-sources","tag-tutoriels-flash","tag-wck","tag-world","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 with Box2d- Part 2 - Create the world - 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-2-create-the-world\/\" \/>\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=\"6 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-2-create-the-world\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-2-create-the-world\\\/\"},\"author\":{\"name\":\"Benoit Freslon\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/#\\\/schema\\\/person\\\/fe9fe28a6b6c2b56648448b977fd6b78\"},\"headline\":\"Tutorial: How to create a game like Angry Birds in Flash with Box2d- Part 2 &#8211; Create the world\",\"datePublished\":\"2013-04-01T23:59:35+00:00\",\"dateModified\":\"2024-07-19T07:31:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-2-create-the-world\\\/\"},\"wordCount\":1249,\"keywords\":[\"acitonscript\",\"angry birds\",\"as3\",\"box2d\",\"flash\",\"ide\",\"jeu\",\"physique\",\"sources\",\"Tutoriels Flash\",\"wck\",\"world\"],\"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-2-create-the-world\\\/\",\"url\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-2-create-the-world\\\/\",\"name\":\"Tutorial: How to create a game like Angry Birds in Flash with Box2d- Part 2 - Create the world - Beno\u00eet Freslon\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/#website\"},\"datePublished\":\"2013-04-01T23:59:35+00:00\",\"dateModified\":\"2024-07-19T07:31:31+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-2-create-the-world\\\/#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-2-create-the-world\\\/\"]]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-2-create-the-world\\\/#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 with Box2d- Part 2 &#8211; Create the world\"}]},{\"@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 with Box2d- Part 2 - Create the world - 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-2-create-the-world\/","twitter_misc":{"\u00c9crit par":"Benoit Freslon","Dur\u00e9e de lecture estim\u00e9e":"6 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-2-create-the-world\/#article","isPartOf":{"@id":"https:\/\/benoitfreslon.com\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-2-create-the-world\/"},"author":{"name":"Benoit Freslon","@id":"https:\/\/benoitfreslon.com\/#\/schema\/person\/fe9fe28a6b6c2b56648448b977fd6b78"},"headline":"Tutorial: How to create a game like Angry Birds in Flash with Box2d- Part 2 &#8211; Create the world","datePublished":"2013-04-01T23:59:35+00:00","dateModified":"2024-07-19T07:31:31+00:00","mainEntityOfPage":{"@id":"https:\/\/benoitfreslon.com\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-2-create-the-world\/"},"wordCount":1249,"keywords":["acitonscript","angry birds","as3","box2d","flash","ide","jeu","physique","sources","Tutoriels Flash","wck","world"],"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-2-create-the-world\/","url":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-2-create-the-world\/","name":"Tutorial: How to create a game like Angry Birds in Flash with Box2d- Part 2 - Create the world - Beno\u00eet Freslon","isPartOf":{"@id":"https:\/\/benoitfreslon.com\/fr\/#website"},"datePublished":"2013-04-01T23:59:35+00:00","dateModified":"2024-07-19T07:31:31+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-2-create-the-world\/#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-2-create-the-world\/"]]}]},{"@type":"BreadcrumbList","@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-in-flash-part-2-create-the-world\/#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 with Box2d- Part 2 &#8211; Create the world"}]},{"@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-C4","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts\/2360","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=2360"}],"version-history":[{"count":24,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts\/2360\/revisions"}],"predecessor-version":[{"id":39104,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts\/2360\/revisions\/39104"}],"wp:attachment":[{"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/media?parent=2360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/categories?post=2360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/tags?post=2360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}