added interaction system
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
[ext_resource type="Script" path="res://src/scene-scripts/gui/dialog_trigger_area.cs" id="1_wosjw"]
|
||||
|
||||
[node name="dialog_trigger_area" type="Area2D"]
|
||||
collision_layer = 2
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_wosjw")
|
||||
|
||||
[node name="collision_shape_2d" type="CollisionShape2D" parent="."]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://ujfhvssvbgpg"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://ujfhvssvbgpg"]
|
||||
|
||||
[ext_resource type="Script" path="res://src/scene-scripts/player.cs" id="1_qehox"]
|
||||
[ext_resource type="Texture2D" uid="uid://ciidukjv5k6oa" path="res://assets/textures/debug/banana.png" id="2_1l1co"]
|
||||
@@ -15,8 +15,6 @@ animations = [{
|
||||
radius = 21.0
|
||||
height = 66.0
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_jpkwv"]
|
||||
|
||||
[node name="player" type="CharacterBody2D"]
|
||||
script = ExtResource("1_qehox")
|
||||
|
||||
@@ -30,10 +28,7 @@ shape = SubResource("CapsuleShape2D_38v5o")
|
||||
current = true
|
||||
zoom = Vector2(0.8, 0.8)
|
||||
|
||||
[node name="interaction_area" type="Area2D" parent="."]
|
||||
|
||||
[node name="interaction_collision" type="CollisionShape2D" parent="interaction_area"]
|
||||
position = Vector2(-2.27374e-13, 65)
|
||||
rotation = 1.5708
|
||||
scale = Vector2(3, 5)
|
||||
shape = SubResource("CapsuleShape2D_jpkwv")
|
||||
[node name="ray_cast_2d" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(0, 64)
|
||||
collision_mask = 2
|
||||
collide_with_areas = true
|
||||
|
@@ -15,4 +15,4 @@ tile_set = ExtResource("2_kvjhj")
|
||||
cell_quadrant_size = 64
|
||||
format = 2
|
||||
layer_0/z_index = 1
|
||||
layer_0/tile_data = PackedInt32Array(65535, 0, 0, 0, 0, 0, 1, 0, 0, 65534, 0, 0, 65533, 0, 0, -3, 0, 0, -2, 0, 0, -1, 0, 0, -65536, 0, 0, -65535, 0, 0, 65529, 1, 65536, 65530, 1, 65536, 65541, 1, 65536, -196605, 1, 65536)
|
||||
layer_0/tile_data = PackedInt32Array(65535, 0, 0, 0, 0, 0, 1, 0, 0, 65534, 0, 0, 65533, 0, 0, -3, 0, 0, -2, 0, 0, -1, 0, 0, -65536, 0, 0, -65535, 0, 0, 65529, 1, 65536, 65541, 1, 65536, -196605, 1, 65536, 196603, 1, 65536)
|
||||
|
Reference in New Issue
Block a user