This commit is contained in:
rendo 2026-02-19 10:21:55 +05:00
commit 621bcf75cb
10 changed files with 164 additions and 0 deletions

11
cards/card.gd Normal file
View file

@ -0,0 +1,11 @@
extends TextureRect
class_name Card
@export var card_resource: CardResource
func _ready() -> void:
$UnitPreview.texture = card_resource.preview
texture = card_resource.background
$CostBubble/Cost.text = str(card_resource.cost)
$ExperimentalBadge.visible = card_resource.experimental