63 lines
2.1 KiB
Plaintext
63 lines
2.1 KiB
Plaintext
[gd_scene load_steps=9 format=3 uid="uid://43ujxqfabnuq"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://ddl5f3lldrp2n" path="res://assets/enemies.png" id="1_7p65b"]
|
|
[ext_resource type="Script" path="res://scripts/enemies/bowser_jr_fire.gd" id="1_tnrjq"]
|
|
[ext_resource type="AudioStream" uid="uid://csx5laixrg5dh" path="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Enemy Fire.wav" id="3_i70fm"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4dnoh"]
|
|
atlas = ExtResource("1_7p65b")
|
|
region = Rect2(101, 253, 24, 8)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7tb0p"]
|
|
atlas = ExtResource("1_7p65b")
|
|
region = Rect2(131, 253, 24, 8)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_kv1f5"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_4dnoh")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_7tb0p")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 10.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_axybf"]
|
|
size = Vector2(24, 8)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mxod3"]
|
|
size = Vector2(24, 8)
|
|
|
|
[node name="BowserJRFire" type="Area2D"]
|
|
collision_layer = 128
|
|
collision_mask = 2
|
|
script = ExtResource("1_tnrjq")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(-12, 0)
|
|
sprite_frames = SubResource("SpriteFrames_kv1f5")
|
|
autoplay = "default"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(-12, 0)
|
|
shape = SubResource("RectangleShape2D_axybf")
|
|
|
|
[node name="die" type="Area2D" parent="."]
|
|
collision_layer = 2147483648
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="die"]
|
|
position = Vector2(-12, 0)
|
|
shape = SubResource("RectangleShape2D_mxod3")
|
|
|
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("3_i70fm")
|
|
autoplay = true
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered_player"]
|
|
[connection signal="body_entered" from="die" to="." method="_on_die_body_entered"]
|
|
[connection signal="finished" from="AudioStreamPlayer2D" to="." method="_on_audio_stream_player_2d_finished"]
|