Exemplo n.º 1
0
        public RocketCommanderGame(int width, int height)
            : base("RocketCommander", width, height)
        {
            this.framework.AssetManager.RegisterAssetFactory(new LayoutFactory());

            // Initialize input system
            this.keyboard = new Keyboard(form.Handle);
            this.mouse = new Mouse(form.Handle);

            this.camera = new FreeCamera(this.mouse, this.keyboard);
            this.roamingRocketScene = new RoamingRocketScene(this);
        }
Exemplo n.º 2
0
 public RoamingRocketScene(RocketCommanderGame game)
 {
     this.camera = new RoamingCamera(game.mouse, game.keyboard, game);
     this.rocket = new Rocket(game.framework);
     this.game = game;
 }