2D Camera Functions

From Danmakufu Wiki
Jump to: navigation, search

Set2DCameraFocusX

Arguments:
 1) x-coordinate (real)

Sets the x-coordinate of the 2D world camera's focus point.

The default value is a half of the STG frame's width.

Set2DCameraFocusY

Arguments:
 1) y-coordinate (real)

Sets the y-coordinate of the 2D world camera's focus point.

The default value is a half of the STG frame's height.

Set2DCameraAngleZ

Arguments:
 1) z-rotation (real)

Sets the Z angle of the 2D Camera.

Set2DCameraRatio

Arguments:
 1) zoom (real)

Sets the zoom of the camera (centered on the focus point).

The default value is 1.

Set2DCameraRatioX

Arguments:
 1) x zoom (real)

Sets the magnification of the X axis of the 2D camera (centered on the focus point).

For example, if you set this value to 2, the x-axis will be doubled in size, negative values will cause the axis to be flipped.

The default value is 1.

Set2DCameraRatioY

Arguments:
 1) y zoom (real)

Sets the magnification of the Y axis of the 2D camera (centered on the focus point).

For example, if you set this value to 2, the y-axis will be doubled in size, negative values will cause the axis to be flipped.

The default value is 1.

Reset2DCamera

Resets both the focus point and the zoom ratio, respectively to the center of the screen and 1.

Get2DCameraX

Returns the x-coordinate of the camera.

Get2DCameraY

Returns the y-coordinate of the camera.

Get2DCameraAngleZ

Returns the z rotation angle of the camera.

Get2DCameraRatio

Returns the zoom ratio of the camera.

Get2DCameraRatioX

Returns the x zoom ratio of the camera.

Get2DCameraRatioY

Returns the y zoom ratio of the camera.