forked from: forked from: forked from: QuickBox2D sample

by jmp909
♥0 | Line 29 | Modified 2010-03-24 01:26:43 | MIT License
play

ActionScript3 source code

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

// forked from merome's forked from: forked from: QuickBox2D sample
// forked from ADO's forked from: QuickBox2D sample
// forked from mash's QuickBox2D sample
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:3.5, height:1});
            sim.addBox({x:5, y:5, width:1.5, height:1});
            sim.addBox({x:5, y:5, width:1.5, height:1});
            sim.addBox({x:5, y:5, width:1.5, height:1});
            sim.addBox({x:5, y:5, width:1.5, height:1});
            sim.addBox({x:5, y:5, width:1.5, height:1});
            sim.addBox({x:5, y:5, width:1.5, height:1});
            sim.addBox({x:5, y:5, width:1.5, height:1});
            sim.addBox({x:5, y:5, width:1.5, height:1});
            sim.addBox({x:5, y:5, width:1.5, height:1});
            sim.addBox({x:5, y:5, width:1.5, height:1});
            sim.addBox({x:5, y:5, width:1.5, height:1});
            sim.addBox({x:5, y:5, width:1.5, height:1});
            sim.addBox({x:5, y:5, width:1.5, height:1});
            sim.addBox({x:5, y:5, width:1.5, height:1});
            sim.addBox({x:5, y:5, width:1.5, height:1});

 
            sim.start();
            sim.mouseDrag();                        
        }
    }
}