142 lines
3.8 KiB
Plaintext
142 lines
3.8 KiB
Plaintext
[gd_scene load_steps=11 format=3 uid="uid://b4dp88urmm7g8"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/items/mushroom.gd" id="1_qo5bm"]
|
|
[ext_resource type="Texture2D" uid="uid://dth47lmb44qk8" path="res://assets/items.png" id="1_tsecc"]
|
|
[ext_resource type="AudioStream" uid="uid://dr8w21sjl0a7" path="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Powerup.wav" id="3_ad473"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_i8bax"]
|
|
atlas = ExtResource("1_tsecc")
|
|
region = Rect2(184, 34, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_s232e"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_i8bax")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_ubrn0"]
|
|
radius = 8.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_drsli"]
|
|
radius = 9.0
|
|
|
|
[sub_resource type="Animation" id="Animation_2r0ts"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("pickupSound:playing")
|
|
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("AnimatedSprite2D:visible")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_fqoi0"]
|
|
resource_name = "pickup"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("pickupSound:playing")
|
|
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("AnimatedSprite2D:visible")
|
|
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 = "method"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath(".")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(1),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"queue_free"
|
|
}]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_gubc7"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_2r0ts"),
|
|
"pickup": SubResource("Animation_fqoi0")
|
|
}
|
|
|
|
[node name="mushroom" type="RigidBody2D"]
|
|
collision_layer = 8
|
|
lock_rotation = true
|
|
script = ExtResource("1_qo5bm")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
z_index = 20
|
|
position = Vector2(8, -8)
|
|
sprite_frames = SubResource("SpriteFrames_s232e")
|
|
autoplay = "default"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(8, -8)
|
|
shape = SubResource("CircleShape2D_ubrn0")
|
|
|
|
[node name="RayCastLeft" type="RayCast2D" parent="."]
|
|
position = Vector2(8, -8)
|
|
target_position = Vector2(-9, 0)
|
|
|
|
[node name="RayCastRight" type="RayCast2D" parent="."]
|
|
position = Vector2(8, -8)
|
|
target_position = Vector2(9, 0)
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
collision_layer = 8
|
|
collision_mask = 2
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
position = Vector2(8, -8)
|
|
shape = SubResource("CircleShape2D_drsli")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_gubc7")
|
|
}
|
|
|
|
[node name="pickupSound" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("3_ad473")
|
|
|
|
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
|