/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { AnimatedSpriteFactory.Instance.content = Content; SoundManager.Instance.content = Content; HUD.Instance.Content = Content; GameStateMachine.Instance.Graphics = graphics; if (GamePad.GetState(PlayerIndex.One).IsConnected) { //playerTwoController = new GamePadController(this, ); } //else //{ playerOneController = new KeyboardController(this, Mario.Instance); //} camera = new Camera(); base.Initialize(); }