Any documentation available on camera manipulation...
# korge
j
Any documentation available on camera manipulation? I'm just trying to move around the default camera but nothing seems to do it...
Copy code
suspend fun main() = Korge(width = 1920, height = 1080) {

        val mainTree = resourcesVfs["main.ktree"].readKTree(views)
        addChild(mainTree)

        val board = mainTree["board"].first as Image
        val camera = camera {
            this.centerOn(board)
        }
}
s
check tilemap sample for moving and camera sample in https://github.com/korlibs/korge-samples
j
Thanks!