added debug labels
made row/column positions make sense
This commit is contained in:
5
token.gd
5
token.gd
@@ -5,9 +5,11 @@ enum token_type {TYPE_1, TYPE_2, TYPE_3, TYPE_4}
|
||||
var type: token_type = token_type.TYPE_1
|
||||
|
||||
var color_polygon
|
||||
var debug_label: Label
|
||||
|
||||
func _ready():
|
||||
color_polygon = $Color
|
||||
debug_label = $"Debug Label"
|
||||
type = randi_range(0, 3) as token_type
|
||||
match type:
|
||||
token_type.TYPE_1:
|
||||
@@ -18,3 +20,6 @@ func _ready():
|
||||
color_polygon.color = Color.BLUE
|
||||
token_type.TYPE_4:
|
||||
color_polygon.color = Color.YELLOW
|
||||
|
||||
func set_debug_label(text: String):
|
||||
debug_label.text = text
|
||||
|
||||
Reference in New Issue
Block a user