|
| 1 | +[gd_scene load_steps=7 format=2] |
| 2 | + |
| 3 | +[ext_resource path="res://02-metaball/ball.material" type="Material" id=1] |
| 4 | +[ext_resource path="res://02-metaball/effect.gdshader" type="Shader" id=2] |
| 5 | + |
| 6 | +[sub_resource type="Curve" id=1] |
| 7 | +_data = [ Vector2( 0, 0.663076 ), 0.0, 0.0, 0, 0, Vector2( 0.386139, 0.717621 ), 0.0, 0.0, 0, 0, Vector2( 0.732673, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ] |
| 8 | + |
| 9 | +[sub_resource type="Animation" id=4] |
| 10 | +resource_name = "1" |
| 11 | +length = 2.0 |
| 12 | +loop = true |
| 13 | +tracks/0/type = "bezier" |
| 14 | +tracks/0/path = NodePath("ball3:rect_position:x") |
| 15 | +tracks/0/interp = 1 |
| 16 | +tracks/0/loop_wrap = true |
| 17 | +tracks/0/imported = false |
| 18 | +tracks/0/enabled = true |
| 19 | +tracks/0/keys = { |
| 20 | +"points": PoolRealArray( 138, -0.25, 0, 0.25, 0, 180, -0.25, 0, 0.25, 0, 138, -0.25, 0, 0.25, 0 ), |
| 21 | +"times": PoolRealArray( 0, 1, 2 ) |
| 22 | +} |
| 23 | +tracks/1/type = "bezier" |
| 24 | +tracks/1/path = NodePath("ball3:rect_position:y") |
| 25 | +tracks/1/interp = 1 |
| 26 | +tracks/1/loop_wrap = true |
| 27 | +tracks/1/imported = false |
| 28 | +tracks/1/enabled = true |
| 29 | +tracks/1/keys = { |
| 30 | +"points": PoolRealArray( 76, -0.25, 0, 0.25, 0, 74, -0.25, 0, 0.25, 0, 76, -0.25, 0, 0.25, 0 ), |
| 31 | +"times": PoolRealArray( 0, 1, 2 ) |
| 32 | +} |
| 33 | + |
| 34 | +[sub_resource type="Animation" id=5] |
| 35 | +length = 0.001 |
| 36 | +tracks/0/type = "bezier" |
| 37 | +tracks/0/path = NodePath("ball3:rect_position:x") |
| 38 | +tracks/0/interp = 1 |
| 39 | +tracks/0/loop_wrap = true |
| 40 | +tracks/0/imported = false |
| 41 | +tracks/0/enabled = true |
| 42 | +tracks/0/keys = { |
| 43 | +"points": PoolRealArray( 180, -0.25, 0, 0.25, 0 ), |
| 44 | +"times": PoolRealArray( 0 ) |
| 45 | +} |
| 46 | +tracks/1/type = "bezier" |
| 47 | +tracks/1/path = NodePath("ball3:rect_position:y") |
| 48 | +tracks/1/interp = 1 |
| 49 | +tracks/1/loop_wrap = true |
| 50 | +tracks/1/imported = false |
| 51 | +tracks/1/enabled = true |
| 52 | +tracks/1/keys = { |
| 53 | +"points": PoolRealArray( 81, -0.25, 0, 0.25, 0 ), |
| 54 | +"times": PoolRealArray( 0 ) |
| 55 | +} |
| 56 | + |
| 57 | +[sub_resource type="ShaderMaterial" id=3] |
| 58 | +shader = ExtResource( 2 ) |
| 59 | + |
| 60 | +[node name="Node2D" type="Node2D"] |
| 61 | + |
| 62 | +[node name="scene" type="Node2D" parent="."] |
| 63 | + |
| 64 | +[node name="ColorRect" type="ColorRect" parent="scene"] |
| 65 | +anchor_right = 1.0 |
| 66 | +anchor_bottom = 1.0 |
| 67 | +margin_right = 800.0 |
| 68 | +margin_bottom = 600.0 |
| 69 | +color = Color( 0, 0, 0, 1 ) |
| 70 | + |
| 71 | +[node name="ball1" type="ColorRect" parent="scene"] |
| 72 | +material = ExtResource( 1 ) |
| 73 | +margin_left = 99.0 |
| 74 | +margin_top = 75.0 |
| 75 | +margin_right = 179.0 |
| 76 | +margin_bottom = 155.0 |
| 77 | + |
| 78 | +[node name="ball3" type="ColorRect" parent="scene"] |
| 79 | +material = ExtResource( 1 ) |
| 80 | +margin_left = 180.0 |
| 81 | +margin_top = 81.0 |
| 82 | +margin_right = 260.002 |
| 83 | +margin_bottom = 161.001 |
| 84 | + |
| 85 | +[node name="ball2" type="ColorRect" parent="scene"] |
| 86 | +visible = false |
| 87 | +material = ExtResource( 1 ) |
| 88 | +margin_left = 460.0 |
| 89 | +margin_top = 214.0 |
| 90 | +margin_right = 540.0 |
| 91 | +margin_bottom = 294.0 |
| 92 | + |
| 93 | +[node name="CPUParticles2D" type="CPUParticles2D" parent="scene/ball2"] |
| 94 | +material = ExtResource( 1 ) |
| 95 | +position = Vector2( 40, 40 ) |
| 96 | +amount = 100 |
| 97 | +lifetime = 3.0 |
| 98 | +explosiveness = 0.66 |
| 99 | +lifetime_randomness = 0.59 |
| 100 | +spread = 180.0 |
| 101 | +gravity = Vector2( 0, 0 ) |
| 102 | +initial_velocity = 45.87 |
| 103 | +scale_amount = 30.0 |
| 104 | +scale_amount_random = 0.62 |
| 105 | +scale_amount_curve = SubResource( 1 ) |
| 106 | + |
| 107 | +[node name="AnimationPlayer" type="AnimationPlayer" parent="scene"] |
| 108 | +autoplay = "1" |
| 109 | +anims/1 = SubResource( 4 ) |
| 110 | +anims/RESET = SubResource( 5 ) |
| 111 | + |
| 112 | +[node name="effect" type="Node2D" parent="."] |
| 113 | +visible = false |
| 114 | + |
| 115 | +[node name="ColorRect" type="ColorRect" parent="effect"] |
| 116 | +material = SubResource( 3 ) |
| 117 | +margin_right = 800.0 |
| 118 | +margin_bottom = 600.0 |
0 commit comments