diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/card/card.gd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/components/card/card.gd b/components/card/card.gd new file mode 100644 index 0000000..692d433 --- /dev/null +++ b/components/card/card.gd @@ -0,0 +1,21 @@ +extends Sprite +class_name Card + +export var width = 100 +export var height = 50 + +onready var color = preload("res://textures/colors/light_blue.png") + +var card + +# Called when the node enters the scene tree for the first time. +func _ready(): + card = Sprite.new() + card.scale = Vector2(width, height) + card.texture = color + add_child(card) + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass |
