SPARKLES OMG

This commit is contained in:
Haze Weathers 2023-11-29 20:11:23 -05:00
parent 3fe77e0052
commit 24e25d6757
7 changed files with 111 additions and 5 deletions

View file

@ -1,8 +1,10 @@
[gd_scene load_steps=7 format=2]
[gd_scene load_steps=10 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 )
@ -29,6 +31,9 @@ tracks/0/keys = {
"values": [ Color( 0.329412, 0.360784, 0.847059, 1 ), Color( 1, 1, 1, 1 ), Color( 0.329412, 0.360784, 0.847059, 1 ) ]
}
[sub_resource type="Curve" id=9]
_data = [ Vector2( 0, 0 ), 0.0, 0.100639, 0, 0, Vector2( 0.25, 1 ), 7.51724, -6.83592, 0, 0, Vector2( 0.5, 0 ), 0.0, 0.0, 0, 0 ]
[node name="Shard" type="Node2D"]
pause_mode = 2
script = ExtResource( 3 )
@ -44,10 +49,27 @@ 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/glow = SubResource( 8 )
[node name="Sparkles" type="CPUParticles2D" parent="."]
position = Vector2( 4.5, 2.5 )
amount = 1
lifetime = 1.5
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( 9 )
color = Color( 0.72549, 0.956863, 1, 1 )
script = ExtResource( 5 )
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]