diff options
author | Jonas Bernard <public.jbernard@web.de> | 2021-04-25 20:48:29 +0200 |
---|---|---|
committer | Jonas Bernard <public.jbernard@web.de> | 2021-04-25 20:48:29 +0200 |
commit | 7103016b8d0af10d3a9c0f0f4158b845cde09ba0 (patch) | |
tree | d6186caf4ad156aa5d379955aab341bfb361bfda /components | |
parent | 73d0978098c0b359e7980c4f7aa9d59e75f3c8e5 (diff) | |
download | ldjam48-7103016b8d0af10d3a9c0f0f4158b845cde09ba0.tar.gz ldjam48-7103016b8d0af10d3a9c0f0f4158b845cde09ba0.tar.bz2 ldjam48-7103016b8d0af10d3a9c0f0f4158b845cde09ba0.zip |
Card
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 |