protected override void LoadContent() { //设置按钮的位置和图片 Texture2D img_start = Game.Content.Load<Texture2D>(@"images/buttons/snake1"); Texture2D img_start_pushed = Game.Content.Load<Texture2D>(@"images/buttons/snake2"); background = Game.Content.Load<Texture2D>(@"images/menu_background"); start = new Button(new Vector2(250, 70), img_start, img_start_pushed); base.LoadContent(); }
protected override void LoadContent() { //设置按钮的位置和图片 Texture2D img_start = Game.Content.Load<Texture2D>(@"images/buttons/start1"); start = new Button(new Vector2(100, 100), img_start); Texture2D img_exit = Game.Content.Load<Texture2D>(@"images/buttons/exit1"); exit = new Button(new Vector2(100, 500), img_exit); base.LoadContent(); }