Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _context = new Context(Starling.current.nativeStage);
- _context.addEngine(new StarlingEngine(this));
- _context.addEngine(new KeyboardEngine(Starling.current.nativeStage));
- _context.addEngine(new PhysicEngine());
- var componentsMap:Dictionary = new Dictionary;
- componentsMap[IPhysicComponent] = new PhysicComponent;
- _context.addEntity(BuildEntity([new Car, new CarInput, componentsMap[IPhysicComponent]], componentsMap));
Add Comment
Please, Sign In to add comment