https://kotlinlang.org logo
#korge
Title
# korge
j

jeff

12/08/2020, 2:50 AM
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

solidogen

12/08/2020, 8:11 AM
check tilemap sample for moving and camera sample in https://github.com/korlibs/korge-samples
j

jeff

12/08/2020, 4:37 PM
Thanks!
21 Views