KorGE

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Is there any way to set the game window to scale full screen on Android ?

    Support
    2
    2
    144
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Saravanane Manicome
      Saravanane Manicome last edited by

      I would like to create a mobile game with vertical orientation, but was wondering how to properly scale content to full screen.
      Is there any integrated setup in KorGE to do so ?

      1 Reply Last reply Reply Quote 0
      • soywiz
        soywiz last edited by

        You can set the orientation on gradle:

        https://github.com/korlibs/korge-plugins/blob/master/korge-gradle-plugin/src/main/kotlin/com/soywiz/korge/gradle/KorgeExtension.kt#L230

        // build.gradle
        korge {
            orientation = Orientation.PORTRAIT
            fullscreen = true
        }
        

        And on your fun main IIRC:

        fun main() = Korge(fullscreen = true) {
        }
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post