40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://knrcnoedxvm6"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://bonrls3iuhdqb" path="res://_props/_prefabs/player_trigger_volumn.tscn" id="1_mvp6g"]
|
|
[ext_resource type="PackedScene" uid="uid://cmjwk4gr1nfns" path="res://_props/_prefabs/rock.tscn" id="1_nh18e"]
|
|
[ext_resource type="Script" uid="uid://b8yl6l3tlam86" path="res://_props/trigger_fall_rock/trigger_fall_rock.gd" id="1_vv0hj"]
|
|
[ext_resource type="Texture2D" uid="uid://c673bap4b12fx" path="res://icon.svg" id="2_xilvp"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vv0hj"]
|
|
size = Vector2(52, 51)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mvp6g"]
|
|
size = Vector2(52, 108.5)
|
|
|
|
[node name="TriggerFallRock" type="Node2D"]
|
|
script = ExtResource("1_vv0hj")
|
|
|
|
[node name="rock" parent="." instance=ExtResource("1_nh18e")]
|
|
position = Vector2(0, -82)
|
|
falling_gravity = 100.0
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="rock"]
|
|
scale = Vector2(0.4, 0.4)
|
|
texture = ExtResource("2_xilvp")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="rock"]
|
|
position = Vector2(0, -0.5)
|
|
shape = SubResource("RectangleShape2D_vv0hj")
|
|
debug_color = Color(0.99629647, 0, 0.19810504, 0.41960785)
|
|
|
|
[node name="PlayerTriggerVolumn" parent="." instance=ExtResource("1_mvp6g")]
|
|
debug_print = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerTriggerVolumn"]
|
|
position = Vector2(0, -54)
|
|
shape = SubResource("RectangleShape2D_mvp6g")
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 0.8
|
|
one_shot = true
|