summaryrefslogtreecommitdiff
path: root/game/rooms/test_kitchen
diff options
context:
space:
mode:
Diffstat (limited to 'game/rooms/test_kitchen')
-rw-r--r--game/rooms/test_kitchen/fridge.esc7
-rw-r--r--game/rooms/test_kitchen/fridge_open.pngbin0 -> 78029 bytes
-rw-r--r--game/rooms/test_kitchen/fridge_open.png.import40
-rw-r--r--game/rooms/test_kitchen/meat.esc7
-rw-r--r--game/rooms/test_kitchen/meat.pngbin0 -> 13720 bytes
-rw-r--r--game/rooms/test_kitchen/meat.png.import40
-rw-r--r--game/rooms/test_kitchen/meat_cut.pngbin0 -> 13079 bytes
-rw-r--r--game/rooms/test_kitchen/meat_cut.png.import40
-rw-r--r--game/rooms/test_kitchen/room_kitchen.esc7
-rw-r--r--game/rooms/test_kitchen/test_kitchen.tscn116
10 files changed, 257 insertions, 0 deletions
diff --git a/game/rooms/test_kitchen/fridge.esc b/game/rooms/test_kitchen/fridge.esc
new file mode 100644
index 0000000..2e38107
--- /dev/null
+++ b/game/rooms/test_kitchen/fridge.esc
@@ -0,0 +1,7 @@
+:use
+ if not kitchen_fridge_open:
+ set_global("kitchen_fridge_open", true)
+ set_state($fridge, "open")
+ set_interactive($fridge, false)
+ set_active("meat", true)
+
diff --git a/game/rooms/test_kitchen/fridge_open.png b/game/rooms/test_kitchen/fridge_open.png
new file mode 100644
index 0000000..9280ba4
--- /dev/null
+++ b/game/rooms/test_kitchen/fridge_open.png
Binary files differ
diff --git a/game/rooms/test_kitchen/fridge_open.png.import b/game/rooms/test_kitchen/fridge_open.png.import
new file mode 100644
index 0000000..3c195e0
--- /dev/null
+++ b/game/rooms/test_kitchen/fridge_open.png.import
@@ -0,0 +1,40 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cdh3khodwfocq"
+path="res://.godot/imported/fridge_open.png-8d32a6ff2cc19190051418a0b06fc615.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://game/rooms/test_kitchen/fridge_open.png"
+dest_files=["res://.godot/imported/fridge_open.png-8d32a6ff2cc19190051418a0b06fc615.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
diff --git a/game/rooms/test_kitchen/meat.esc b/game/rooms/test_kitchen/meat.esc
new file mode 100644
index 0000000..05b1c95
--- /dev/null
+++ b/game/rooms/test_kitchen/meat.esc
@@ -0,0 +1,7 @@
+:look
+ say($weener, "smells meaty")
+
+:use $knife
+ say($weener, "cut meat")
+ inventory_add("bedroom_key")
+ set_state($meat, "cut")
diff --git a/game/rooms/test_kitchen/meat.png b/game/rooms/test_kitchen/meat.png
new file mode 100644
index 0000000..bd5d93b
--- /dev/null
+++ b/game/rooms/test_kitchen/meat.png
Binary files differ
diff --git a/game/rooms/test_kitchen/meat.png.import b/game/rooms/test_kitchen/meat.png.import
new file mode 100644
index 0000000..e25b9b9
--- /dev/null
+++ b/game/rooms/test_kitchen/meat.png.import
@@ -0,0 +1,40 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://658831x6b335"
+path="res://.godot/imported/meat.png-32034b8696612ea9d4a8dc15b76555f2.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://game/rooms/test_kitchen/meat.png"
+dest_files=["res://.godot/imported/meat.png-32034b8696612ea9d4a8dc15b76555f2.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
diff --git a/game/rooms/test_kitchen/meat_cut.png b/game/rooms/test_kitchen/meat_cut.png
new file mode 100644
index 0000000..d3987bb
--- /dev/null
+++ b/game/rooms/test_kitchen/meat_cut.png
Binary files differ
diff --git a/game/rooms/test_kitchen/meat_cut.png.import b/game/rooms/test_kitchen/meat_cut.png.import
new file mode 100644
index 0000000..0057fe7
--- /dev/null
+++ b/game/rooms/test_kitchen/meat_cut.png.import
@@ -0,0 +1,40 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://6tdftr3g7sjb"
+path="res://.godot/imported/meat_cut.png-e1cc44bead08b202eb55266dba12725e.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://game/rooms/test_kitchen/meat_cut.png"
+dest_files=["res://.godot/imported/meat_cut.png-e1cc44bead08b202eb55266dba12725e.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
diff --git a/game/rooms/test_kitchen/room_kitchen.esc b/game/rooms/test_kitchen/room_kitchen.esc
index c50f2fd..ce097c1 100644
--- a/game/rooms/test_kitchen/room_kitchen.esc
+++ b/game/rooms/test_kitchen/room_kitchen.esc
@@ -2,3 +2,10 @@
if ESC_LAST_SCENE == "test":
teleport($weener, $kitchen_exit)
set_angle($weener, 270)
+ global kitchen_fridge_open = false
+ if kitchen_fridge_open:
+ set_state($fridge, "open")
+ set_active($meat, true)
+ else:
+ set_state($fridge, "closed")
+ set_active($meat, false)
diff --git a/game/rooms/test_kitchen/test_kitchen.tscn b/game/rooms/test_kitchen/test_kitchen.tscn
index 688c363..6dfccac 100644
--- a/game/rooms/test_kitchen/test_kitchen.tscn
+++ b/game/rooms/test_kitchen/test_kitchen.tscn
@@ -7,12 +7,68 @@
[ext_resource type="Script" uid="uid://5pbcieq7gpdo" path="res://addons/escoria-core/game/core-scripts/esc_terrain.gd" id="5_xa5sy"]
[ext_resource type="Script" uid="uid://btt4cprco53ec" path="res://addons/escoria-core/game/core-scripts/esc_exit.gd" id="6_u6s3a"]
[ext_resource type="Script" uid="uid://chu4bvqgwxuts" path="res://addons/escoria-core/game/core-scripts/esc_interaction_location.gd" id="7_t26dx"]
+[ext_resource type="Script" uid="uid://dshelmw7y44qg" path="res://addons/escoria-core/game/core-scripts/esc_item.gd" id="8_xa5sy"]
+[ext_resource type="Script" uid="uid://bxc3dll30x8tl" path="res://addons/escoria-core/game/core-scripts/resources/esc_directionangle.gd" id="9_dt0hh"]
+[ext_resource type="Script" uid="uid://clixil1u5exq7" path="res://addons/escoria-core/game/core-scripts/resources/esc_animationname.gd" id="10_fe81x"]
+[ext_resource type="Script" uid="uid://sksvt0n8gle2" path="res://addons/escoria-core/game/core-scripts/resources/esc_animationresource.gd" id="11_amw8i"]
+[ext_resource type="Texture2D" uid="uid://cdh3khodwfocq" path="res://game/rooms/test_kitchen/fridge_open.png" id="12_amw8i"]
+[ext_resource type="Texture2D" uid="uid://658831x6b335" path="res://game/rooms/test_kitchen/meat.png" id="12_fe81x"]
+[ext_resource type="PackedScene" uid="uid://6wgnuvvjsloy" path="res://game/items/inventory/knife.tscn" id="14_12u0m"]
+[ext_resource type="Texture2D" uid="uid://6tdftr3g7sjb" path="res://game/rooms/test_kitchen/meat_cut.png" id="14_fcxgd"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_kamrl"]
vertices = PackedVector2Array(1910, 739.21094, 1910, 924.2969, 1732.2266, 896.4375, 1764.6719, 710.34375, 854.9922, 1028.0234, 819.60156, 981.1328, 809.28906, 895.1875, 919.78125, 897.10156, 1560.5391, 1031.9766, 1072.9063, 626.2969, 1131.9063, 571.97656, 1752.8125, 570.02344)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(4, 5, 6, 7, 8), PackedInt32Array(8, 7, 9, 10, 11, 3, 2)])
outlines = Array[PackedVector2Array]([PackedVector2Array(1920, 731, 1774, 702, 1762, 560, 1128, 562, 1065, 620, 914, 887, 798, 885, 810, 985, 850, 1038, 1564, 1042, 1735, 907, 1920, 936)])
+[sub_resource type="Resource" id="Resource_12u0m"]
+script = ExtResource("11_amw8i")
+metadata/_custom_type_script = "uid://sksvt0n8gle2"
+
+[sub_resource type="RectangleShape2D" id="RectangleShape2D_kamrl"]
+size = Vector2(251, 390)
+
+[sub_resource type="SpriteFrames" id="SpriteFrames_12u0m"]
+animations = [{
+"frames": [{
+"duration": 1.0,
+"texture": null
+}],
+"loop": true,
+"name": &"closed",
+"speed": 5.0
+}, {
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("12_amw8i")
+}],
+"loop": true,
+"name": &"open",
+"speed": 5.0
+}]
+
+[sub_resource type="SpriteFrames" id="SpriteFrames_adbso"]
+animations = [{
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("14_fcxgd")
+}],
+"loop": true,
+"name": &"cut",
+"speed": 5.0
+}, {
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("12_fe81x")
+}],
+"loop": true,
+"name": &"default",
+"speed": 5.0
+}]
+
+[sub_resource type="CircleShape2D" id="CircleShape2D_fe81x"]
+radius = 148.05405
+
[node name="TestKitchen" type="Node2D" unique_id=205166811]
script = ExtResource("1_j38dn")
global_id = "kitchen"
@@ -51,3 +107,63 @@ position = Vector2(-92, -12)
script = ExtResource("7_t26dx")
global_id = "kitchen_exit"
metadata/_custom_type_script = "uid://chu4bvqgwxuts"
+
+[node name="Fridge" type="Area2D" parent="." unique_id=116880532]
+process_mode = 1
+position = Vector2(1625, 366)
+script = ExtResource("8_xa5sy")
+global_id = "fridge"
+esc_script = "res://game/rooms/test_kitchen/fridge.esc"
+tooltip_name = "Fridge"
+default_action = "use"
+combine_when_selected_action_is_in = PackedStringArray()
+animations = SubResource("Resource_12u0m")
+animations = SubResource("Resource_12u0m")
+metadata/_custom_type_script = "uid://dshelmw7y44qg"
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Fridge" unique_id=1589893458]
+position = Vector2(-3.5, 7)
+shape = SubResource("RectangleShape2D_kamrl")
+
+[node name="ESCInteractionLocation" type="Marker2D" parent="Fridge" unique_id=1860551682]
+position = Vector2(9, 240)
+script = ExtResource("7_t26dx")
+metadata/_custom_type_script = "uid://chu4bvqgwxuts"
+
+[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Fridge" unique_id=882120147]
+position = Vector2(-11.000012, 11.00001)
+scale = Vector2(0.82963437, 0.88099635)
+sprite_frames = SubResource("SpriteFrames_12u0m")
+animation = &"closed"
+
+[node name="Meat" type="Area2D" parent="." unique_id=1963782541]
+process_mode = 1
+position = Vector2(1629, 404)
+script = ExtResource("8_xa5sy")
+global_id = "meat"
+esc_script = "res://game/rooms/test_kitchen/meat.esc"
+tooltip_name = "Meat"
+combine_when_selected_action_is_in = PackedStringArray()
+inventory_texture = ExtResource("12_fe81x")
+inventory_texture_hovered = ExtResource("12_fe81x")
+metadata/_custom_type_script = "uid://dshelmw7y44qg"
+
+[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Meat" unique_id=1970847390]
+sprite_frames = SubResource("SpriteFrames_adbso")
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Meat" unique_id=1975018981]
+shape = SubResource("CircleShape2D_fe81x")
+
+[node name="ESCInteractionLocation" type="Marker2D" parent="Meat" unique_id=19889791]
+position = Vector2(6, 198)
+script = ExtResource("7_t26dx")
+metadata/_custom_type_script = "uid://chu4bvqgwxuts"
+
+[node name="Knife" parent="." unique_id=1205297015 instance=ExtResource("14_12u0m")]
+position = Vector2(899, 539)
+default_action = "pickup"
+
+[node name="ESCInteractionLocation" type="Marker2D" parent="Knife" unique_id=680222161]
+position = Vector2(158, 195)
+script = ExtResource("7_t26dx")
+metadata/_custom_type_script = "uid://chu4bvqgwxuts"