Set up C# solution
This commit is contained in:
25
src/Main.cs
Normal file
25
src/Main.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
namespace GameJamDungeon;
|
||||
|
||||
using Godot;
|
||||
|
||||
#if DEBUG
|
||||
using System.Reflection;
|
||||
#endif
|
||||
|
||||
// This entry-point file is responsible for determining if we should run tests.
|
||||
//
|
||||
// If you want to edit your game's main entry-point, please see Game.tscn and
|
||||
// Game.cs instead.
|
||||
|
||||
public partial class Main : Node2D
|
||||
{
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
// If we don't need to run tests, we can just switch to the game scene.
|
||||
CallDeferred("RunScene");
|
||||
}
|
||||
|
||||
private void RunScene()
|
||||
=> GetTree().ChangeSceneToFile("res://src/app/App.tscn");
|
||||
}
|
||||
6
src/Main.tscn
Normal file
6
src/Main.tscn
Normal file
@@ -0,0 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://d1gjaijijd5ot"]
|
||||
|
||||
[ext_resource type="Script" path="res://src/Main.cs" id="1_prpoe"]
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
script = ExtResource("1_prpoe")
|
||||
3
src/app/App.tscn
Normal file
3
src/app/App.tscn
Normal file
@@ -0,0 +1,3 @@
|
||||
[gd_scene format=3 uid="uid://cagfc5ridmteu"]
|
||||
|
||||
[node name="App" type="Node"]
|
||||
Reference in New Issue
Block a user