Render: getWindowHeight

getWindowHeight()
  • Returns the height of the game window in pixels

Return Type: 
  • integer 
    Sample Code

    ################  get the height of the game window

    # import bge module
    import bge

    # get the render module
    rend = bge.render

    # get game window height
    height = rend.getWindowHeight()