L'arrivée de la boulangerie

Il n'y a rien dedans, mais elle est ouverte. Bonne visite
This commit is contained in:
Thomas
2025-03-30 14:38:20 +02:00
parent 9ecea272ab
commit a82237ff28
90 changed files with 21888 additions and 46 deletions

View File

@@ -16,7 +16,6 @@ func _ready() -> void:
astar_grid = AStarGrid2D.new()
astar_grid.region = world.get_used_rect()
astar_grid.cell_size = Vector2(48, 48)
astar_grid.diagonal_mode = AStarGrid2D.DIAGONAL_MODE_AT_LEAST_ONE_WALKABLE
astar_grid.default_compute_heuristic = AStarGrid2D.HEURISTIC_CHEBYSHEV
astar_grid.default_estimate_heuristic = AStarGrid2D.HEURISTIC_CHEBYSHEV
astar_grid.update()
@@ -46,6 +45,9 @@ func _process(delta: float) -> void:
return
if controled.wants_to_interact_with:
destination = Vector2.INF
if controled.kill_path_finder:
destination = Vector2.INF
controled.kill_path_finder = false
if destination != Vector2.INF:
var my_global_position = controled.get_feet_global_position()