Files
Super-Mario-Bros.-Remastere…/Scenes/Prefabs/Entities/Objects/SidewaysPlatform.tscn
2025-09-13 16:30:32 +01:00

106 lines
3.5 KiB
Plaintext

[gd_scene load_steps=11 format=3 uid="uid://c8m8455b6ikrn"]
[ext_resource type="Texture2D" uid="uid://bk0p52ttwojml" path="res://Assets/Sprites/Tilesets/Platform.png" id="1_mnf3m"]
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="2_lvvvw"]
[ext_resource type="JSON" path="res://Assets/Sprites/Tilesets/Platform.json" id="3_7kqku"]
[ext_resource type="Script" uid="uid://cpwloakvp672a" path="res://Scripts/Parts/EditorVisibleNode.gd" id="4_kqk52"]
[ext_resource type="Texture2D" uid="uid://dpdrrkqtcedgm" path="res://Assets/Sprites/Tilesets/DottedLine.png" id="5_b0jr6"]
[ext_resource type="Script" uid="uid://d0mqkvopasu8k" path="res://Scripts/Classes/Components/SecondQuestReplaceComponent.gd" id="6_b0jr6"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mq7me"]
size = Vector2(48, 8)
[sub_resource type="Animation" id="Animation_lvvvw"]
resource_name = "Move"
length = 2.0
loop_mode = 2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("AnimatableBody2D:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(-48, 0)]
}
[sub_resource type="Animation" id="Animation_7kqku"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("AnimatableBody2D:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kqk52"]
_data = {
&"Move": SubResource("Animation_lvvvw"),
&"RESET": SubResource("Animation_7kqku")
}
[node name="SidewaysPlatform" type="Node2D"]
[node name="AnimatableBody2D" type="AnimatableBody2D" parent="."]
[node name="Sprite" type="NinePatchRect" parent="AnimatableBody2D"]
offset_left = -24.0
offset_right = 24.0
offset_bottom = 8.0
texture = ExtResource("1_mnf3m")
patch_margin_left = 8
patch_margin_right = 8
axis_stretch_horizontal = 1
[node name="ResourceSetter" type="Node" parent="AnimatableBody2D/Sprite" node_paths=PackedStringArray("node_to_affect")]
script = ExtResource("2_lvvvw")
node_to_affect = NodePath("..")
property_name = "texture"
mode = 1
resource_json = ExtResource("3_7kqku")
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
[node name="Collision" type="CollisionShape2D" parent="AnimatableBody2D"]
position = Vector2(0, 4)
shape = SubResource("RectangleShape2D_mq7me")
[node name="VisibleOnScreenEnabler2D" type="VisibleOnScreenEnabler2D" parent="AnimatableBody2D"]
self_modulate = Color(1, 1, 1, 0)
position = Vector2(0, 4)
scale = Vector2(3.2, 1.2)
enable_node_path = NodePath("../..")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_kqk52")
}
autoplay = "Move"
[node name="LevelEditorVisibleNode" type="Node2D" parent="."]
visible = false
visibility_layer = 2
script = ExtResource("4_kqk52")
metadata/_custom_type_script = "uid://cpwloakvp672a"
[node name="Line2D" type="Line2D" parent="LevelEditorVisibleNode"]
texture_repeat = 2
position = Vector2(0, 4)
points = PackedVector2Array(-48, 0, 0, 0)
width = 1.0
texture = ExtResource("5_b0jr6")
texture_mode = 1
[node name="SecondQuestReplacer" type="Node" parent="."]
script = ExtResource("6_b0jr6")
new_scene = "uid://b3or4h5ke6lni"
metadata/_custom_type_script = "uid://d0mqkvopasu8k"