예제 #1
0
파일: Camera.cs 프로젝트: 2ndscreen/Runner
        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;
        }
예제 #2
0
파일: Camera.cs 프로젝트: 2ndscreen/Runner
 public void Toggle(Thing e)
 {
     if (Focus == null)
     {
         Focus = e;
     }
     else
     {
         Focus = null;
     }
 }