citylimits-next/scripts/MapBackground.gd
2023-02-17 13:09:59 +02:00

8 lines
229 B
GDScript

class_name MapBackground
extends Sprite2D
# sets the minimap texture as map background to avoid jarring transitions
func set_map_background_texture(sprite, scaling:Vector2) -> void:
self.texture = sprite
self.scale = scaling