refactor node structure

This commit is contained in:
Antti Hakkarainen 2023-02-17 13:09:59 +02:00
parent 8189a16fee
commit f35d27b518
11 changed files with 311 additions and 233 deletions

View file

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