Initial commit
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://cmb2foaqsx4av"
|
||||
path="res://.godot/imported/Sink.wav-f7668a8793e1ac29fd99ca4ad1763c69.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/kitchen/audio/effects/Sink.wav"
|
||||
dest_files=["res://.godot/imported/Sink.wav-f7668a8793e1ac29fd99ca4ad1763c69.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=1
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=2
|
||||
Binary file not shown.
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dyjimwqh6nf3b"
|
||||
path="res://.godot/imported/kitchen.png-1c4be3f0f06244b5bfca89413b3ff655.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/kitchen/images/kitchen.png"
|
||||
dest_files=["res://.godot/imported/kitchen.png-1c4be3f0f06244b5bfca89413b3ff655.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
@@ -0,0 +1,130 @@
|
||||
[gd_scene format=3 uid="uid://ccbwrgaojccam"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cyebbcwew3oq5" path="res://scenes/kitchen/scripts/kitchen.gd" id="1_hwcho"]
|
||||
[ext_resource type="Script" uid="uid://77kbxobqvmqp" path="res://scenes/kitchen/scripts/west_exit_trigger.gd" id="1_yi3jr"]
|
||||
[ext_resource type="Script" uid="uid://cvx3b5jt4dluc" path="res://scenes/kitchen/scripts/sink.gd" id="4_8xxd6"]
|
||||
[ext_resource type="LabelSettings" uid="uid://dkpp84p885g8h" path="res://shared/resources/standard_label_settings.tres" id="4_hwcho"]
|
||||
[ext_resource type="Script" uid="uid://b7u48u6urn7pt" path="res://scenes/kitchen/scripts/east_exit_trigger.gd" id="5_hwcho"]
|
||||
[ext_resource type="PackedScene" uid="uid://cuc5q5cao3vjx" path="res://player/player.tscn" id="5_lmija"]
|
||||
[ext_resource type="Texture2D" uid="uid://dyjimwqh6nf3b" path="res://scenes/kitchen/images/kitchen.png" id="5_yi3jr"]
|
||||
[ext_resource type="AudioStream" uid="uid://cmb2foaqsx4av" path="res://scenes/kitchen/audio/effects/Sink.wav" id="6_a4owj"]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_5t4nn"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4nnu7"]
|
||||
size = Vector2(2002, 28.5)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5t4nn"]
|
||||
size = Vector2(40.5, 310.5)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_d67dk"]
|
||||
size = Vector2(17.5, 309)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_y2vya"]
|
||||
size = Vector2(98, 285.5)
|
||||
|
||||
[node name="Node2D" type="Node2D" unique_id=396398678]
|
||||
y_sort_enabled = true
|
||||
script = ExtResource("1_hwcho")
|
||||
|
||||
[node name="Movement Collision" type="StaticBody2D" parent="." unique_id=352975622]
|
||||
position = Vector2(130, 164)
|
||||
physics_material_override = SubResource("PhysicsMaterial_5t4nn")
|
||||
|
||||
[node name="Everything else" type="CollisionPolygon2D" parent="Movement Collision" unique_id=1786835918]
|
||||
position = Vector2(-2, 3)
|
||||
polygon = PackedVector2Array(-139, 616, 37, 670, 291, 593, 488, 508, 1351, 615, 1353, 928, 1822, 926, 1806, 51, 456, 21, -169, 30)
|
||||
|
||||
[node name="Island" type="CollisionPolygon2D" parent="Movement Collision" unique_id=506849821]
|
||||
polygon = PackedVector2Array(359, 784, 717, 864, 782, 807, 912, 824, 1027, 720, 491, 674, 358, 720)
|
||||
|
||||
[node name="Bottom" type="CollisionShape2D" parent="Movement Collision" unique_id=1295111135]
|
||||
position = Vector2(841, 992)
|
||||
shape = SubResource("RectangleShape2D_4nnu7")
|
||||
|
||||
[node name="Table" type="CollisionPolygon2D" parent="Movement Collision" unique_id=1468659186]
|
||||
polygon = PackedVector2Array(-139, 834, 231, 922, 231, 984, -142, 988)
|
||||
|
||||
[node name="West Exit Trigger" type="Area2D" parent="." unique_id=1623086752]
|
||||
collision_layer = 32768
|
||||
collision_mask = 32768
|
||||
script = ExtResource("1_yi3jr")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="West Exit Trigger" unique_id=926854248]
|
||||
position = Vector2(-1, 940)
|
||||
shape = SubResource("RectangleShape2D_5t4nn")
|
||||
|
||||
[node name="East Exit Trigger" type="Area2D" parent="." unique_id=1533846235]
|
||||
collision_layer = 32768
|
||||
collision_mask = 32768
|
||||
script = ExtResource("5_hwcho")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="East Exit Trigger" unique_id=1119900302]
|
||||
position = Vector2(1904, 1050)
|
||||
shape = SubResource("RectangleShape2D_d67dk")
|
||||
|
||||
[node name="Sink" type="Area2D" parent="." unique_id=404554411]
|
||||
position = Vector2(1461, 569)
|
||||
collision_layer = 32768
|
||||
collision_mask = 32768
|
||||
script = ExtResource("4_8xxd6")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Sink" unique_id=115520028]
|
||||
position = Vector2(31, 165)
|
||||
shape = SubResource("RectangleShape2D_y2vya")
|
||||
|
||||
[node name="Label" type="Label" parent="Sink" unique_id=419035073]
|
||||
visible = false
|
||||
offset_left = 36.0
|
||||
offset_top = -25.0
|
||||
offset_right = 76.0
|
||||
offset_bottom = -2.0
|
||||
text = "Drink"
|
||||
label_settings = ExtResource("4_hwcho")
|
||||
|
||||
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="Sink" unique_id=1873898426]
|
||||
stream = ExtResource("6_a4owj")
|
||||
|
||||
[node name="Kitchen" type="Sprite2D" parent="." unique_id=1426636203]
|
||||
texture = ExtResource("5_yi3jr")
|
||||
centered = false
|
||||
region_enabled = true
|
||||
region_rect = Rect2(0, 0, 1920, 1080)
|
||||
|
||||
[node name="Island" type="Sprite2D" parent="." unique_id=1469135755]
|
||||
y_sort_enabled = true
|
||||
position = Vector2(418, 987)
|
||||
texture = ExtResource("5_yi3jr")
|
||||
centered = false
|
||||
offset = Vector2(0, -412)
|
||||
region_enabled = true
|
||||
region_rect = Rect2(7, 1094, 728, 412)
|
||||
|
||||
[node name="Chair" type="Sprite2D" parent="." unique_id=869791031]
|
||||
y_sort_enabled = true
|
||||
position = Vector2(1, 1079)
|
||||
texture = ExtResource("5_yi3jr")
|
||||
centered = false
|
||||
offset = Vector2(0, -322)
|
||||
region_enabled = true
|
||||
region_rect = Rect2(860, 1109, 408, 322)
|
||||
|
||||
[node name="Player" parent="." unique_id=1952104269 instance=ExtResource("5_lmija")]
|
||||
unique_name_in_owner = true
|
||||
y_sort_enabled = true
|
||||
position = Vector2(107.00003, 941.00006)
|
||||
scale = Vector2(3, 3)
|
||||
|
||||
[node name="West Entrance" type="Marker2D" parent="." unique_id=1551250499]
|
||||
position = Vector2(107, 943)
|
||||
|
||||
[node name="East Entrance" type="Marker2D" parent="." unique_id=2066137134]
|
||||
position = Vector2(1693, 1122)
|
||||
|
||||
[node name="South Entrance" type="Marker2D" parent="." unique_id=1120897992]
|
||||
position = Vector2(1109, 1032)
|
||||
|
||||
[connection signal="body_entered" from="West Exit Trigger" to="West Exit Trigger" method="_on_body_entered"]
|
||||
[connection signal="body_entered" from="East Exit Trigger" to="East Exit Trigger" method="_on_body_entered"]
|
||||
[connection signal="body_entered" from="Sink" to="Sink" method="_on_body_entered"]
|
||||
[connection signal="body_exited" from="Sink" to="Sink" method="_on_body_exited"]
|
||||
@@ -0,0 +1,16 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
Global.player_entrance_name = "West Entrance"
|
||||
get_tree().change_scene_to_file("res://scenes/kitchen_mirror/kitchen_mirror.tscn")
|
||||
@@ -0,0 +1 @@
|
||||
uid://b7u48u6urn7pt
|
||||
@@ -0,0 +1,11 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
if Global.player_entrance_name:
|
||||
$Player.global_position = get_node(Global.player_entrance_name).global_position
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
@@ -0,0 +1 @@
|
||||
uid://cyebbcwew3oq5
|
||||
@@ -0,0 +1,27 @@
|
||||
extends Area2D
|
||||
|
||||
var inside = false
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
func _input(event):
|
||||
if inside and Input.is_action_just_pressed("interact"):
|
||||
$AudioStreamPlayer2D.play()
|
||||
|
||||
%Player.play_animation("drink",2100)
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
$Label.visible = true
|
||||
inside = true
|
||||
|
||||
|
||||
func _on_body_exited(body: Node2D) -> void:
|
||||
$Label.visible = false
|
||||
inside = true
|
||||
@@ -0,0 +1 @@
|
||||
uid://cvx3b5jt4dluc
|
||||
@@ -0,0 +1,16 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
Global.player_entrance_name = "South Entrance"
|
||||
get_tree().change_scene_to_file("res://scenes/kitchen_mirror/kitchen_mirror.tscn")
|
||||
@@ -0,0 +1 @@
|
||||
uid://bhc2174723t3m
|
||||
@@ -0,0 +1,16 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
Global.player_entrance_name = "East Entrance"
|
||||
get_tree().change_scene_to_file("res://scenes/kitchen_mirror/kitchen_mirror.tscn")
|
||||
@@ -0,0 +1 @@
|
||||
uid://77kbxobqvmqp
|
||||
@@ -0,0 +1,16 @@
|
||||
~ start
|
||||
Elwood: Alright Jimmy. I need you to pick up some ingredients for the gala tonight.
|
||||
Jimmy: What do you need?
|
||||
Elwood: We need 1000 pieces of salt.
|
||||
Jimmy: El, I don't think that's how to get salt. You pick up bags of various poundage.
|
||||
Elwood: I'll show you some damn poundage unless you get me my damn salt.
|
||||
|
||||
- Why do I have to get them?
|
||||
Elwood: Because I said so, dingus! I'm your boss. So get to it!
|
||||
- Take that list and shove it where the sun don't shine!
|
||||
Elwood: That's it Jimmy! I'm writing you up!
|
||||
Jimmy: Not if I write you up first!
|
||||
Elwood: I'm going to write you up so hard!
|
||||
Jimmy: I'll write you up even harder!
|
||||
Elwood: You son of a!
|
||||
=> END
|
||||
@@ -0,0 +1,16 @@
|
||||
[remap]
|
||||
|
||||
importer="dialogue_manager"
|
||||
importer_version=18
|
||||
type="Resource"
|
||||
uid="uid://dq0rebksvpqsq"
|
||||
path="res://.godot/imported/magus.dialogue-250d6c867bed30b9f34528cf753a086b.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/kitchen_mirror/dialogue/magus.dialogue"
|
||||
dest_files=["res://.godot/imported/magus.dialogue-250d6c867bed30b9f34528cf753a086b.tres"]
|
||||
|
||||
[params]
|
||||
|
||||
defaults=true
|
||||
@@ -0,0 +1,137 @@
|
||||
[gd_scene format=3 uid="uid://cdvdgefw2xiim"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dyjimwqh6nf3b" path="res://scenes/kitchen/images/kitchen.png" id="1_8froy"]
|
||||
[ext_resource type="Script" uid="uid://d13cdc8w03klw" path="res://scenes/kitchen_mirror/scripts/kitchen_mirror.gd" id="1_d2q7u"]
|
||||
[ext_resource type="Script" uid="uid://bm1tgx7c8cmbq" path="res://scenes/kitchen_mirror/scripts/west_exit.gd" id="4_8froy"]
|
||||
[ext_resource type="PackedScene" uid="uid://cuc5q5cao3vjx" path="res://player/player.tscn" id="4_8uwkb"]
|
||||
[ext_resource type="Script" uid="uid://ddi7n13cestbt" path="res://scenes/kitchen_mirror/scripts/east_exit.gd" id="5_8froy"]
|
||||
[ext_resource type="PackedScene" uid="uid://nt43v1uyni2b" path="res://entities/magus/magus.tscn" id="6_d2q7u"]
|
||||
[ext_resource type="LabelSettings" uid="uid://dkpp84p885g8h" path="res://shared/resources/standard_label_settings.tres" id="7_5jiw2"]
|
||||
[ext_resource type="Script" uid="uid://e22lo1h2ovr7" path="res://shared/helpers/hotspot.gd" id="9_8iblu"]
|
||||
[ext_resource type="Resource" uid="uid://dq0rebksvpqsq" path="res://scenes/kitchen_mirror/dialogue/magus.dialogue" id="10_mdb7i"]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_5t4nn"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4nnu7"]
|
||||
size = Vector2(2039, 118)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5t4nn"]
|
||||
size = Vector2(8, 321)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_d67dk"]
|
||||
size = Vector2(15.5, 218.5)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_y2vya"]
|
||||
size = Vector2(506.00003, 455.91666)
|
||||
|
||||
[node name="Node2D" type="Node2D" unique_id=396398678]
|
||||
y_sort_enabled = true
|
||||
script = ExtResource("1_d2q7u")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=352975622]
|
||||
position = Vector2(92, 176)
|
||||
physics_material_override = SubResource("PhysicsMaterial_5t4nn")
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="StaticBody2D" unique_id=1786835918]
|
||||
position = Vector2(1637, -47)
|
||||
scale = Vector2(-1, 1)
|
||||
polygon = PackedVector2Array(-139, 616, 37, 670, 291, 593, 488, 508, 1294, 605, 1295, 965, 1770, 961, 1806, 4, 456, 21, -169, 30)
|
||||
|
||||
[node name="CollisionPolygon2D2" type="CollisionPolygon2D" parent="StaticBody2D" unique_id=506849821]
|
||||
position = Vector2(1660, 7)
|
||||
scale = Vector2(-1, 1)
|
||||
polygon = PackedVector2Array(359, 784, 717, 864, 782, 807, 912, 824, 1027, 720, 477, 627, 358, 720)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=1773577601]
|
||||
position = Vector2(905.5, 1055)
|
||||
shape = SubResource("RectangleShape2D_4nnu7")
|
||||
|
||||
[node name="CollisionPolygon2D3" type="CollisionPolygon2D" parent="StaticBody2D" unique_id=1227676112]
|
||||
polygon = PackedVector2Array(1860, 817, 1432, 905, 1445, 1057, 1975, 1054)
|
||||
|
||||
[node name="East Exit" type="Area2D" parent="." unique_id=100473542]
|
||||
position = Vector2(-38, 12)
|
||||
collision_layer = 32768
|
||||
collision_mask = 32768
|
||||
script = ExtResource("5_8froy")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="East Exit" unique_id=1358787735]
|
||||
position = Vector2(1957, 934)
|
||||
shape = SubResource("RectangleShape2D_5t4nn")
|
||||
|
||||
[node name="West Exit" type="Area2D" parent="." unique_id=2018443347]
|
||||
position = Vector2(1836, 944)
|
||||
collision_layer = 32768
|
||||
collision_mask = 32768
|
||||
script = ExtResource("4_8froy")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="West Exit" unique_id=1394680927]
|
||||
position = Vector2(-1826, 165)
|
||||
shape = SubResource("RectangleShape2D_d67dk")
|
||||
|
||||
[node name="East Entrance" type="Marker2D" parent="." unique_id=1551667945]
|
||||
position = Vector2(1731, 937)
|
||||
|
||||
[node name="West Entrance" type="Marker2D" parent="." unique_id=90243493]
|
||||
position = Vector2(195, 1131)
|
||||
|
||||
[node name="South Entrance" type="Marker2D" parent="." unique_id=615804952]
|
||||
position = Vector2(945, 1123)
|
||||
|
||||
[node name="Kitchen" type="Sprite2D" parent="." unique_id=929834458]
|
||||
texture = ExtResource("1_8froy")
|
||||
centered = false
|
||||
flip_h = true
|
||||
region_enabled = true
|
||||
region_rect = Rect2(0, 0, 1920, 1080)
|
||||
|
||||
[node name="Island" type="Sprite2D" parent="." unique_id=1972903081]
|
||||
position = Vector2(774, 987)
|
||||
texture = ExtResource("1_8froy")
|
||||
centered = false
|
||||
offset = Vector2(0, -412)
|
||||
flip_h = true
|
||||
region_enabled = true
|
||||
region_rect = Rect2(7, 1094, 728, 412)
|
||||
|
||||
[node name="Chair" type="Sprite2D" parent="." unique_id=407782373]
|
||||
position = Vector2(1512, 1079)
|
||||
texture = ExtResource("1_8froy")
|
||||
centered = false
|
||||
offset = Vector2(0, -322)
|
||||
flip_h = true
|
||||
region_enabled = true
|
||||
region_rect = Rect2(860, 1109, 408, 322)
|
||||
|
||||
[node name="Player" parent="." unique_id=1952104269 instance=ExtResource("4_8uwkb")]
|
||||
unique_name_in_owner = true
|
||||
position = Vector2(1722.0001, 936.00006)
|
||||
scale = Vector2(3, 3)
|
||||
|
||||
[node name="Magus" parent="." unique_id=166157348 instance=ExtResource("6_d2q7u")]
|
||||
position = Vector2(663, 831)
|
||||
scale = Vector2(12, 12)
|
||||
|
||||
[node name="Magus Dialogue" type="Area2D" parent="." unique_id=649036673]
|
||||
collision_layer = 32768
|
||||
collision_mask = 32768
|
||||
script = ExtResource("9_8iblu")
|
||||
dialogue_resource = ExtResource("10_mdb7i")
|
||||
dialogue_cue = "start"
|
||||
metadata/_custom_type_script = "uid://e22lo1h2ovr7"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Magus Dialogue" unique_id=452716105]
|
||||
position = Vector2(699, 669.0417)
|
||||
shape = SubResource("RectangleShape2D_y2vya")
|
||||
|
||||
[node name="Label" type="Label" parent="Magus Dialogue" unique_id=1810741347]
|
||||
visible = false
|
||||
offset_left = 670.0
|
||||
offset_top = 396.0
|
||||
offset_right = 729.0
|
||||
offset_bottom = 434.0
|
||||
text = "Talk"
|
||||
label_settings = ExtResource("7_5jiw2")
|
||||
|
||||
[connection signal="body_entered" from="East Exit" to="East Exit" method="_on_body_entered"]
|
||||
[connection signal="body_entered" from="West Exit" to="West Exit" method="_on_body_entered"]
|
||||
@@ -0,0 +1,16 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
Global.player_entrance_name = "West Entrance"
|
||||
get_tree().change_scene_to_file("res://scenes/kitchen/kitchen.tscn")
|
||||
@@ -0,0 +1 @@
|
||||
uid://ddi7n13cestbt
|
||||
@@ -0,0 +1,12 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
if Global.player_entrance_name:
|
||||
%Player.global_position = get_node(Global.player_entrance_name).global_position
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
@@ -0,0 +1 @@
|
||||
uid://d13cdc8w03klw
|
||||
@@ -0,0 +1,25 @@
|
||||
extends Area2D
|
||||
|
||||
var inside = false;
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
func _input(event):
|
||||
if Input.is_action_just_pressed("interact"):
|
||||
%Player.play_animation("drink",2100)
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
$Label.visible = true
|
||||
inside = true
|
||||
|
||||
|
||||
func _on_body_exited(body: Node2D) -> void:
|
||||
$Label.visible = false
|
||||
inside = true
|
||||
@@ -0,0 +1 @@
|
||||
uid://3y84v7vdq0uo
|
||||
@@ -0,0 +1,16 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
Global.player_entrance_name = "South Entrance"
|
||||
get_tree().change_scene_to_file("res://scenes/kitchen/kitchen.tscn")
|
||||
@@ -0,0 +1 @@
|
||||
uid://do4h840v8awtn
|
||||
@@ -0,0 +1,16 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
Global.player_entrance_name = "East Entrance"
|
||||
get_tree().change_scene_to_file("res://scenes/kitchen/kitchen.tscn")
|
||||
@@ -0,0 +1 @@
|
||||
uid://bm1tgx7c8cmbq
|
||||
Reference in New Issue
Block a user