95 lines
3 KiB
Text
95 lines
3 KiB
Text
[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
|
|
shader = ExtResource( 2 )
|
|
shader_param/border_color = Color( 0, 0, 0, 1 )
|
|
shader_param/border_corners = false
|
|
shader_param/palette = ExtResource( 1 )
|
|
|
|
[sub_resource type="AtlasTexture" id=11]
|
|
atlas = ExtResource( 4 )
|
|
region = Rect2( 0, 0, 11, 11 )
|
|
|
|
[sub_resource type="AtlasTexture" id=12]
|
|
atlas = ExtResource( 4 )
|
|
region = Rect2( 11, 0, 11, 11 )
|
|
|
|
[sub_resource type="AtlasTexture" id=13]
|
|
atlas = ExtResource( 4 )
|
|
region = Rect2( 22, 0, 11, 11 )
|
|
|
|
[sub_resource type="AtlasTexture" id=14]
|
|
atlas = ExtResource( 4 )
|
|
region = Rect2( 33, 0, 11, 11 )
|
|
|
|
[sub_resource type="AtlasTexture" id=15]
|
|
atlas = ExtResource( 4 )
|
|
region = Rect2( 44, 0, 11, 11 )
|
|
|
|
[sub_resource type="AtlasTexture" id=16]
|
|
atlas = ExtResource( 4 )
|
|
region = Rect2( 55, 0, 11, 11 )
|
|
|
|
[sub_resource type="SpriteFrames" id=8]
|
|
animations = [ {
|
|
"frames": [ SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ), SubResource( 16 ) ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 8.0
|
|
} ]
|
|
|
|
[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.158257, 1 ), 7.51724, -6.83592, 0, 0, Vector2( 0.31422, 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="."]
|
|
light_mask = 0
|
|
material = SubResource( 10 )
|
|
position = Vector2( -1, -3 )
|
|
frames = SubResource( 8 )
|
|
frame = 1
|
|
playing = true
|
|
centered = false
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 128
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
visible = false
|
|
position = Vector2( 4, 4 )
|
|
shape = SubResource( 9 )
|
|
|
|
[node name="Sparkles" type="CPUParticles2D" parent="."]
|
|
light_mask = 0
|
|
position = Vector2( 4.5, 4 )
|
|
amount = 1
|
|
lifetime = 2.0
|
|
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"]
|