Files
hotdesking/Gameplay/Main.cs
2025-07-08 18:02:01 -04:00

26 lines
543 B
C#

using Godot;
using System;
public partial class Main : Node
{
// Don't forget to rebuild the project so the editor knows about the new export variable.
public override void _Ready()
{
NewGame();
}
public void NewGame()
{
//_score = 0;
var player = GetNode<Marble>("Marble");
var startPosition = GetNode<Marker2D>("StartPosition");
player.Start(startPosition.Position);
var player2 = GetNode<Marble>("Marble2");
var startPosition2 = GetNode<Marker2D>("StartPosition2");
player2.Start(startPosition2.Position);
}
}