hero-mark-2/objects/collectibles/shard.tscn

98 lines
2.8 KiB
Text

[gd_scene load_steps=11 format=2]
[ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=1]
[ext_resource path="res://graphics/collectibles/shard.png" type="Texture" id=2]
[ext_resource path="res://objects/collectibles/shard.gd" type="Script" id=3]
[ext_resource path="res://graphics/particles/shine.png" type="Texture" id=4]
[ext_resource path="res://scripts/randomize_particle_start.gd" type="Script" id=5]
[sub_resource type="ShaderMaterial" id=7]
shader = ExtResource( 1 )
shader_param/border_color = Color( 0, 0, 0, 1 )
shader_param/border_corners = false
[sub_resource type="Curve" id=17]
_data = [ Vector2( 0, 0 ), 0.0, 0.100639, 0, 0, Vector2( 0.158257, 1 ), 7.51724, -6.83592, 0, 0, Vector2( 0.31422, 0 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="RectangleShape2D" id=6]
extents = Vector2( 3.5, 3.5 )
[sub_resource type="Animation" id=18]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 1 ) ]
}
[sub_resource type="Animation" id=8]
resource_name = "glow"
length = 0.8
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.4, 0.8 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Color( 0.766, 0.73, 1, 1 ), Color( 1.1, 1.1, 1.1, 1 ), Color( 0.766, 0.73, 1, 1 ) ]
}
[node name="Shard" type="Node2D"]
pause_mode = 2
script = ExtResource( 3 )
[node name="Empy" type="Sprite" parent="."]
modulate = Color( 0, 0, 0, 1 )
material = SubResource( 7 )
position = Vector2( 5, 3 )
texture = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
light_mask = 0
material = SubResource( 7 )
position = Vector2( 5, 3 )
texture = ExtResource( 2 )
[node name="Sparkles" type="CPUParticles2D" parent="Sprite"]
light_mask = 0
position = Vector2( -0.5, -0.5 )
amount = 1
lifetime = 2.0
texture = ExtResource( 4 )
emission_shape = 2
emission_rect_extents = Vector2( 5, 5 )
gravity = Vector2( 0, 0 )
angular_velocity = 720.0
angular_velocity_random = 1.0
angle = 720.0
angle_random = 1.0
scale_amount_curve = SubResource( 17 )
color = Color( 0.72549, 0.956863, 1, 1 )
script = ExtResource( 5 )
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 128
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
visible = false
position = Vector2( 4.5, 2.5 )
shape = SubResource( 6 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/RESET = SubResource( 18 )
anims/glow = SubResource( 8 )
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]