ld52_olive_harvest/vehicles/Postie.tscn

111 lines
3.8 KiB
Plaintext

[gd_scene load_steps=17 format=2]
[ext_resource path="res://vehicles/postie_backramp.png" type="Texture" id=1]
[ext_resource path="res://vehicles/postie_back.png" type="Texture" id=2]
[ext_resource path="res://vehicles/postie_fore.png" type="Texture" id=3]
[ext_resource path="res://vehicles/postie_backclosed.png" type="Texture" id=4]
[ext_resource path="res://vehicles/Postie.gd" type="Script" id=5]
[ext_resource path="res://sfx/drive_up.wav" type="AudioStream" id=6]
[ext_resource path="res://sfx/backgate_open.wav" type="AudioStream" id=7]
[ext_resource path="res://sfx/backgate_closed.wav" type="AudioStream" id=8]
[ext_resource path="res://sfx/engine_start_and_drive.wav" type="AudioStream" id=9]
[ext_resource path="res://fonts/Gidolinya-Regular-SubsetOHLD52.otf" type="DynamicFontData" id=10]
[ext_resource path="res://ui/coin.png" type="Texture" id=11]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 28.9012, 1.69078 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 3, 47.5 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 92.5, 1.5 )
[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 89, 47 )
[sub_resource type="DynamicFont" id=5]
size = 24
font_data = ExtResource( 10 )
[node name="Postie" type="Node2D"]
script = ExtResource( 5 )
[node name="N" type="StaticBody2D" parent="."]
position = Vector2( 160, 1 )
[node name="Back" type="Sprite" parent="N"]
texture = ExtResource( 2 )
[node name="ToSell" type="Node2D" parent="N/Back"]
[node name="BackRamp" type="Sprite" parent="N"]
texture = ExtResource( 1 )
[node name="StaticBody2D" type="StaticBody2D" parent="N/BackRamp"]
[node name="BackRampShape" type="CollisionShape2D" parent="N/BackRamp/StaticBody2D"]
position = Vector2( -137.814, 92.987 )
rotation = -0.914553
shape = SubResource( 1 )
[node name="BackGate" type="Sprite" parent="N"]
texture = ExtResource( 4 )
[node name="StaticBody2D" type="StaticBody2D" parent="N/BackGate"]
[node name="BackGateShape" type="CollisionShape2D" parent="N/BackGate/StaticBody2D"]
position = Vector2( -116, 20.5 )
shape = SubResource( 3 )
[node name="Front" type="Sprite" parent="N"]
z_index = 1
texture = ExtResource( 3 )
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="N"]
polygon = PoolVector2Array( -118, 63, 68, 65, 68, -83, 116, -83, 159, -8, 159, 93, 147, 93, 139, 113, 112, 113, 100, 96, -45, 95, -54, 111, -80, 111, -90, 96, -118, 96 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="N"]
position = Vector2( -26.5, -29.5 )
shape = SubResource( 2 )
[node name="Tween" type="Tween" parent="."]
[node name="BackgateOpenSfx" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 7 )
[node name="DriveInSfx" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 6 )
[node name="BackgateClosedSfx" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 8 )
[node name="DriveOffSfx" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 9 )
[node name="SaleArea" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 16
[node name="CollisionShape2D" type="CollisionShape2D" parent="SaleArea"]
position = Vector2( 136, 21 )
shape = SubResource( 4 )
[node name="SaleValueLabel" type="Label" parent="."]
margin_left = 43.0
margin_top = -82.0
margin_right = 204.0
margin_bottom = -25.0
custom_colors/font_color = Color( 0, 0.192157, 0.0196078, 1 )
custom_fonts/font = SubResource( 5 )
text = "Total Sale Value:
0"
[node name="Coin" type="Sprite" parent="."]
position = Vector2( 51, -39 )
texture = ExtResource( 11 )
[connection signal="tween_all_completed" from="Tween" to="." method="_on_Tween_tween_all_completed"]
[connection signal="body_entered" from="SaleArea" to="." method="_on_SaleArea_body_entered"]
[connection signal="body_exited" from="SaleArea" to="." method="_on_SaleArea_body_exited"]