Beispiel #1
0
 public Button(int width, int height, Font font)
     : base(width, height)
 {
     Label = new Label (width, height, font);
     Label.CenterText = true;
     FontSize = 14.25f;
     ForegroundColor = Color4.White;
     HighlightForegroundColor = Color4.White;
     UseTexture = true;
     transparency = 1f;
     Controls.Add (Label);
     Click += delegate { };
 }
Beispiel #2
0
 public GameScene()
     : base("maingame")
 {
     game = UIController.Instance.Game;
     generator = new TubeGenerator (game);
     bird = new Bird (game, generator);
     lblScore = new Label (150, 20, "Roboto Regular") {
         X = 25,
         Y = game.Resolution.Height - 45,
         FontSize = 18f,
         Text = "Score: 0"
     };
     backgroundLeft = 0f;
     blueTint = 0f;
     texMap = game.Content.Load<Texture2D> ("flappymascot_map_new.png");
     Controls.Add (lblScore);
 }