The_Dark_Side_of_Earth/buildings/building_mesh.gd

7 lines
213 B
GDScript3
Raw Normal View History

extends Sprite2D
func _ready() -> void:
var location = Vector2i(get_parent().location)
var dimension = Vector2i(get_parent().dimension)
self_modulate = Color8(location.x, location.y, dimension.x, dimension.y)