getOxygen
This function returns the maximum oxygen level available to the player. This is typically used to determine the player's capacity to stay underwater without needing to resurface for air.
Example
Returns:
oxygen: number The maximum oxygen level the player can have. This value is used to gauge how long the player can remain submerged underwater.
Note: The function directly retrieves the current value of the oxygen variable which should be maintained and updated elsewhere in your system based on gameplay events or player actions that impact oxygen levels.
Last updated