Exemplo n.º 1
0
        public Camera(int width, int height, Thing focus = null)
        {
            Width = width;
            Height = height;

            Center = new Vector2(Width / 2, Height / 2);

            Scale = 1f;
            Rotation = 0;
            Origin = Center / Scale;

            Focus = focus;
        }
Exemplo n.º 2
0
 public void Toggle(Thing e)
 {
     if (Focus == null)
     {
         Focus = e;
     }
     else
     {
         Focus = null;
     }
 }