24 lines
540 B
C#
24 lines
540 B
C#
using Godot;
|
|
using System;
|
|
|
|
public partial class Main : Node
|
|
{
|
|
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);
|
|
}
|
|
|
|
public override void _Process(double DELTA_)
|
|
{
|
|
if (Input.IsActionJustReleased("quit_game"))
|
|
{
|
|
GetTree().Quit();
|
|
}
|
|
}
|
|
|
|
}
|