untap/player.gd
2025-04-24 13:20:57 -04:00

22 lines
619 B
GDScript

extends Node2D
# var _card_class = preload("res://card.gd")
var field_scene = preload("res://field.tscn")
var fields: Array[Node] = []
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
# The first field in the array will be the player's own field.
# Might be a better idea to have that in a seperate variable? idk
fields.append(field_scene.instantiate())
var colors: Array[Color] = [Color(1, 0, 1)]
fields[0].set_colors(colors)
add_child(fields[0])
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta: float) -> void:
pass