Friday, 15 August 2025 23:08:08
This commit is contained in:
@@ -5,17 +5,19 @@ using System.Collections.Generic;
|
||||
public partial class Globals : Node
|
||||
{
|
||||
public static Globals Instance;
|
||||
|
||||
public bool _anyMovement = false;
|
||||
public Viewport _viewport;
|
||||
public Vector2 _screenSize;
|
||||
public Vector2 _screenCenter;
|
||||
public Battle _currentBattle;
|
||||
public Random _random = new();
|
||||
|
||||
public PackedScene _workerScene = ResourceLoader.Load<PackedScene>("res://Gameplay/worker.tscn");
|
||||
public PackedScene _tchotchkeScene = ResourceLoader.Load<PackedScene>("res://Gameplay/tchotchke.tscn");
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
Instance = this;
|
||||
_viewport = GetViewport();
|
||||
_screenSize = _viewport.GetVisibleRect().Size;
|
||||
_screenCenter = _screenSize / 2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user