From 01fb28cbdfe397a99b74a5b937f460691d21dcd3 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 29 Mar 2025 19:54:58 +0100 Subject: [PATCH] =?UTF-8?q?le=20pathfinder=20em=C3=A8ne=20exactement=20l?= =?UTF-8?q?=C3=A0=20o=C3=B9=20on=20a=20cliqu=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- caracters/human_pathfinder.gd | 2 +- project.godot | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/caracters/human_pathfinder.gd b/caracters/human_pathfinder.gd index 95bb869..1233f6a 100644 --- a/caracters/human_pathfinder.gd +++ b/caracters/human_pathfinder.gd @@ -77,7 +77,7 @@ func _process(delta: float) -> void: controled.moveFeetTo(world.to_global(world.map_to_local(toFollow.front()))); else: var distance_to_goal = abs(destination - my_global_position) - if distance_to_goal>Vector2(3, 3): + if distance_to_goal.x > 3 or distance_to_goal.y > 3: controled.moveFeetTo(destination) else: destination = Vector2.INF diff --git a/project.godot b/project.godot index 970aa0b..dd3e2a6 100644 --- a/project.godot +++ b/project.godot @@ -89,4 +89,6 @@ textures/canvas_textures/default_texture_filter=0 renderer/rendering_method="gl_compatibility" renderer/rendering_method.mobile="gl_compatibility" textures/vram_compression/import_etc2_astc=true +textures/lossless_compression/force_png=true +textures/default_filters/anisotropic_filtering_level=0 anti_aliasing/screen_space_roughness_limiter/enabled=false