Inheritance: IGameComponent
Esempio n. 1
0
 /// <summary>
 /// Loads the content.
 /// </summary>
 /// <param name="content">The ContentManager.</param>
 public override void LoadContent(ContentManager content)
 {
     _skyBox =
         new Skybox(new[]
         {
             content.Load<Texture2D>("mainbackground.png"), content.Load<Texture2D>("bgLayer1.png"),
             content.Load<Texture2D>("bgLayer2.png")
         });
     _header = new Font("Segoe UI", 25, TypefaceStyle.Bold);
     _subHeader = new Font("Segoe UI", 40, TypefaceStyle.Bold);
     _fadeableText1 = new FadeableText
     {
         Font = _header,
         Text = "ThuCommix presents",
         Position = new Vector2(270, 200),
         FadeInVelocity = 2,
         FadeOutVelocity = 3
     };
     _fadeableText2 = new FadeableText
     {
         Font = _header,
         Text = "a game powered by Sharpex2D",
         Position = new Vector2(220, 200),
         FadeInVelocity = 2,
         FadeOutVelocity = 3
     };
     _fadeableText3 = new FadeableText
     {
         Font = _subHeader,
         Text = "XPlane",
         Position = new Vector2(330, 200),
         FadeInVelocity = 2,
         FadeOutVelocity = 2
     };
 }
Esempio n. 2
0
 /// <summary>
 /// Loads the content.
 /// </summary>
 /// <param name="content">The Content.</param>
 public override void LoadContent(ContentManager content)
 {
     _skyBox =
         new Skybox(new[]
         {
             content.Load<Texture2D>("mainbackground.png"), content.Load<Texture2D>("bgLayer1.png"),
             content.Load<Texture2D>("bgLayer2.png")
         });
 }