7-29-25 @ 2:57am
This commit is contained in:
@@ -3,13 +3,22 @@ using System;
|
||||
|
||||
public partial class Main : Node
|
||||
{
|
||||
public Battle _currentBattle;
|
||||
public Manager _player;
|
||||
public Manager _computer;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
Globals.Instance._screenSize = GetViewport().GetVisibleRect().Size;
|
||||
Globals.Instance._screenCenter = new Vector2(Globals.Instance._screenSize.X / 2, Globals.Instance._screenSize.Y / 2);
|
||||
Battle newBattle = Battle._Create();
|
||||
Globals.Instance._currentBattle = newBattle;
|
||||
AddChild(newBattle);
|
||||
// Battle newBattle = Battle._Create();
|
||||
_currentBattle = GetNode<Battle>("Battle");
|
||||
_player = GetNode<Manager>("Player");
|
||||
_computer = GetNode<Manager>("Computer");
|
||||
// AddChild(newBattle);
|
||||
_currentBattle.Start();
|
||||
_player.Start();
|
||||
_computer.Start();
|
||||
}
|
||||
|
||||
public override void _Process(double DELTA_)
|
||||
|
||||
Reference in New Issue
Block a user