Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static function getTexture(spriteName:String):Vector.<Texture>
- {
- if (!atlas)
- atlas = new TextureAtlas(Texture.fromBitmap(new SPRITES()),XML(new XMLSPRITES()));
- return atlas.getTextures(spriteName);
- }
- package
- {
- import nape.geom.Vec2;
- import nape.phys.Body;
- import starling.display.MovieClip;
- import starling.display.Sprite;
- import starling.events.Event;
- import starling.events.TouchEvent;
- import starling.events.TouchPhase;
- public class Char extends Sprite
- {
- private var body:Body;
- public function Char(body:Body)
- {
- super();
- this.body = body;
- addEventListener(Event.ADDED_TO_STAGE, init);
- }
- private function init(e:Event):void
- {
- addChild(new MovieClip(Assets.getTexture((Math.random()>0.5)?Assets.SPRITE_FLAVIA:Assets.SPRITE_MARIANA)));
- pivotX = width>>1;
- pivotY = height>>1;
- addEventListener(TouchEvent.TOUCH, handle_touch);
- }
- private function handle_touch(te:TouchEvent):void
- {
- if ( te.getTouch(this,TouchPhase.BEGAN))
- {
- body.velocity = new Vec2(Math.random()*1000-500,-2000);
- }
- }
- }
- }
- package
- {
- import nape.geom.Vec2;
- import nape.phys.Body;
- import nape.phys.BodyType;
- import nape.phys.Material;
- import nape.shape.Polygon;
- import nape.space.Space;
- import starling.display.DisplayObject;
- import starling.display.Sprite;
- import starling.events.Event;
- public class Game extends Sprite
- {
- private var space:Space;
- private var count:int;
- public function Game()
- {
- super();
- addEventListener(Event.ADDED_TO_STAGE, init);
- }
- private function init(e:Event):void
- {
- space = new Space(new Vec2(0,3000));
- var walls:Body = new Body(BodyType.STATIC);
- var wall_left:Polygon = new Polygon(Polygon.rect(-20,0,20,stage.stageHeight));
- var wall_right:Polygon = new Polygon(Polygon.rect(stage.stageWidth,0,20,stage.stageHeight));
- var floor:Polygon = new Polygon(Polygon.rect(0,stage.stageHeight,stage.stageWidth,20));
- walls.shapes.add(wall_left);
- walls.shapes.add(wall_right);
- walls.shapes.add(floor);
- walls.space = space;
- count = 0;
- addEventListener(Event.ENTER_FRAME, loop);
- }
- private function loop(e:Event):void
- {
- if ( Math.random()<0.03 && count < 50)
- {
- count++;
- addChar();
- }
- space.step(1/60);
- }
- private function addChar():void
- {
- var body:Body = new Body(BodyType.DYNAMIC,new Vec2(Math.random()*stage.stageWidth,-200));
- body.shapes.add(new Polygon(Polygon.box(50,100),new Material(20)));
- body.graphic = new Char(body);
- body.graphicUpdate = graphicUpdate;
- body.space = space;
- addChild(body.graphic);
- }
- private function graphicUpdate(body:Body):void
- {
- var gra:DisplayObject = body.graphic as DisplayObject;
- gra.x = body.position.x;
- gra.y = body.position.y;
- gra.rotation = body.rotation;
- }
- }
- }
- Description Resource Path Location Type
- The definition getClass.T depended on by Type in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition getClass.T depended on by Type in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by flash.Boot in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by flash.Boot in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.callbacks.CbTypeList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.callbacks.CbTypeList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.callbacks.Listener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.callbacks.Listener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.callbacks.ListenerList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.callbacks.ListenerList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.callbacks.PreListener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.callbacks.PreListener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.constraint.Constraint in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.constraint.Constraint in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.constraint.ConstraintList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.constraint.ConstraintList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.dynamics.ArbiterList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.dynamics.ArbiterList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.dynamics.ContactList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.dynamics.ContactList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.dynamics.InteractionGroupList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.dynamics.InteractionGroupList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.geom.GeomPoly in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.geom.GeomPoly in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.geom.GeomPolyList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.geom.GeomPolyList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.geom.RayResultList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.geom.RayResultList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.geom.Vec2List in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.geom.Vec2List in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.phys.BodyList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.phys.BodyList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.phys.CompoundList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.phys.CompoundList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.phys.InteractorList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.phys.InteractorList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.shape.EdgeList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.shape.EdgeList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.shape.ShapeList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.shape.ShapeList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by nape.space.Space in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by nape.space.Space in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by StringTools in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by StringTools in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.callbacks.ZPP_Callback in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.callbacks.ZPP_Callback in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.callbacks.ZPP_InteractionListener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.callbacks.ZPP_InteractionListener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.callbacks.ZPP_Listener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.callbacks.ZPP_Listener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.callbacks.ZPP_OptionType in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.callbacks.ZPP_OptionType in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_AABB in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_AABB in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_Collide in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_Collide in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_GeomPoly in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_GeomPoly in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_GeomVert in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_GeomVert in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_Mat23 in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_Mat23 in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_Ray in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_Ray in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_Vec2 in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_Vec2 in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_Vec3 in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.geom.ZPP_Vec3 in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.phys.ZPP_Compound in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.phys.ZPP_Compound in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.phys.ZPP_Interactor in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.phys.ZPP_Interactor in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.shape.ZPP_Polygon in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.shape.ZPP_Polygon in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.space.ZPP_DynAABBPhase in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.space.ZPP_DynAABBPhase in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.space.ZPP_Space in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.space.ZPP_Space in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.space.ZPP_SweepPhase in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.space.ZPP_SweepPhase in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Debug in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Debug in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_MixVec2List in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_MixVec2List in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_Body in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_Body in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_CbSet in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_CbSet in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_CbSetPair in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_CbSetPair in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_PartitionVertex in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_PartitionVertex in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_SimpleEvent in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_SimpleEvent in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_SimpleSeg in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_SimpleSeg in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_SimpleVert in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2 line 0 Flex Problem
- The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_SimpleVert in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest line 0 Flex Problem
Add Comment
Please, Sign In to add comment