166 lines
4.3 KiB
Plaintext
166 lines
4.3 KiB
Plaintext
[gd_scene load_steps=13 format=3 uid="uid://nm5keea43u56"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://dth47lmb44qk8" path="res://assets/items.png" id="1_lffao"]
|
|
[ext_resource type="Script" path="res://scripts/items/coin.gd" id="1_shvw0"]
|
|
[ext_resource type="AudioStream" uid="uid://dkfpfaqxyvcew" path="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Coin.wav" id="3_ioelm"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7xy4l"]
|
|
atlas = ExtResource("1_lffao")
|
|
region = Rect2(124, 94, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_d5dm6"]
|
|
atlas = ExtResource("1_lffao")
|
|
region = Rect2(154, 94, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_y8lq8"]
|
|
atlas = ExtResource("1_lffao")
|
|
region = Rect2(184, 94, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8a022"]
|
|
atlas = ExtResource("1_lffao")
|
|
region = Rect2(214, 94, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_4nuhx"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_7xy4l")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_d5dm6")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_y8lq8")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_8a022")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 10.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_vpcnk"]
|
|
radius = 7.0
|
|
|
|
[sub_resource type="Animation" id="Animation_km6nk"]
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("AnimatedSprite2D:visible")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("CollisionShape2D:disabled")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = false
|
|
tracks/2/path = NodePath("PickupSound:playing")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_ota62"]
|
|
resource_name = "pickup"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("AnimatedSprite2D:visible")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("CollisionShape2D:disabled")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("PickupSound:playing")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/3/type = "method"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath(".")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(1),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"queue_free"
|
|
}]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_whr3u"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_km6nk"),
|
|
"pickup": SubResource("Animation_ota62")
|
|
}
|
|
|
|
[node name="Coin" type="Area2D"]
|
|
collision_mask = 2
|
|
script = ExtResource("1_shvw0")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(8, -8)
|
|
sprite_frames = SubResource("SpriteFrames_4nuhx")
|
|
animation = &"idle"
|
|
autoplay = "idle"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(8, -8)
|
|
shape = SubResource("CircleShape2D_vpcnk")
|
|
|
|
[node name="PickupSound" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("3_ioelm")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_whr3u")
|
|
}
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|