From c990b68e074e910f869a90d726ac063e7ce37aaf Mon Sep 17 00:00:00 2001 From: ShyProton Date: Tue, 22 Apr 2025 02:30:17 -0400 Subject: [PATCH] Adds some nodes, notably the root tabletop scene and a scene representing a player along with nodes for the hand, local field, and library --- player.tscn | 9 +++++++++ project.godot | 1 + tabletop.gd | 12 ++++++++++++ tabletop.gd.uid | 1 + tabletop.tscn | 6 ++++++ 5 files changed, 29 insertions(+) create mode 100644 player.tscn create mode 100644 tabletop.gd create mode 100644 tabletop.gd.uid create mode 100644 tabletop.tscn diff --git a/player.tscn b/player.tscn new file mode 100644 index 0000000..9521b1a --- /dev/null +++ b/player.tscn @@ -0,0 +1,9 @@ +[gd_scene format=3 uid="uid://cx0vga81xwckh"] + +[node name="Player" type="Node2D"] + +[node name="Field" type="Node2D" parent="."] + +[node name="Hand" type="Node2D" parent="."] + +[node name="Library" type="Node2D" parent="."] diff --git a/project.godot b/project.godot index 997f7d0..c42aec0 100644 --- a/project.godot +++ b/project.godot @@ -11,5 +11,6 @@ config_version=5 [application] config/name="mtg-tabletop" +run/main_scene="uid://b4ldtb3gw0jlu" config/features=PackedStringArray("4.4", "Forward Plus") config/icon="res://icon.svg" diff --git a/tabletop.gd b/tabletop.gd new file mode 100644 index 0000000..57a6ed2 --- /dev/null +++ b/tabletop.gd @@ -0,0 +1,12 @@ +extends Node2D + + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + # TODO: Create 2-4 player instances as children of this tabletop node. + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass diff --git a/tabletop.gd.uid b/tabletop.gd.uid new file mode 100644 index 0000000..09b33f0 --- /dev/null +++ b/tabletop.gd.uid @@ -0,0 +1 @@ +uid://cfkew150yl1y3 diff --git a/tabletop.tscn b/tabletop.tscn new file mode 100644 index 0000000..9bd0c02 --- /dev/null +++ b/tabletop.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=3 uid="uid://b4ldtb3gw0jlu"] + +[ext_resource type="Script" uid="uid://cfkew150yl1y3" path="res://tabletop.gd" id="1_3we3x"] + +[node name="Tabletop" type="Node2D"] +script = ExtResource("1_3we3x")