/// <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); contentManager = MyContentManager.GetInstance(); contentManager.Initialize(Content); backTexture = contentManager.textures["BackTexture"]; // TODO: use this.Content to load your game content here }
public GameOverInterface(int score, int highScore, Rectangle screen) : base(screen) { this.score = score; this.highScore = highScore; font = MyContentManager.GetInstance().fonts["InterfaceFont"]; }
public StartGameInterface(Rectangle screen) : base(screen) { font = MyContentManager.GetInstance().fonts["InterfaceFont"]; }
public PlayInterface(Rectangle screen) : base(screen) { font = MyContentManager.GetInstance().fonts["InterfaceFont"]; lifeBalls = new Stack <Sprite>(); scoreTextPosition = new Vector2(0, 0); }