7-8-25 6:02pm
This commit is contained in:
25
Gameplay/Main.cs
Normal file
25
Gameplay/Main.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user