|
@@ -1,21 +1,21 @@
|
|
|
-[gd_scene load_steps=10 format=2]
|
|
|
+[gd_scene load_steps=11 format=3 uid="uid://6uilf6rad880"]
|
|
|
|
|
|
-[ext_resource path="res://coin/coin.gd" type="Script" id=1]
|
|
|
-[ext_resource path="res://coin/coin.png" type="Texture2D" id=2]
|
|
|
-[ext_resource path="res://audio/sound_coin.wav" type="AudioStream" id=3]
|
|
|
-[ext_resource path="res://player/bullet.png" type="Texture2D" id=4]
|
|
|
+[ext_resource type="Script" path="res://coin/coin.gd" id="1"]
|
|
|
+[ext_resource type="Texture2D" uid="uid://bio1crwbvrmc2" path="res://coin/coin.png" id="2"]
|
|
|
+[ext_resource type="AudioStream" uid="uid://cy7lxrapbqu1r" path="res://audio/sound_coin.wav" id="3"]
|
|
|
+[ext_resource type="Texture2D" uid="uid://7sv64orewgmb" path="res://player/bullet.png" id="4"]
|
|
|
|
|
|
-[sub_resource type="Animation" id=1]
|
|
|
+[sub_resource type="Animation" id="1"]
|
|
|
resource_name = "spin"
|
|
|
length = 1.5
|
|
|
-loop = true
|
|
|
+loop_mode = 1
|
|
|
step = 0.25
|
|
|
tracks/0/type = "value"
|
|
|
+tracks/0/imported = false
|
|
|
+tracks/0/enabled = true
|
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
|
tracks/0/interp = 1
|
|
|
tracks/0/loop_wrap = true
|
|
|
-tracks/0/imported = false
|
|
|
-tracks/0/enabled = true
|
|
|
tracks/0/keys = {
|
|
|
"times": PackedFloat32Array(0, 0.25, 0.5, 0.75, 1, 1.25, 1.5),
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1),
|
|
@@ -23,15 +23,15 @@ tracks/0/keys = {
|
|
|
"values": [0, 1, 2, 3, 2, 1, 0]
|
|
|
}
|
|
|
|
|
|
-[sub_resource type="Animation" id=2]
|
|
|
+[sub_resource type="Animation" id="2"]
|
|
|
length = 8.0
|
|
|
step = 0.0
|
|
|
tracks/0/type = "value"
|
|
|
+tracks/0/imported = false
|
|
|
+tracks/0/enabled = true
|
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
|
tracks/0/interp = 1
|
|
|
tracks/0/loop_wrap = true
|
|
|
-tracks/0/imported = false
|
|
|
-tracks/0/enabled = true
|
|
|
tracks/0/keys = {
|
|
|
"times": PackedFloat32Array(0),
|
|
|
"transitions": PackedFloat32Array(1),
|
|
@@ -39,11 +39,11 @@ tracks/0/keys = {
|
|
|
"values": [0]
|
|
|
}
|
|
|
tracks/1/type = "value"
|
|
|
+tracks/1/imported = false
|
|
|
+tracks/1/enabled = true
|
|
|
tracks/1/path = NodePath("GPUParticles3D:emitting")
|
|
|
tracks/1/interp = 1
|
|
|
tracks/1/loop_wrap = true
|
|
|
-tracks/1/imported = false
|
|
|
-tracks/1/enabled = true
|
|
|
tracks/1/keys = {
|
|
|
"times": PackedFloat32Array(0),
|
|
|
"transitions": PackedFloat32Array(1),
|
|
@@ -51,25 +51,25 @@ tracks/1/keys = {
|
|
|
"values": [true]
|
|
|
}
|
|
|
tracks/2/type = "method"
|
|
|
+tracks/2/imported = false
|
|
|
+tracks/2/enabled = true
|
|
|
tracks/2/path = NodePath(".")
|
|
|
tracks/2/interp = 1
|
|
|
tracks/2/loop_wrap = true
|
|
|
-tracks/2/imported = false
|
|
|
-tracks/2/enabled = true
|
|
|
tracks/2/keys = {
|
|
|
"times": PackedFloat32Array(2.7),
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
"values": [{
|
|
|
"args": [],
|
|
|
-"method": "queue_free"
|
|
|
+"method": &"queue_free"
|
|
|
}]
|
|
|
}
|
|
|
tracks/3/type = "value"
|
|
|
+tracks/3/imported = false
|
|
|
+tracks/3/enabled = true
|
|
|
tracks/3/path = NodePath("Sound:playing")
|
|
|
tracks/3/interp = 1
|
|
|
tracks/3/loop_wrap = true
|
|
|
-tracks/3/imported = false
|
|
|
-tracks/3/enabled = true
|
|
|
tracks/3/keys = {
|
|
|
"times": PackedFloat32Array(0),
|
|
|
"transitions": PackedFloat32Array(1),
|
|
@@ -77,11 +77,11 @@ tracks/3/keys = {
|
|
|
"values": [true]
|
|
|
}
|
|
|
tracks/4/type = "value"
|
|
|
+tracks/4/imported = false
|
|
|
+tracks/4/enabled = true
|
|
|
tracks/4/path = NodePath("Sprite2D:self_modulate")
|
|
|
tracks/4/interp = 1
|
|
|
tracks/4/loop_wrap = true
|
|
|
-tracks/4/imported = false
|
|
|
-tracks/4/enabled = true
|
|
|
tracks/4/keys = {
|
|
|
"times": PackedFloat32Array(0, 0.41),
|
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
@@ -89,49 +89,52 @@ tracks/4/keys = {
|
|
|
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
|
|
|
}
|
|
|
|
|
|
-[sub_resource type="CircleShape2D" id=3]
|
|
|
+[sub_resource type="AnimationLibrary" id="AnimationLibrary_4atuj"]
|
|
|
+_data = {
|
|
|
+"spin": SubResource("1"),
|
|
|
+"taken": SubResource("2")
|
|
|
+}
|
|
|
+
|
|
|
+[sub_resource type="CircleShape2D" id="3"]
|
|
|
radius = 5.0
|
|
|
|
|
|
-[sub_resource type="CanvasItemMaterial" id=4]
|
|
|
+[sub_resource type="CanvasItemMaterial" id="4"]
|
|
|
blend_mode = 1
|
|
|
|
|
|
-[sub_resource type="Curve" id=5]
|
|
|
+[sub_resource type="Curve" id="5"]
|
|
|
|
|
|
[node name="Coin" type="Area2D"]
|
|
|
-script = ExtResource( 1 )
|
|
|
+script = ExtResource("1")
|
|
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
|
-texture = ExtResource( 2 )
|
|
|
+texture = ExtResource("2")
|
|
|
hframes = 4
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
|
autoplay = "spin"
|
|
|
-anims/spin = SubResource( 1 )
|
|
|
-anims/taken = SubResource( 2 )
|
|
|
+libraries = {
|
|
|
+"": SubResource("AnimationLibrary_4atuj")
|
|
|
+}
|
|
|
|
|
|
[node name="Collision" type="CollisionShape2D" parent="."]
|
|
|
-shape = SubResource( 3 )
|
|
|
+shape = SubResource("3")
|
|
|
|
|
|
[node name="Sound" type="AudioStreamPlayer2D" parent="."]
|
|
|
-stream = ExtResource( 3 )
|
|
|
+stream = ExtResource("3")
|
|
|
|
|
|
[node name="GPUParticles3D" type="CPUParticles2D" parent="."]
|
|
|
modulate = Color(0.596863, 0.638745, 1, 1)
|
|
|
-material = SubResource( 4 )
|
|
|
+material = SubResource("4")
|
|
|
emitting = false
|
|
|
one_shot = true
|
|
|
explosiveness = 0.7
|
|
|
-texture = ExtResource( 4 )
|
|
|
+texture = ExtResource("4")
|
|
|
emission_shape = 1
|
|
|
emission_sphere_radius = 20.0
|
|
|
gravity = Vector2(0, 0)
|
|
|
-initial_velocity = 1.0
|
|
|
-angular_velocity = 0.0191222
|
|
|
-scale_amount = 0.3
|
|
|
-scale_amount_curve = SubResource( 5 )
|
|
|
+scale_amount_curve = SubResource("5")
|
|
|
|
|
|
[node name="Enabler" type="VisibleOnScreenEnabler2D" parent="."]
|
|
|
rect = Rect2(-5, -5, 10, 10)
|
|
|
-pause_particles = false
|
|
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_enter"]
|