{"id":2335,"date":"2013-03-15T12:21:17","date_gmt":"2013-03-15T12:21:17","guid":{"rendered":"http:\/\/www.benoitfreslon.com\/?p=2335"},"modified":"2024-07-19T09:31:37","modified_gmt":"2024-07-19T07:31:37","slug":"tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-constructin-kit-and-flash-part-1","status":"publish","type":"post","link":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-constructin-kit-and-flash-part-1\/","title":{"rendered":"Tutorial: How to create a game like Angry Birds with box2D, World Construction Kit and Flash &#8211; Part 1"},"content":{"rendered":"<p><\/p>\n<h1>Partie 1 &#8211; Installation de FlashBox2D (box2d) avec WCK<\/h1>\n<p>J&rsquo;ai d\u00e9cid\u00e9 de r\u00e9diger un petit tutoriel chaque vendredi. :)<\/p>\n<h2>Introduction<\/h2>\n<p>Aujourd&rsquo;hui je vais vous montrer comment cr\u00e9er un jeu comme Angry Birds en plusieurs \u00e9tapes avec un moteur physique en Flash.<\/p>\n<p>Le fameux moteur physique s&rsquo;appelle Box2D. 95% des jeux en 2D avec de la physique utilisent ce moteur : Angry birds, Limbo, Bad piggies, etc.<br \/>\nLa version originale de Box2D a \u00e9t\u00e9 d\u00e9velopp\u00e9e en C++. Pour plus d&rsquo;informations visitez le site\u00a0<a title=\"Box 2D\" href=\"http:\/\/box2d.org\/\" target=\"_blank\" rel=\"noopener\">Box2D C++<\/a>. Ce moteur a \u00e9t\u00e9 port\u00e9 en ActionScript 3.0 appel\u00e9 <a title=\"Box2DFlash\" href=\"http:\/\/www.box2dflash.org\/\" target=\"_blank\" rel=\"noopener\">box2DFlash<\/a>.<\/p>\n<h2>Box2DFlash<\/h2>\n<p>[swf:http:\/\/www.box2dflash.org\/swf\/main_demo_21a.swf 512 288]<\/p>\n<p>Box2DFlash est un moteur physique tr\u00e8s puissant mais difficile \u00e0 utiliser si vous n&rsquo;\u00eates pas un bon programmeur et si vous n&rsquo;avez pas d&rsquo;\u00e9diteur de niveaux visuels.<br \/>\nC&rsquo;est pourquoi je sugg\u00e8re d&rsquo;utiliser le framework <strong>World Construction Kit (WCK).<\/strong><\/p>\n<h2>World Construction Kit (WCK)<\/h2>\n<p>Site web :\u00a0<a href=\"http:\/\/www.sideroller.com\/wck\/\" target=\"_blank\" rel=\"noopener\">http:\/\/www.sideroller.com\/wck\/<\/a><\/p>\n<p>Voici la description de World Construction Kit en anglais provenant du site :<\/p>\n<p><strong><em>World Construction Kit<\/em><\/strong><em>\u00a0is is a toolset \/ framework for rapidly developing physics based games \/ websites within the Flash IDE. WCK allows you to layout your 2d worlds \/ game levels entirely within Flash and have them hook into the physics simulation without writing any code<\/em><\/p>\n<p>Malheureusement le framework n&rsquo;est plus maintenu \u00e0 jour. N\u00e9anmoins il est reste tr\u00e8s complet et performant.<\/p>\n<h2>Installation<\/h2>\n<ul>\n<li>T\u00e9l\u00e9charger et installer : Adobe Flash Pro<\/li>\n<li>T\u00e9l\u00e9charger le framework WCK depuis github:\u00a0<a title=\"wck github\" href=\"https:\/\/github.com\/jesses\/wck\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/jesses\/wck<\/a>\u00a0(T\u00e9l\u00e9charger le\u00a0<strong>Zip<\/strong>\u00a0si vous n&rsquo;avez pas de client git)<\/li>\n<\/ul>\n<p><a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-15-\u00e0-00.09.05.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-15-\u00e0-00.09.05-300x160.png\" alt=\"Capture d\u2019\u00e9cran 2013-03-15 \u00e0 00.09.05\" width=\"300\" height=\"160\" \/><\/a><\/p>\n<ul>\n<li>Extraire tous les fichiers du zip dans un dossier.<\/li>\n<li>Ouvrir le fichier\u00a0<strong>BlankProject\/main.fla<\/strong>\u00a0 depuis le dossier fraichement d\u00e9compress\u00e9.<\/li>\n<li>Voil\u00e0 Box2D est d\u00e9j\u00e0 pr\u00e9install\u00e9 avec le framework WCK.<\/li>\n<li>Tester l&rsquo;animation avec CTRL + Entr\u00e9e ou CMD + Entr\u00e9e sous OS X.<\/li>\n<li>Vous devriez voir cela :<\/li>\n<\/ul>\n<p>[swf:\/wp-content\/uploads\/2013\/03\/main.swf 550 400]<\/p>\n<p>Dans le prochain tutoriel je vais vous montrer comment construire et\u00a0param\u00e9trer\u00a0un niveau avec le moteur Box2D \u00e0 l&rsquo;aide de WCK en Flash.<\/p>","protected":false},"excerpt":{"rendered":"<p>Partie 1 &#8211; Installation de FlashBox2D (box2d) avec WCK J&rsquo;ai d\u00e9cid\u00e9 de r\u00e9diger un petit tutoriel chaque vendredi. :) Introduction&#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":[209,94,208,6,302,402,210],"class_list":["post-2335","post","type-post","status-publish","format-standard","hentry","category-news","tag-angry-birds","tag-as3","tag-box2d","tag-flash","tag-actionscript","tag-tutoriels-flash","tag-wck","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 with box2D, World Construction Kit and Flash - Part 1 - 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-with-box2d-world-constructin-kit-and-flash-part-1\/\" \/>\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-with-box2d-world-constructin-kit-and-flash-part-1\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-constructin-kit-and-flash-part-1\\\/\"},\"author\":{\"name\":\"Benoit Freslon\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/#\\\/schema\\\/person\\\/fe9fe28a6b6c2b56648448b977fd6b78\"},\"headline\":\"Tutorial: How to create a game like Angry Birds with box2D, World Construction Kit and Flash &#8211; Part 1\",\"datePublished\":\"2013-03-15T12:21:17+00:00\",\"dateModified\":\"2024-07-19T07:31:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-constructin-kit-and-flash-part-1\\\/\"},\"wordCount\":694,\"keywords\":[\"angry birds\",\"as3\",\"box2d\",\"flash\",\"Flash development\",\"Tutoriels Flash\",\"wck\"],\"articleSection\":[\"Actualit\u00e9s\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-constructin-kit-and-flash-part-1\\\/\",\"url\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-constructin-kit-and-flash-part-1\\\/\",\"name\":\"Tutorial: How to create a game like Angry Birds with box2D, World Construction Kit and Flash - Part 1 - Beno\u00eet Freslon\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/#website\"},\"datePublished\":\"2013-03-15T12:21:17+00:00\",\"dateModified\":\"2024-07-19T07:31:37+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-with-box2d-world-constructin-kit-and-flash-part-1\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[[\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-constructin-kit-and-flash-part-1\\\/\"]]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-constructin-kit-and-flash-part-1\\\/#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 with box2D, World Construction Kit and Flash &#8211; Part 1\"}]},{\"@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 with box2D, World Construction Kit and Flash - Part 1 - 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-with-box2d-world-constructin-kit-and-flash-part-1\/","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-with-box2d-world-constructin-kit-and-flash-part-1\/#article","isPartOf":{"@id":"https:\/\/benoitfreslon.com\/news\/tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-constructin-kit-and-flash-part-1\/"},"author":{"name":"Benoit Freslon","@id":"https:\/\/benoitfreslon.com\/#\/schema\/person\/fe9fe28a6b6c2b56648448b977fd6b78"},"headline":"Tutorial: How to create a game like Angry Birds with box2D, World Construction Kit and Flash &#8211; Part 1","datePublished":"2013-03-15T12:21:17+00:00","dateModified":"2024-07-19T07:31:37+00:00","mainEntityOfPage":{"@id":"https:\/\/benoitfreslon.com\/news\/tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-constructin-kit-and-flash-part-1\/"},"wordCount":694,"keywords":["angry birds","as3","box2d","flash","Flash development","Tutoriels Flash","wck"],"articleSection":["Actualit\u00e9s"],"inLanguage":"fr-FR"},{"@type":"WebPage","@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-constructin-kit-and-flash-part-1\/","url":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-constructin-kit-and-flash-part-1\/","name":"Tutorial: How to create a game like Angry Birds with box2D, World Construction Kit and Flash - Part 1 - Beno\u00eet Freslon","isPartOf":{"@id":"https:\/\/benoitfreslon.com\/fr\/#website"},"datePublished":"2013-03-15T12:21:17+00:00","dateModified":"2024-07-19T07:31:37+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-with-box2d-world-constructin-kit-and-flash-part-1\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":[["https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-constructin-kit-and-flash-part-1\/"]]}]},{"@type":"BreadcrumbList","@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-create-a-game-like-angry-birds-with-box2d-world-constructin-kit-and-flash-part-1\/#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 with box2D, World Construction Kit and Flash &#8211; Part 1"}]},{"@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-BF","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts\/2335","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=2335"}],"version-history":[{"count":21,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts\/2335\/revisions"}],"predecessor-version":[{"id":39105,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts\/2335\/revisions\/39105"}],"wp:attachment":[{"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/media?parent=2335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/categories?post=2335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/tags?post=2335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}