Example #1
0
		public Program()
		{
			Settings.Current.Resolution = new Size(1280, 720);
			var startupScreen = new StartupScreen();
			var gameScreen = new GameScreen();
			new Game(startupScreen, gameScreen);
		}
Example #2
0
		public CharacterButton(float xCenter, float yCenter, GameScreen screen)
			: base("CharBackground", GetDrawArea(xCenter, yCenter))
		{
			this.screen = screen;
			letter = NoCharacter;
			var font = ContentLoader.Load<Font>("Tahoma30");
			currentFontText = new FontText(font, "", Rectangle.FromCenter(Vector2D.Half, new Size(0.5f)));
			currentFontText.RenderLayer = 4;
		}