plein de trucs dont des dialogues!
et ouai! appuye sur e pour parler au npc
This commit is contained in:
@@ -14,8 +14,9 @@ func _ready() -> void:
|
||||
astar_grid = AStarGrid2D.new()
|
||||
astar_grid.region = world.get_used_rect()
|
||||
astar_grid.cell_size = Vector2(48, 48)
|
||||
astar_grid.set_default_compute_heuristic(AStarGrid2D.HEURISTIC_MANHATTAN)
|
||||
astar_grid.set_default_estimate_heuristic(AStarGrid2D.HEURISTIC_MANHATTAN)
|
||||
astar_grid.diagonal_mode = AStarGrid2D.DIAGONAL_MODE_AT_LEAST_ONE_WALKABLE
|
||||
astar_grid.default_compute_heuristic = AStarGrid2D.HEURISTIC_MANHATTAN
|
||||
astar_grid.default_estimate_heuristic = AStarGrid2D.HEURISTIC_MANHATTAN
|
||||
astar_grid.update()
|
||||
|
||||
# only take into account the tiles that are marked with a navigation layer for cars
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://b4ydi1vv8dvwr"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://b4ydi1vv8dvwr"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://d1oqt6sbjvopi" path="res://maps/world.tscn" id="1_6vs81"]
|
||||
[ext_resource type="PackedScene" uid="uid://vclpg4e4ql54" path="res://caracters/player/player.tscn" id="2_5x6b5"]
|
||||
[ext_resource type="PackedScene" uid="uid://cl201baro5y5" path="res://vehicules/npc_car.tscn" id="3_yuakw"]
|
||||
[ext_resource type="PackedScene" uid="uid://bt1p311rn1h6q" path="res://vehicules/car.tscn" id="4_bqm78"]
|
||||
[ext_resource type="PackedScene" uid="uid://bleadp4yrdgj" path="res://caracters/bob/bob.tscn" id="5_n64eb"]
|
||||
|
||||
[sub_resource type="Curve2D" id="Curve2D_shblg"]
|
||||
_data = {
|
||||
@@ -21,10 +22,13 @@ point_count = 20
|
||||
|
||||
[node name="world" parent="." instance=ExtResource("1_6vs81")]
|
||||
|
||||
[node name="bob" parent="world" instance=ExtResource("5_n64eb")]
|
||||
position = Vector2(-333, -262)
|
||||
|
||||
[node name="movibles" type="Node2D" parent="."]
|
||||
|
||||
[node name="player" parent="movibles" instance=ExtResource("2_5x6b5")]
|
||||
position = Vector2(87, 74)
|
||||
position = Vector2(48, -79)
|
||||
|
||||
[node name="cars" type="Node" parent="movibles"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user