display minimap sprite as map background

This commit is contained in:
Antti Hakkarainen 2023-02-15 21:13:24 +02:00
parent d07708ff01
commit d31fced182
15 changed files with 135 additions and 56 deletions

7
scripts/MapBackground.gd Normal file
View file

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