Esempio n. 1
0
        /// <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
        }
Esempio n. 2
0
 public GameOverInterface(int score, int highScore, Rectangle screen) : base(screen)
 {
     this.score     = score;
     this.highScore = highScore;
     font           = MyContentManager.GetInstance().fonts["InterfaceFont"];
 }
Esempio n. 3
0
 public StartGameInterface(Rectangle screen) : base(screen)
 {
     font = MyContentManager.GetInstance().fonts["InterfaceFont"];
 }
Esempio n. 4
0
 public PlayInterface(Rectangle screen) : base(screen)
 {
     font              = MyContentManager.GetInstance().fonts["InterfaceFont"];
     lifeBalls         = new Stack <Sprite>();
     scoreTextPosition = new Vector2(0, 0);
 }