Пример #1
0
        //LoadContent
        public void LoadContent()
        {
            this.background = new Images(this.game, @"StartScene\Background", new Vector2(0f, 0f));
            this.gameTitel = new Images(this.game, @"StartScene\Title", new Vector2(105f, 30f));

            this.menu = new Menu(this.game);
        }
Пример #2
0
        public void LoadContent()
        {
            this.startButton =
                new Images(this.game, @"StartScene\Button_start", new Vector2(this.left, this.top));
            this.loadButton =
                new Images(this.game, @"StartScene\Button_load", new Vector2(this.left + this.space, this.top));
            this.helpButton =
                new Images(this.game, @"StartScene\Button_help", new Vector2(this.left + 2 * this.space, this.top));
            this.scoresButton =
                new Images(this.game, @"StartScene\Button_scores", new Vector2(this.left + 3 * this.space, this.top));
            this.quitButton =
                new Images(this.game, @"StartScene\Button_quit", new Vector2(this.left + 4 * this.space, this.top));

            this.startButton.Color = Color.White;
            this.loadButton.Color = Color.Gold;
            // Maak een nieuw object van het type List<Image>
            this.buttonList = new List<Images>();

            // Voeg nu de gemaakte Image objecten toe aan this.buttonList
            this.buttonList.Add(this.startButton);
            this.buttonList.Add(this.loadButton);
            this.buttonList.Add(this.helpButton);
            this.buttonList.Add(this.scoresButton);
            this.buttonList.Add(this.quitButton);
        }