QuickBox2D FirstTest
/**
* Copyright hacker_kirifla ( http://wonderfl.net/user/hacker_kirifla )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/cu8Y
*/
package {
import flash.display.MovieClip;
import com.actionsnippet.qbox.*;
public class FlashTest extends MovieClip {
public function FlashTest() {
// write as3 code here..
var sim:QuickBox2D=new QuickBox2D(this,{debug:true});
sim.setDefault({fillColoro:0x00cc22,lineAlpha:0,radius:1.5});
sim.createStageWalls();
sim.addBox({x:5,y:5,width:1,height:1,isBullet:true,lineColor:0xff0000});
sim.addCircle({x:4,y:8,radius:3});
sim.addCircle({x:10,y:4,fillColor:0x666666});
sim.addBox({x:5,y:6,width:4,height:.3,angle:.3,density:0,fillColor:0xcc0000});
sim.addPoly({x:5,y:8,verts:[[0,0,2,2,0,2]],fillColor:0x0000ff});
sim.start();
sim.mouseDrag();
}
}
}