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); }
public RoamingRocketScene(RocketCommanderGame game) { this.camera = new RoamingCamera(game.mouse, game.keyboard, game); this.rocket = new Rocket(game.framework); this.game = game; }