managems/entities/gem.tscn

45 lines
1.1 KiB
Plaintext

[gd_scene load_steps=5 format=2]
[ext_resource path="res://entities/gem.gd" type="Script" id=1]
[ext_resource path="res://entities/gems.svg" type="Texture" id=2]
[ext_resource path="res://entities/matched-particle.svg" type="Texture" id=3]
[sub_resource type="AtlasTexture" id=1]
flags = 4
atlas = ExtResource( 2 )
region = Rect2( 0, 0, 1024, 512 )
[node name="Gem" type="Control"]
margin_right = 64.0
margin_bottom = 64.0
rect_min_size = Vector2( 64, 64 )
script = ExtResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
scale = Vector2( 0.5, 0.5 )
texture = SubResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 0, 0, 128, 128 )
[node name="ParticlesMatch" type="CPUParticles2D" parent="."]
position = Vector2( 32, 32 )
z_index = 1
emitting = false
amount = 25
one_shot = true
explosiveness = 0.5
texture = ExtResource( 3 )
emission_shape = 1
emission_sphere_radius = 32.0
angular_velocity = 90.0
angular_velocity_random = 0.5
scale_amount = 0.5
scale_amount_random = 0.5
[node name="ParticlesTimer" type="Timer" parent="."]
wait_time = 5.0
one_shot = true
[connection signal="timeout" from="ParticlesTimer" to="." method="queue_free"]