hero-mark-2/objects/collectibles/star.tscn
2022-12-07 02:00:47 -05:00

67 lines
1.9 KiB
Text

[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=1]
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=2]
atlas = ExtResource( 4 )
region = Rect2( 0, 0, 11, 11 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 4 )
region = Rect2( 11, 0, 11, 11 )
[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 4 )
region = Rect2( 22, 0, 11, 11 )
[sub_resource type="AtlasTexture" id=5]
atlas = ExtResource( 4 )
region = Rect2( 33, 0, 11, 11 )
[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 4 )
region = Rect2( 44, 0, 11, 11 )
[sub_resource type="AtlasTexture" id=7]
atlas = ExtResource( 4 )
region = Rect2( 55, 0, 11, 11 )
[sub_resource type="SpriteFrames" id=8]
animations = [ {
"frames": [ SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ) ],
"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( 1 )
position = Vector2( -1, -3 )
frames = SubResource( 8 )
frame = 3
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"]