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,9 +1,11 @@
[gd_scene load_steps=17 format=2]
[gd_scene load_steps=20 format=2]
[ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=1]
[ext_resource path="res://graphics/collectibles/key.png" type="Texture" id=2]
[ext_resource path="res://graphics/collectibles/30385.png" type="Texture" id=3]
[ext_resource path="res://objects/collectibles/key.gd" type="Script" 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=7]
shader = ExtResource( 1 )
@ -62,6 +64,9 @@ animations = [ {
[sub_resource type="RectangleShape2D" id=6]
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="Key" type="Node2D" groups=["gold"]]
pause_mode = 2
script = ExtResource( 4 )
@ -71,7 +76,7 @@ material = SubResource( 7 )
position = Vector2( 0, -1 )
frames = SubResource( 5 )
animation = "key"
frame = 2
frame = 4
playing = true
centered = false
@ -85,4 +90,20 @@ monitorable = false
position = Vector2( 4, 4 )
shape = SubResource( 6 )
[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( 0.996078, 1, 0.760784, 1 )
script = ExtResource( 6 )
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]