You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pDash/scenes/gravity_switch.tscn

111 lines
3.1 KiB

[gd_scene load_steps=12 format=3 uid="uid://cjpwcih4ro8gu"]
[ext_resource type="Script" path="res://scripts/switch.gd" id="1_523fa"]
[ext_resource type="Texture2D" uid="uid://h6nywllbx7in" path="res://icons/gravity_switch.png" id="2_wf4my"]
[sub_resource type="Curve" id="Curve_wyj6h"]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.133178, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_silse"]
curve = SubResource("Curve_wyj6h")
[sub_resource type="Curve" id="Curve_vvvck"]
min_value = -200.0
max_value = 200.0
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.05, 32), 0.0, 0.0, 0, 0, Vector2(0.2, -5), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_qurcg"]
curve = SubResource("Curve_vvvck")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_axyq0"]
particle_flag_disable_z = true
inherit_velocity_ratio = -0.51
spread = 180.0
initial_velocity_min = 80.0
initial_velocity_max = 160.0
gravity = Vector3(0, 0, 0)
linear_accel_max = 45.0
linear_accel_curve = SubResource("CurveTexture_qurcg")
scale_min = 8.0
scale_max = 8.0
alpha_curve = SubResource("CurveTexture_silse")
[sub_resource type="CircleShape2D" id="CircleShape2D_yx6cf"]
radius = 15.0
[sub_resource type="Animation" id="Animation_fvmq8"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("CollisionShape2D/TextureRect:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
[sub_resource type="Animation" id="Animation_a34jr"]
resource_name = "spin"
length = 5.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("CollisionShape2D:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 5),
"transitions": PackedFloat32Array(0.0853777, 0.0877996),
"update": 0,
"values": [0.0, 12.5664]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_0riwv"]
_data = {
"RESET": SubResource("Animation_fvmq8"),
"spin": SubResource("Animation_a34jr")
}
[node name="GravitySwitch01" type="Area2D"]
position = Vector2(361, 15)
collision_layer = 0
linear_damp = 1.02
angular_damp = 1.205
script = ExtResource("1_523fa")
type = "gravity"
metadata/_edit_group_ = true
[node name="GPUParticles2D" type="GPUParticles2D" parent="."]
process_material = SubResource("ParticleProcessMaterial_axyq0")
randomness = 1.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2(4, 4)
shape = SubResource("CircleShape2D_yx6cf")
[node name="TextureRect" type="TextureRect" parent="CollisionShape2D"]
modulate = Color(1, 1, 1, 0.196078)
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -8.0
offset_top = -8.0
offset_right = 8.0
offset_bottom = 8.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("2_wf4my")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_0riwv")
}