/// <summary> /// Carrega conteúdo inicial, comum a todas as cenas de jogo, e registra serviços /// úteis capaz de serem utilizados pelos GameObjects /// </summary> /// <param name="content"></param> /// <param name="services"></param> public static void LoadContent() { if (state != GameStates.Unloaded) { return; } spriteBatch = new SpriteBatch(GraphicsDevice); MainCamera = new DefaultGameCamera(game.GraphicsDevice); MainCamera.Initialize(); Input = new GameInputManager(game, NoActionGameController.Instance); Input.Initialize(); Sound = new SoundManager(); scenes = new GameScene[] { new TitleScreenScene(), new MapBasedGameScene(5, "maps/lab_map_005", Color.Black), new MapBasedGameScene(4, "maps/lab_map_004", Color.Black), new CreditsScene() }; PAUSE_PANEL = new SemiTransparentDarkPanel(); PAUSE_PANEL.LoadContent(); currentSceneIndex = DEFAULT_FIRST_SCENE; state = GameStates.Ready; }