QuickBox2D sample

by mash
♥31 | Line 15 | Modified 2010-01-21 15:33:43 | MIT License
play

ActionScript3 source code

/**
 * Copyright mash ( http://wonderfl.net/user/mash )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/8mJx
 */

package {
    import flash.display.*;
    import com.actionsnippet.qbox.*;

    public class FlashTest extends MovieClip {
        public function FlashTest() {
            // write as3 code here..
 
            stage.frameRate = 60;
 
            var sim:QuickBox2D = new QuickBox2D(this);
 
            sim.createStageWalls();
 
            sim.addBox({x:5, y:5, width:1, height:1});
            sim.addCircle({x:4, y:8, radius:2});
 
            sim.start();
            sim.mouseDrag();                        
        }
    }
}

Forked