{"author_name":"haxpor","cat":"LD #25","comments":[],"epoch":1355592540,"likes":1,"metadata":{"p_key":"49085","p_author":"haxpor","p_authorkey":"647","p_urlkey":"84761","p_title":"Changed to use chipmunk, tested, moving forward. | LD72 no. 25","p_cat":"LD #25","p_event":"LD25","p_time":"1355592540","p_likes":"1","p_comments":"0","p_status":"UPD5","us_key":"647","us_name":"haxpor","us_username":"haxpor","event_start":"1355443200","event_key":"14","event_name":"LD25"},"text":"<p>Now the time has passed quite gracefully, more than a half day now.<\/p>\n <p><img alt=\"image\" src=\"http:\/\/media.tumblr.com\/tumblr_mf3260VVAC1qj5i9r.png\" \/><\/p>\n <p>Current progress is pretty much learning, and testing functionalities in <a href=\"https:\/\/github.com\/slembcke\/Chipmunk-Physics\" target=\"_blank\">chipmunk<\/a>\u00a0that will be used as a core in the game.<\/p>\n <p>Before that, I spent first portion of the time in recalling about Box2d, and trying to make it works. I ever used Box2d once back in my experiment iOS game project quite more than a half year ago, back then it&#8217;s native and works great. But unfortunately as this time I develop on web platform using HTML5 or cocos2d-html5 framework, it doesn&#8217;t work out. Several hours were lost into the realm of physics.<\/p>\n <p><img alt=\"image\" src=\"http:\/\/cdn.memegenerator.net\/instances\/400x\/31928123.jpg\" width=\"400\" height=\"235\" \/><br \/>\n Anton (<a href=\"https:\/\/twitter.com\/Garfeild\/status\/279890829877862400\" target=\"_blank\">@garfeild<\/a>) sent me this during a jam. I should listen to him <img src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/simple-smile.png\" alt=\":)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n <p>I found a problem about debug information that rendered on screen incorrectly. For instance, the testcase of cocos2d-html5 itself also has a problem regarding to this issue although its functionality in forefront works properly. I <a href=\"http:\/\/cocos2d-x.org\/boards\/19\/topics\/19816\" target=\"_blank\">asked<\/a> the community about this but can&#8217;t wait as I need to step further. I can&#8217;t live in the world of physics without debug information.<\/p>\n <p><img alt=\"image\" src=\"http:\/\/media.tumblr.com\/tumblr_mf32ud6zHS1qj5i9r.png\" \/><br \/>\n A problem still occurs in cocos2d-html5 v.2.1 testcase, but its forefront functionality works properly.<\/p>\n <p>So I switched to chipmunk\u00a0wholeheartedly\u00a0for this project. I have to admit that less code is done with chipmunk comparing to Box2d. It&#8217;s quite simple to grasp the concept of code structure than Box2d. But anyway, if I go back to iOS natively I prefer to use Box2d as it&#8217;s originally developed in C++ and well optimized for mobile usage according to my believe + with the fact that I&#8217;m a little bit shock to see chipmunk is available on <a href=\"http:\/\/chipmunk-physics.net\/chipmunkPro.php\" target=\"_blank\">premium<\/a>\u00a0as it means the free and open source version is kind da rip-off in sense.<\/p>\n <p>Nonetheless, the community there at github of chipmunk is rather big with hundred-ish star and fork and it&#8217;s quite active. If nothing is super duper complex and doesn&#8217;t need 100% optimization, it&#8217;s one of your candidate option.<\/p>\n <p>That&#8217;s being said. I quickly ramped up chipmunk with this <a href=\"http:\/\/www.raywenderlich.com\/3128\/how-to-create-a-simple-iphone-game-with-chipmunk-physics-tutorial\" target=\"_blank\">link-of-the-day<\/a>.<\/p>\n <p>Here is what I got to move on.<\/p>\n <p><img alt=\"image\" src=\"http:\/\/media.tumblr.com\/tumblr_mf33niqC5K1qj5i9r.png\" \/><br \/>\n Cat, cat, and cat with non-perfect shape for physics simuation.<\/p>\n <p><img alt=\"image\" src=\"http:\/\/media.tumblr.com\/tumblr_mf33onOvSc1qj5i9r.png\" \/><br \/>\n Yeah, that&#8217;s better.<\/p>\n <p>Back to code now &#8230;<\/p>\n <p>[Originally posted this on my blog:\u00a0<a href=\"http:\/\/haxpor.org\/post\/37994792037\/changed-to-use-chipmunk-tested-moving-forward-ld72\" target=\"_blank\">http:\/\/haxpor.org\/post\/37994792037\/changed-to-use-chipmunk-tested-moving-forward-ld72<\/a>]<\/p>\n \n <p>Tags: <a href=\"http:\/\/ludumdare.com\/compo\/tag\/jam\/\" rel=\"tag\">jam<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/ld72\/\" rel=\"tag\">LD72<\/a><\/p>","time":"December 15th, 2012 12:29 pm","title":"Changed to use chipmunk, tested, moving forward. | LD72 no. 25"}