des indices d'intéractions à base de shaders et de bulles

This commit is contained in:
Thomas
2025-03-19 17:13:57 +01:00
parent 65af087d46
commit 0b805448ee
19 changed files with 1616 additions and 44 deletions

View File

@@ -5,11 +5,11 @@ var toFollow: Array[Vector2i]
@onready var world: TileMapLayer = get_parent().get_parent();
@onready var obstacles: TileMapLayer = world.get_children()[2]
@export var controled:Human
@onready var controled:Human = get_parent()
var destination:Node2D
var HumanLayer = 0
func _ready() -> void:
func _ready() -> void:
astar_grid = AStarGrid2D.new()
astar_grid.region = world.get_used_rect()
astar_grid.cell_size = Vector2(48, 48)
@@ -67,7 +67,6 @@ func _process(delta: float) -> void:
func _on_character_body_2d_start_intracting(interactingWith: Human) -> void:
controled.face(interactingWith.global_position)
print("pouet")
# ouvre un dialogue
var resource = load("res://caracters/bob/bob.dialogue")
DialogueManager.show_dialogue_balloon(resource, "start")