Position
Last updated
Was this helpful?
Was this helpful?
AxisAlignedRectangle axisAlignedRectangle = ShapeManager.AddAxisAlignedRectangle();
axisAlignedRectangle.ScaleX = 30;
axisAlignedRectangle.ScaleY = 20;
// make the Camera look at the top-right corner:
Camera.Main.X =
axisAlignedRectangle.X + axisAlignedRectangle.ScaleX;
Camera.Main.Y =
axisAlignedRectangle.Y + axisAlignedRectangle.ScaleY;Camera.Main.X = Map.Width / 2.0f;
Camera.Main.Y = -Map.Height / 2.0f;Camera.Main.Z = 50; // things will be smaller than default, because the default is 40
Camera.Main.Z = 100; // even smaller
Camera.Main.Z = 10; // things will be really big!