Stage' can't be called in this context by implicit receiver in main.kt
i try to follow tutorial for building this game but when i get to using position function inside graphics block i get
fun <T : View> Stage.position(x: Double, y: Double): Stage' can't be called in this context by implicit receiver. Use the explicit one if necessary
i tried doing it with couple of different templates but still doesnt work
point of reference: https://github.com/RezMike/2048/blob/master/src/commonMain/kotlin/main.kt#L72
I think it's related to a new korge version you have in your own project. I'm unfamiliar with the latest versions of korge, this project uses korge-gradle-plugin v2.4.1 (here). Regretfully, I can't help you with this problem since I haven't worked with korge since Sep 2021.
You can simply reference explicitly it like this:
graphics {
it.position(leftIndent, topIndent) // <===
}