44 lines
1.8 KiB
Plaintext
44 lines
1.8 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://cpxco37ip15ev"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://ci3yxj63e5u8f" path="res://sprites/contractgiver.png" id="1_awtl7"]
|
|
[ext_resource type="Script" path="res://scripts/contract_giver.gd" id="1_e2wbr"]
|
|
[ext_resource type="PackedScene" uid="uid://cn41xqc3lwaxy" path="res://scenes/contract.tscn" id="2_8dusb"]
|
|
[ext_resource type="PackedScene" uid="uid://sk2uc8hcxhcj" path="res://scenes/physical_dialogue.tscn" id="3_dlmpa"]
|
|
[ext_resource type="PackedScene" uid="uid://dpwqurhly8osd" path="res://scenes/interactible_manager.tscn" id="4_1m1bm"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_put5l"]
|
|
radius = 389.155
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sdg4f"]
|
|
size = Vector2(409, 181)
|
|
|
|
[node name="ContractGiver" type="Area2D"]
|
|
script = ExtResource("1_e2wbr")
|
|
text = "Hello Dear Employee"
|
|
ContractScene = ExtResource("2_8dusb")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
texture = ExtResource("1_awtl7")
|
|
metadata/_edit_lock_ = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(8, 150)
|
|
shape = SubResource("CircleShape2D_put5l")
|
|
|
|
[node name="Wall" type="StaticBody2D" parent="."]
|
|
position = Vector2(-4, 149)
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall"]
|
|
position = Vector2(7.5, 15.5)
|
|
shape = SubResource("RectangleShape2D_sdg4f")
|
|
metadata/_edit_lock_ = true
|
|
|
|
[node name="InteractibleManager" parent="." node_paths=PackedStringArray("ItemShown") instance=ExtResource("4_1m1bm")]
|
|
ItemShown = NodePath("../Dialogue")
|
|
|
|
[node name="Dialogue" parent="." instance=ExtResource("3_dlmpa")]
|
|
DefaultText = "Hello Dear Employee"
|
|
|
|
[connection signal="body_entered" from="." to="InteractibleManager" method="_on_body_entered"]
|
|
[connection signal="body_exited" from="." to="InteractibleManager" method="_on_body_exited"]
|