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