refactor node structure
This commit is contained in:
parent
8189a16fee
commit
f35d27b518
11 changed files with 311 additions and 233 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue