• Studio

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • API

    Services

    Edit

    Screen

    Provides functionalities to control and query properties of the game screen, such as dimensions, pixel density, fullscreen mode, safe areas, sleep timeout, and brightness adjustment.

    Properties

    width

    number

    Retrieves the current width of the game screen in pixels.

    height

    number

    Retrieves the current height of the game screen in pixels.

    dpi

    number

    Provides the current screen resolution in dots per inch.

    fullScreen

    boolean

    Controls whether the game is displayed in fullscreen mode.

    Gives a rectangle excluding certain areas of the screen like notches or taskbars.

    Sets a timeout after which the device's screen will go to sleep.

    Adjusts the brightness of the game screen.

    Updated 27 days ago

    PocketWorlds Icon

    © 2024 Pocket Worlds. All rights reserved.