The_Dark_Side_of_Earth/buildings/building_mesh.gd

6 lines
217 B
GDScript

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