Render: setFullScreen

setFullScreen(bool)
  • Enables/disables the game window full screen mode

bool: 
  • True or 1: enable game window full screen
     
  • False or 0: disable game window full screen
    Note:
    • Used with the BGE Standalone Player
      • Properties menu >> Render button >> Standalone Player

        or
         
      • Info menu >> File >> Export >> Save As Game Engine Runtime
    Sample Code

    ################  set game window to full screen

    # import bge module
    import bge

    # get the render module
    rend = bge.render

    # set full screen
    rend.setFullScreen(True)