Companion

object Companion

Functions

Link copied to clipboard
fun center(sprite: Sprite2D): Camera2D

Creates a Camera2D that follows the sprite's center directly.

Link copied to clipboard
fun on(target: Positionable2D): Camera2D
fun on(x: Float, y: Float): Camera2D
fun on(x: Int, y: Int): Camera2D

Creates a Camera2D on top of a specific target.