Ejemplo n.º 1
0
 //Title
 private void loadTitleContents()
 {
     titleFont = Content.Load<SpriteFont>("TitleFont");
     gameFont = Content.Load<SpriteFont>("GameFont");
     menuFont = Content.Load<SpriteFont>("MenuFont");
     title = new GameTitle(Content.Load<Texture2D>("screenshot_for_menu"), new Rectangle(0, 0, (int)(ScreenWidth), (int)(ScreenHeight)));
     title.setBottomTextRectangle(gameFont.MeasureString("Press Start"));
     startPosition = new Vector2(title.BottomTextRectangle.X, title.BottomTextRectangle.Y);
 }