[gd_scene load_steps=14 format=2] [ext_resource path="res://graphics/collectibles/pal_star_red.png" type="Texture" id=1] [ext_resource path="res://scripts/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] [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 ) [node name="Star" type="Node2D"] script = ExtResource( 3 ) [node name="AnimatedSprite" type="AnimatedSprite" parent="."] material = SubResource( 10 ) position = Vector2( -1, -3 ) frames = SubResource( 8 ) frame = 2 playing = true centered = false [node name="Area2D" type="Area2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] visible = false position = Vector2( 4, 4 ) shape = SubResource( 9 ) [connection signal="area_entered" from="Area2D" to="." method="_on_Area2D_area_entered"]