2025-03-07 19:26:12 -07:00
|
|
|
class_name Game extends Node
|
|
|
|
## Interface to the game as an application.
|
|
|
|
|
2025-04-19 16:18:12 -06:00
|
|
|
@export_category("Game Scenes")
|
|
|
|
@export var world_scene: PackedScene
|
|
|
|
|
2025-03-07 19:26:12 -07:00
|
|
|
## Handy typed singleton access.
|
2025-03-22 19:16:52 -06:00
|
|
|
static var settings: GameSettingsType:
|
|
|
|
get():
|
|
|
|
return GameSettings
|
|
|
|
static var runtime: GameRuntimeType:
|
|
|
|
get():
|
|
|
|
return GameRuntime
|
2025-03-20 22:45:19 -06:00
|
|
|
|
2025-03-22 17:16:17 -06:00
|
|
|
## Global static access to Game singleton
|
|
|
|
static var instance: Game
|
|
|
|
|
|
|
|
|
|
|
|
func _ready() -> void:
|
|
|
|
Game.instance = self
|