ld52_olive_harvest/scenery/facilities/Press.tscn

125 lines
4.5 KiB
Plaintext

[gd_scene load_steps=15 format=2]
[ext_resource path="res://items/bottle_oliveoil.png" type="Texture" id=1]
[ext_resource path="res://items/bottle_oliveoil_bottle.png" type="Texture" id=2]
[ext_resource path="res://scenery/facilities/press_front.png" type="Texture" id=3]
[ext_resource path="res://items/bottle_oliveoil_label.png" type="Texture" id=4]
[ext_resource path="res://scenery/facilities/press_back.png" type="Texture" id=5]
[ext_resource path="res://items/bottle_oliveoil_oil.png" type="Texture" id=6]
[ext_resource path="res://items/bottle_oliveoil_lid.png" type="Texture" id=7]
[ext_resource path="res://scenery/facilities/Press.gd" type="Script" id=8]
[ext_resource path="res://sfx/spray.wav" type="AudioStream" id=9]
[ext_resource path="res://sfx/squish1.wav" type="AudioStream" id=10]
[ext_resource path="res://scenery/facilities/Press_BottleArea.gd" type="Script" id=11]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 29.5128, 2.79108 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 104, 10 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 104, 16.5 )
[node name="Press" type="StaticBody2D"]
position = Vector2( 0, -64 )
script = ExtResource( 8 )
[node name="PressB" type="Sprite" parent="."]
position = Vector2( 0, -7 )
z_index = -1
texture = ExtResource( 5 )
[node name="PressF" type="Sprite" parent="."]
position = Vector2( 0, -7 )
texture = ExtResource( 3 )
[node name="FillingBottle" type="Node2D" parent="."]
position = Vector2( -96.6, 1.7 )
[node name="BottleOliveoilOil" type="Sprite" parent="FillingBottle"]
position = Vector2( -16, 25 )
texture = ExtResource( 6 )
centered = false
offset = Vector2( 0, -48 )
region_enabled = true
region_rect = Rect2( 0, 0, 32, 48 )
[node name="BottleOliveoilBottle" type="Sprite" parent="FillingBottle"]
texture = ExtResource( 2 )
[node name="BottleOliveoilLid" type="Sprite" parent="FillingBottle"]
texture = ExtResource( 7 )
[node name="BottleOliveoilLabel" type="Sprite" parent="FillingBottle"]
texture = ExtResource( 4 )
[node name="BottleOliveoil" type="Sprite" parent="."]
position = Vector2( -65.6, 31.7 )
texture = ExtResource( 1 )
[node name="BottleOliveoil2" type="Sprite" parent="."]
position = Vector2( -36.6, 31.7 )
texture = ExtResource( 1 )
[node name="BottleOliveoil3" type="Sprite" parent="."]
position = Vector2( -8.60001, 31.7 )
texture = ExtResource( 1 )
[node name="BottleOliveoil4" type="Sprite" parent="."]
position = Vector2( 18.4, 31.7 )
texture = ExtResource( 1 )
[node name="BottleOliveoil5" type="Sprite" parent="."]
position = Vector2( 45.4, 31.7 )
texture = ExtResource( 1 )
[node name="BottleOliveoil6" type="Sprite" parent="."]
position = Vector2( 72.4, 31.7 )
texture = ExtResource( 1 )
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
position = Vector2( -128.6, -134.3 )
polygon = PoolVector2Array( 208, 27, 160, 7, 106, 7, 60, 24, 60, 48, 84, 32, 120, 26, 158, 26, 190, 39, 208, 56 )
[node name="CollisionPolygon2D2" type="CollisionPolygon2D" parent="."]
position = Vector2( -128.6, -134.3 )
polygon = PoolVector2Array( 60, 47, 60, 136, 90, 151, 122, 155, 157, 155, 185, 146, 208, 129, 208, 125, 184, 143, 158, 151, 123, 151, 92, 147, 62, 134 )
[node name="CollisionShape2D2" type="CollisionShape2D" parent="."]
position = Vector2( 101.4, -0.300003 )
rotation = 0.628319
shape = SubResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -10.6, 38.7 )
shape = SubResource( 2 )
[node name="Tween" type="Tween" parent="."]
[node name="CollectionArea" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 8
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="CollectionArea"]
polygon = PoolVector2Array( 68, -78, 67, -24, 5, -3, -63, -22, -62, -84, 5, -103 )
[node name="SquishSfx" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 10 )
[node name="SpraySfx" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 9 )
[node name="BottleArea" type="StaticBody2D" parent="." groups=["interactable"]]
collision_layer = 2
collision_mask = 0
script = ExtResource( 11 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="BottleArea"]
position = Vector2( -10, 44.5 )
shape = SubResource( 3 )
[connection signal="tween_all_completed" from="Tween" to="." method="_on_Tween_tween_all_completed"]
[connection signal="body_entered" from="CollectionArea" to="." method="_on_CollectionArea_body_entered"]
[connection signal="body_exited" from="CollectionArea" to="." method="_on_CollectionArea_body_exited"]