11 lines
220 B
GDScript3
11 lines
220 B
GDScript3
|
extends Sprite2D
|
||
|
|
||
|
func _ready() -> void:
|
||
|
hide()
|
||
|
|
||
|
func update_zoom_texture_filter(zoom: Vector2):
|
||
|
if zoom.x >= 1.5:
|
||
|
texture_filter = TEXTURE_FILTER_NEAREST_WITH_MIPMAPS
|
||
|
else:
|
||
|
texture_filter = TEXTURE_FILTER_LINEAR
|