1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-12-01 12:34:21 +00:00
hella-farm/scenes/game/main_game.gd

15 lines
365 B
GDScript3
Raw Normal View History

2024-04-14 01:38:04 +00:00
extends Node2D
class_name MainGame
@onready var camera: GameCamera = $"GameCamera"
2024-04-16 01:02:19 +00:00
@onready var default_spawn_parent: Node2D = %"DefaultSpawnParent"
@onready var inventory: Inventory = %"Inventory"
2024-04-19 02:30:35 +00:00
static func get_via_group(node: Node) -> MainGame:
var result = node.get_tree().get_nodes_in_group("game")
if result.is_empty():
return null
return result[0]