Пример #1
0
 // loadcontent methode. deze methoden maakt nieuwe objecten aaan van de verschillende
 //classes
 public void LoadContent()
 {
     // nu maken we een object aan ( instantie ) van de class image
     this.background = new image(this.game,@"StartScene\Background", Vector2.Zero);
     this.title = new image(this.game,@"Startscene\Title",new Vector2(100f, 30f));
     this.menu = new Menu(this.game);
 }
Пример #2
0
        public void LoadContent()
        {
            this.buttonlist = new List<image>();

            this.buttonlist.Add(this.start = new image(this.game, @"StartScene\Button_start", new Vector2(20f, 440f)));
            this.buttonlist.Add(this.load = new image(this.game, @"startscene\Button_load", new Vector2(120f, 440f)));
            this.buttonlist.Add(this.help = new image(this.game, @"startscene\Button_help", new Vector2(250f, 440f)));
            this.buttonlist.Add(this.score = new image(this.game, @"startscene\Button_scores", new Vector2(380f, 440f)));
            this.buttonlist.Add(this.quit = new image(this.game, @"startscene\Button_quit", new Vector2(480f, 440f)));
            this.start.Color = Color.Gold;
        }