本文整理汇总了C#中Font.Size方法的典型用法代码示例。如果您正苦于以下问题:C# Font.Size方法的具体用法?C# Font.Size怎么用?C# Font.Size使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Font
的用法示例。
在下文中一共展示了Font.Size方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadContent
public static void LoadContent(ContentManager content, GameWindow window)
{
hud = content.Load<Texture2D>("images/hud/HUD");
GameView = window.ClientBounds;
GameView.Width -= hud.Width;
GameView.Y = 0;
HUDView = new Rectangle(GameView.Right, 0, hud.Width, hud.Height);
boss = new Boss(new Animation(content.Load<Texture2D>("images/boss"), 0.1F, true, 100), new Vector2(Rng.Next(window.ClientBounds.Width - 64), -1 * Rng.Next(500) - 100), new Vector2(0, (float)Rng.NextDouble() * -3 - 1),
Enemy.Destruction);
//enemies.Add(boss);
Content = content;
_window = window;
menu = new Menu.Menu((int)State.Menu, content);
menu.AddItem(content.Load<Texture2D>("images/menu/btnNewGame"), (int)State.Play, window);
menu.AddItem(content.Load<Texture2D>("images/menu/btnHighScore"), (int)State.HighScore, window);
menu.AddItem(content.Load<Texture2D>("images/menu/btnOptions"), (int)State.Options, window);
menu.AddItem(content.Load<Texture2D>("images/menu/btnQuit"), (int)State.Quit, window);
background = new Background(content, "images/background/endless/", window);
content.Load<SoundEffect>("sounds/lets_go").Play();
Stencil = new Font(content.Load<SpriteFont>("fonts/Stencil"));
t = Stencil.Size("Nothing here yet");
//player.IsInvincible = true;
}