hero-mark-2/objects/collectibles/key.tscn
2024-07-14 01:46:14 -04:00

109 lines
3.1 KiB
Text

[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 )
shader_param/border_color = Color( 0, 0, 0, 1 )
shader_param/border_corners = false
[sub_resource type="AtlasTexture" id=14]
atlas = ExtResource( 3 )
region = Rect2( 0, 0, 10, 10 )
[sub_resource type="AtlasTexture" id=15]
atlas = ExtResource( 3 )
region = Rect2( 10, 0, 10, 10 )
[sub_resource type="AtlasTexture" id=16]
atlas = ExtResource( 3 )
region = Rect2( 20, 0, 10, 10 )
[sub_resource type="AtlasTexture" id=8]
atlas = ExtResource( 2 )
region = Rect2( 0, 0, 8, 9 )
[sub_resource type="AtlasTexture" id=9]
atlas = ExtResource( 2 )
region = Rect2( 8, 0, 8, 9 )
[sub_resource type="AtlasTexture" id=10]
atlas = ExtResource( 2 )
region = Rect2( 16, 0, 8, 9 )
[sub_resource type="AtlasTexture" id=11]
atlas = ExtResource( 2 )
region = Rect2( 24, 0, 8, 9 )
[sub_resource type="AtlasTexture" id=12]
atlas = ExtResource( 2 )
region = Rect2( 32, 0, 8, 9 )
[sub_resource type="AtlasTexture" id=13]
atlas = ExtResource( 2 )
region = Rect2( 40, 0, 8, 9 )
[sub_resource type="SpriteFrames" id=5]
animations = [ {
"frames": [ SubResource( 14 ), SubResource( 15 ), SubResource( 16 ) ],
"loop": true,
"name": "30385",
"speed": 5.0
}, {
"frames": [ SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 11 ), SubResource( 13 ), SubResource( 9 ) ],
"loop": true,
"name": "key",
"speed": 7.0
} ]
[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.158257, 1 ), 7.51724, -6.83592, 0, 0, Vector2( 0.31422, 0 ), 0.0, 0.0, 0, 0 ]
[node name="Key" type="Node2D" groups=["gold"]]
pause_mode = 2
script = ExtResource( 4 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
material = SubResource( 7 )
position = Vector2( 0, -1 )
frames = SubResource( 5 )
animation = "key"
playing = true
centered = false
[node name="Area2D" type="Area2D" parent="."]
visible = false
collision_layer = 0
collision_mask = 128
monitorable = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( 4, 4 )
shape = SubResource( 6 )
[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( 0.996078, 1, 0.760784, 1 )
script = ExtResource( 6 )
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]