Beispiel #1
0
        public override void LoadContent()
        {
            Ball.Instance.UnloadContent();
            Collision.Instance.UnloadContent();
            GameScreen.Instance.UnloadContent2();

            base.LoadContent();
            menuManager.LoadContent("Content/Load/Menu/TitleScreen.xml");

            background      = new Image();
            background.Path = "Images/TitleScreen";
            background.LoadContent();
            background.Scale = new Vector2((float)GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width / ((float)background.Texture.Width / 1.5f),
                                           (float)GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height / ((float)background.Texture.Height / 1.5f));
            background.Position = new Vector2(0, 0);

            Volamus       = new Image();
            Volamus.Path  = "Images/gesamtesLogoPNG";
            Volamus.Scale = new Vector2(0.5f, 0.5f);
            Volamus.LoadContent();
            Volamus.Position = new Vector2((GameStateManager.Instance.dimensions.X - Volamus.SourceRect.Width) / 2, -90);
        }
Beispiel #2
0
 public override void LoadContent()
 {
     base.LoadContent();
     menuManager.LoadContent("Content/Load/Menu/InGameMenu.xml");
 }
Beispiel #3
0
 public override void LoadContent()
 {
     base.LoadContent();
     menuManager.LoadContent("Content/Load/Menu/Options.xml");
 }