Exemplo n.º 1
0
 public TextureManager()
 {
     Field       = new FieldTexture();
     Block       = new BlockTexture();
     AnnounceBox = new AnnouncementBox();
     Font        = new MyFont();
 }
Exemplo n.º 2
0
        public Vector2 Destination(string v, MyFont font, HorizontalAlign align)
        {
            Vector2 result = new Vector2(0, 250);

            if (align == HorizontalAlign.Center)
            {
                result.X = (Window.Width - font.SpriteFont.MeasureString(v).X) / 2;
            }
            else if (align == HorizontalAlign.Left)
            {
            }
            else if (align == HorizontalAlign.Right)
            {
                result.X = (Window.Width - font.SpriteFont.MeasureString(v).X);
            }

            return(result);
        }