Game

Game

class

Global game instance

  • read-only Assigning to the field raises an error.

Fields

NameTypeDescription
localization string Active localization culture code
build_string read-only string Build identification string
tick_rate integer Simulation ticks per second

Functions

Game.get_supported_resolutions()

List of the screen resolutions supported by the hardware

returns string[]

Game.get_desktop_resolution()

Resolution of the primary display as WxH

returns string

Game.is_steam_deck()

The game runs on a Steam Deck

returns boolean

Inherited from Object (5)