PirateTreasureHunt/NavTarget.gd

17 lines
431 B
GDScript

extends Node2D
var GridCoords = Vector2.ZERO
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func _process(_delta):
GridCoords = Globals.WorldToGridCoord(self.transform.origin)
Globals.DebugLabelAdd(str("GridCoords: ", GridCoords))
Globals.DebugLabelAdd(str("Nav Origin: ", self.transform.origin))
func _draw():
draw_circle (Vector2.ZERO, 5, "#ff0000")