/// <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. spriteBatch = new SpriteBatch(GraphicsDevice); // TODO: use this.Content to load your game content here resetLevels(); MousePointer.loadPointerImage(this); Button.loadContent(this); StartingScreen.loadTitleScreenImage(this); LabelPrompt.loadSpriteFont(this); /*locs is a list of the coords of all the powerups,coords are like (Y,X) * types stores the powerup type for each powerup. */ /*double[,] locs = new double[,] { { 500, 100 }, { 600, 100 }, { -50, 50 }, { -40, 200 } }; * string[] types = new string[] {"white", "pink","pink","red","pink","red","pink"}; * powerupManager = new PowerupManager(this,spriteBatch,locs,types);*/ }
public SettingsScreen(MousePointer mousePointer) { settingsPrompt = new LabelPrompt(new Vector2(50, 50), controls); backButton = new Button(new Rectangle(370, 450, 100, 25), "Back"); this.mousePointer = mousePointer; }
public void setWinPrompt(bool won) { winPrompt = new LabelPrompt(new Vector2(185, 250), won ? "YOU WON" : "YOU LOST"); }