add sparkles to cave ores

This commit is contained in:
Haze Weathers 2023-12-24 22:58:39 -05:00
parent e9583ecada
commit 1215099f4d

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=32 format=2] [gd_scene load_steps=35 format=2]
[ext_resource path="res://objects/player/player.tscn" type="PackedScene" id=1] [ext_resource path="res://objects/player/player.tscn" type="PackedScene" id=1]
[ext_resource path="res://tilesets/t_cave.tres" type="TileSet" id=2] [ext_resource path="res://tilesets/t_cave.tres" type="TileSet" id=2]
@ -30,6 +30,11 @@
[ext_resource path="res://objects/lore/cave/the_scrumps_tongue.tscn" type="PackedScene" id=28] [ext_resource path="res://objects/lore/cave/the_scrumps_tongue.tscn" type="PackedScene" id=28]
[ext_resource path="res://objects/lore/cave/blue_ray_cavern.tscn" type="PackedScene" id=29] [ext_resource path="res://objects/lore/cave/blue_ray_cavern.tscn" type="PackedScene" id=29]
[ext_resource path="res://objects/lore/mountain/rolling_fiend.tscn" type="PackedScene" id=30] [ext_resource path="res://objects/lore/mountain/rolling_fiend.tscn" type="PackedScene" id=30]
[ext_resource path="res://scripts/randomize_particle_start.gd" type="Script" id=31]
[ext_resource path="res://graphics/particles/shine.png" type="Texture" id=32]
[sub_resource type="Curve" id=2]
_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=1] [sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 4, 96 ) extents = Vector2( 4, 96 )
@ -485,6 +490,636 @@ position = Vector2( 720, 72 )
position = Vector2( 752, 112 ) position = Vector2( 752, 112 )
color = 4 color = 4
[node name="Sparkles" type="Node2D" parent="."]
[node name="Green" type="Node2D" parent="Sparkles"]
[node name="Sparkles" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 108, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles2" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 148, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles3" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 76, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles4" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 292, 180 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles5" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 300, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles6" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 292, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles7" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 308, 172 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles8" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 316, 172 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles9" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 340, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles10" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 388, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles11" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 396, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles12" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 404, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles13" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 468, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles14" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 588, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles15" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 596, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles16" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 652, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles17" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 660, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles18" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 724, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles19" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 652, 148 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles20" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 644, 148 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles21" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 292, 68 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles22" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 284, 68 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Sparkles23" type="CPUParticles2D" parent="Sparkles/Green"]
position = Vector2( 244, 76 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 0.709804, 1, 0.74902, 1 )
script = ExtResource( 31 )
[node name="Red" type="Node2D" parent="Sparkles"]
[node name="Sparkles24" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 156, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="Sparkles25" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 212, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="Sparkles26" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 260, 68 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="Sparkles27" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 252, 124 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="Sparkles28" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 372, 108 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="Sparkles29" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 340, 172 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="Sparkles30" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 364, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="Sparkles31" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 436, 180 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="Sparkles32" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 476, 180 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="Sparkles33" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 500, 68 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="Sparkles34" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 548, 180 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="Sparkles35" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 628, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="Sparkles36" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 676, 180 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="Sparkles37" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 748, 188 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="Sparkles38" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 716, 148 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="Sparkles39" type="CPUParticles2D" parent="Sparkles/Red"]
position = Vector2( 692, 140 )
amount = 1
lifetime = 2.0
texture = ExtResource( 32 )
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( 2 )
color = Color( 1, 0.741176, 0.709804, 1 )
script = ExtResource( 31 )
[node name="StaticBody2D" type="StaticBody2D" parent="."] [node name="StaticBody2D" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"] [node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]