shirogamis-maze/src/Objects/Spring.tscn
2021-05-27 01:44:39 -04:00

50 lines
1.4 KiB
Plaintext

[gd_scene load_steps=6 format=2]
[ext_resource path="res://src/Objects/Spring.gd" type="Script" id=1]
[ext_resource path="res://assets/audio/sfx/bounce.wav" type="AudioStream" id=2]
[ext_resource path="res://assets/art/spring/spring.png" type="Texture" id=3]
[sub_resource type="Animation" id=1]
resource_name = "spring"
length = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 2, 2, 2, 1, 0 ]
}
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 7.45267, 9.94172 )
[node name="Spring" type="Area2D"]
monitorable = false
collision_layer = 0
script = ExtResource( 1 )
strength = 800
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 0, -24 )
texture = ExtResource( 3 )
hframes = 3
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
playback_speed = 2.0
anims/spring = SubResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
position = Vector2( -0.405827, -9.24662 )
shape = SubResource( 2 )
[node name="Bounce" type="AudioStreamPlayer" parent="CollisionShape2D"]
stream = ExtResource( 2 )
volume_db = -15.0
[connection signal="body_entered" from="." to="." method="_on_Spring_body_entered"]