untap/player.gd
2025-04-22 16:39:59 -04:00

26 lines
655 B
GDScript

extends Node2D
var _card_class = preload("res://card.gd")
# 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.
var new_card = _card_class.new()
add_child(new_card)
new_card.load_card("d3f10f07-7cfe-4a6f-8de6-373e367a731b")
print("new player!")
print(new_card.card_id)
print(new_card.card_name)
print(new_card.card_type)
print(new_card.oracle_text)
print(new_card.image_path)
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass