Small Godot Wild Jam game
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow changing NavPoint debug texture in editor

+2 -1
+2 -1
Scripts/nav_point.gd
··· 4 4 5 5 @export var connections: Array[NavPoint] 6 6 7 + @export var debug_texture: Texture2D = preload("res://Assets/sprites/DEBUG_NavPoint.png") 7 8 var debug_sprite: Sprite2D 8 9 9 10 func _ready() -> void: ··· 16 17 if Global.debug_mode: 17 18 if !debug_sprite: 18 19 debug_sprite = Sprite2D.new() 19 - debug_sprite.texture = preload("res://Assets/sprites/DEBUG_NavPoint.png") 20 + debug_sprite.texture = debug_texture 20 21 add_child(debug_sprite) 21 22 else: 22 23 if debug_sprite: