The_Dark_Side_of_Earth/buildings/building_mesh.gd
2025-09-16 12:02:37 +02:00

7 lines
241 B
GDScript

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