on

fun on(x: Int, y: Int): Camera2D
fun on(x: Float, y: Float): Camera2D

Creates a Camera2D on top of a specific target.

Return

A Camera2D instance.

Parameters

x

The X coordinate of the target.

y

The Y coordinate of the target


fun on(target: Positionable2D): Camera2D

Creates a Camera2D on top of a specific target.

Return

A Camera2D instance.

Parameters

target

The target to use.