Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override public function startup() : void
- {
- // we need to start something manually
- var game:Game = new Game();
- // Views
- viewMap.mapPackage("app.view");
- // Controllers
- injector.mapSingleton(GameMovement);
- injector.mapValue(Game, game);
- // Models
- injector.mapSingleton(GreenPlayer);
- injector.mapSingleton(RedPlayer);
- // Other
- injector.mapValue(Stage, contextView.stage);
- // start the game
- injector.injectInto(game);
- }
Add Comment
Please, Sign In to add comment