From 7103016b8d0af10d3a9c0f0f4158b845cde09ba0 Mon Sep 17 00:00:00 2001 From: Jonas Bernard Date: Sun, 25 Apr 2021 20:48:29 +0200 Subject: Card --- components/card/card.gd | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 components/card/card.gd (limited to 'components') 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 -- cgit