mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
78 lines
2.5 KiB
Plaintext
78 lines
2.5 KiB
Plaintext
[gd_scene load_steps=12 format=3 uid="uid://b8dalotrk2oci"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://btt618edhifoj" path="res://Assets/Sprites/Blocks/TurnBlock.png" id="1_fh7wk"]
|
|
[ext_resource type="Script" uid="uid://7evxxqgv6e3j" path="res://Scripts/Classes/Blocks/SpinningTurnBlock.gd" id="2_aiilm"]
|
|
[ext_resource type="Script" uid="uid://caq1qiwmy0mox" path="res://Scripts/Parts/BetterAnimatedSprite.gd" id="3_aiilm"]
|
|
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="4_pd7sm"]
|
|
[ext_resource type="JSON" path="res://Assets/Sprites/Blocks/TurnBlock.json" id="5_gaxhp"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8yy4r"]
|
|
atlas = ExtResource("1_fh7wk")
|
|
region = Rect2(0, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_pm24u"]
|
|
atlas = ExtResource("1_fh7wk")
|
|
region = Rect2(16, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_keywi"]
|
|
atlas = ExtResource("1_fh7wk")
|
|
region = Rect2(32, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2j2lx"]
|
|
atlas = ExtResource("1_fh7wk")
|
|
region = Rect2(48, 0, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_rksv1"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_8yy4r")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_pm24u")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_keywi")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_2j2lx")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 10.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_fh7wk"]
|
|
size = Vector2(16, 16)
|
|
|
|
[node name="SpinningTurnBlock" type="Node2D"]
|
|
z_index = -1
|
|
script = ExtResource("2_aiilm")
|
|
|
|
[node name="Sprite" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_rksv1")
|
|
autoplay = "default"
|
|
frame = 1
|
|
script = ExtResource("3_aiilm")
|
|
do_offset = false
|
|
metadata/_custom_type_script = "uid://caq1qiwmy0mox"
|
|
|
|
[node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
|
|
script = ExtResource("4_pd7sm")
|
|
node_to_affect = NodePath("..")
|
|
property_name = "sprite_frames"
|
|
resource_json = ExtResource("5_gaxhp")
|
|
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 5.0
|
|
one_shot = true
|
|
autostart = true
|
|
|
|
[node name="PlayerDetectionArea" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerDetectionArea"]
|
|
shape = SubResource("RectangleShape2D_fh7wk")
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="on_timeout"]
|