Guest User

Untitled

a guest
Aug 4th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _context = new Context(Starling.current.nativeStage);
  2.            
  3. _context.addEngine(new StarlingEngine(this));
  4. _context.addEngine(new KeyboardEngine(Starling.current.nativeStage));
  5. _context.addEngine(new PhysicEngine());
  6.            
  7. var componentsMap:Dictionary = new Dictionary;
  8. componentsMap[IPhysicComponent] = new PhysicComponent;
  9.  
  10. _context.addEntity(BuildEntity([new Car, new CarInput, componentsMap[IPhysicComponent]], componentsMap));
Add Comment
Please, Sign In to add comment