/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. TextureManager.setDebug(true); spriteBatch = new SpriteBatch(GraphicsDevice); TextureManager.loadAllImages(Content); GlobalCamera = new LCamera(graphics.GraphicsDevice, spriteBatch, Settings.TargetRectangle, Settings.GP_P); Camera.setupCamera(Settings.GP_P); Camera.setupGenericTexture(GraphicsDevice); SafeImage.SetPlaceholder(new Image("phld")); ControllerDisplayHelper.Load(); TemporaryPlayer.LOAD(); Screen.Load(Content); Settings.Load(); ScreenManager = new GameScreenManager(); Screens.MinigameScreen.Load(Content); //Settings.DEBUG_CONTROLLERS = true; //DEBUGGING: Settings.UPDATE_GT = new GameTime(TimeSpan.Zero, TimeSpan.Zero); GameManager.Setup(new Player[] { new Player("TST P", Difficulty.NON_COMP, PlayerIndex.One), new Player("CMP E", Difficulty.Easy, PlayerIndex.Two), new Player("CMP M", Difficulty.Medium, PlayerIndex.Three), new Player("CMP H", Difficulty.Hard, PlayerIndex.Four) }); GameManager.ChangeP1(GameManager.Players[2], 0); ScreenManager.ChangeScreen(new Screens.MinigameScreen( Screens.MinigameScreen.AllMinigames[2], // Minigame goes here GameManager.Players)); // END DEBUGGING }
public abstract void Update(GameTime time, GameScreenManager Manager);