
{"id":750,"date":"2009-01-11T01:52:01","date_gmt":"2009-01-11T00:52:01","guid":{"rendered":"http:\/\/www.matthijskamstra.nl\/blog\/?p=750"},"modified":"2009-01-11T01:56:45","modified_gmt":"2009-01-11T00:56:45","slug":"box2dflashas3-refactored-2","status":"publish","type":"post","link":"https:\/\/www.matthijskamstra.nl\/blog\/2009\/01\/11\/box2dflashas3-refactored-2\/","title":{"rendered":"Box2DFlashAS3 Refactored"},"content":{"rendered":"<p>If you are a Flex\/Flash developer (and not familiar with another programming language), you will agree that the syntax for Box2DFlash is not following the <a href=\"http:\/\/opensource.adobe.com\/wiki\/display\/flexsdk\/Coding+Conventions\">AS3 coding conventions<\/a> and seems funny.<\/p>\n<p>Not that I&#8217;m so good at it (seem to have a lot of problem shaking the suffix &#8220;_mc&#8221;) but other people have the same problem: read <a href=\"http:\/\/www.box2d.org\/forum\/viewtopic.php?p=5286#p5286\">this<\/a>, <a href=\"http:\/\/www.box2d.org\/forum\/viewtopic.php?p=5314#p5314\">this<\/a> and <a href=\"http:\/\/www.box2d.org\/forum\/viewtopic.php?p=5908#p5908\">this<\/a>.<\/p>\n<p>And one of them refactored the code, and not just someone: it done by John Lindquist (box2D user-name is pv3d).<br \/>\nJohn is one of the &#8220;Committer team&#8221; (?) of <a href=\"http:\/\/blog.papervision3d.org\/\">papervision3D<\/a> and writes tutorials for papervision3D on <a href=\"http:\/\/pv3d.org\/\">pv3d.org<\/a>.<\/p>\n<p>You can find the code at <a href=\"http:\/\/code.google.com\/p\/box2dflash\/\">http:\/\/code.google.com\/p\/box2dflash\/<\/a> and John started working on tutorials (<a href=\"http:\/\/box2dflash.org\/\">http:\/\/box2dflash.org\/<\/a>) but stopped after completing one&#8230; \ud83d\ude41<\/p>\n<div class=\"flash\">[swf]http:\/\/box2dflash.org\/sites\/default\/files\/flash\/RefactoredBox2dSpeedTest.swf, 520, 390[\/swf]<\/div>\n<p>I&#8217;ve took a quick look in the examples made by John, and I must confess that it seems more familiar\/easier.<br \/>\n<em>Conventions are you friend&#8230;<\/em><\/p>\n<p>But what to do? Use the box2D port to AS3 from C++ or use the refactored one.<br \/>\nI&#8217;m using the original <a href=\"http:\/\/box2dflash.sourceforge.net\/\">Box2DFlash AS3 2.0.1<\/a>, not only for <a href=\"http:\/\/www.box2d.org\/forum\/viewtopic.php?p=5290#p5290\">this reason<\/a> (shaktool is one of two programmers responsible for the C++ to AS3 conversion and maintenance) but a lot of tutorials are based upon the original. <\/p>\n<p>But I can&#8217;t wait for Box2DFlash AS3 2.0.2 and see what skatehead, shaktool and borisTheBrave have decided (I&#8217;m secretly cheering for John&#8217;s version!)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are a Flex\/Flash developer (and not familiar with another programming language), you will agree that the syntax for Box2DFlash is not following the AS3 coding conventions and seems funny. Not that I&#8217;m so good at it (seem to have a lot of problem shaking the suffix &#8220;_mc&#8221;) but other people have the same [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,3],"tags":[408,182,230,231,235,398,232,233,234,237,236],"class_list":["post-750","post","type-post","status-publish","format-standard","hentry","category-as3","category-flash","tag-as3","tag-blog","tag-box2d","tag-box2dflash","tag-conventions","tag-flash","tag-flash-developer","tag-john-lindquist","tag-papervision3d","tag-programmers","tag-syntax"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/comments?post=750"}],"version-history":[{"count":3,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/750\/revisions"}],"predecessor-version":[{"id":753,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/750\/revisions\/753"}],"wp:attachment":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/media?parent=750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/categories?post=750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/tags?post=750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}