blob: 692d433c52a1ad354a204dd8665bc10598fb4bc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
|