SPARKLES OMG
This commit is contained in:
parent
3fe77e0052
commit
24e25d6757
7 changed files with 111 additions and 5 deletions
|
@ -1,9 +1,11 @@
|
|||
[gd_scene load_steps=14 format=2]
|
||||
[gd_scene load_steps=17 format=2]
|
||||
|
||||
[ext_resource path="res://graphics/collectibles/pal_star_red.png" type="Texture" id=1]
|
||||
[ext_resource path="res://shaders/recolor_border.shader" type="Shader" id=2]
|
||||
[ext_resource path="res://objects/collectibles/star.gd" type="Script" id=3]
|
||||
[ext_resource path="res://graphics/collectibles/star.png" type="Texture" id=4]
|
||||
[ext_resource path="res://graphics/particles/shine.png" type="Texture" id=5]
|
||||
[ext_resource path="res://scripts/randomize_particle_start.gd" type="Script" id=6]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=10]
|
||||
resource_local_to_scene = true
|
||||
|
@ -47,15 +49,19 @@ animations = [ {
|
|||
[sub_resource type="RectangleShape2D" id=9]
|
||||
extents = Vector2( 4, 4 )
|
||||
|
||||
[sub_resource type="Curve" id=17]
|
||||
_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="Star" type="Node2D"]
|
||||
pause_mode = 2
|
||||
script = ExtResource( 3 )
|
||||
particle_colors = [ Color( 1, 0.741176, 0.709804, 1 ), Color( 1, 0.968627, 0.709804, 1 ), Color( 0.709804, 1, 0.74902, 1 ), Color( 0.709804, 0.752941, 1, 1 ), Color( 1, 0.709804, 0.984314, 1 ) ]
|
||||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
material = SubResource( 10 )
|
||||
position = Vector2( -1, -3 )
|
||||
frames = SubResource( 8 )
|
||||
frame = 1
|
||||
frame = 3
|
||||
playing = true
|
||||
centered = false
|
||||
|
||||
|
@ -68,4 +74,20 @@ visible = false
|
|||
position = Vector2( 4, 4 )
|
||||
shape = SubResource( 9 )
|
||||
|
||||
[node name="Sparkles" type="CPUParticles2D" parent="."]
|
||||
position = Vector2( 4.5, 4 )
|
||||
amount = 1
|
||||
lifetime = 1.5
|
||||
texture = ExtResource( 5 )
|
||||
emission_shape = 2
|
||||
emission_rect_extents = Vector2( 4, 4 )
|
||||
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( 1, 0.741176, 0.709804, 1 )
|
||||
script = ExtResource( 6 )
|
||||
|
||||
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue