mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-24 00:10:52 +00:00
added the game
This commit is contained in:
42
Scenes/Prefabs/Entities/Objects/OnOffVerticalPlatform.tscn
Normal file
42
Scenes/Prefabs/Entities/Objects/OnOffVerticalPlatform.tscn
Normal file
@@ -0,0 +1,42 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://t5vu4gl0ra8x"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://c6x7gv2lqeu1x" path="res://Scenes/Prefabs/Entities/Objects/VerticalPlatform.tscn" id="1_nwvxx"]
|
||||
[ext_resource type="Texture2D" uid="uid://dfpbjnd1o5tig" path="res://Assets/Sprites/Tilesets/OnOffPlatform.png" id="2_iy32g"]
|
||||
[ext_resource type="JSON" path="res://Assets/Sprites/Tilesets/OnOffPlatform.json" id="3_50hv7"]
|
||||
[ext_resource type="Script" uid="uid://cb0spbe0l8mof" path="res://Scripts/Classes/Components/AnimationPauser.gd" id="3_iy32g"]
|
||||
[ext_resource type="Script" uid="uid://364rywt44hy6" path="res://Scripts/Classes/UI/PackSprite.gd" id="4_0jnxm"]
|
||||
|
||||
[node name="OnOffSidewaysPlatform" instance=ExtResource("1_nwvxx")]
|
||||
|
||||
[node name="Sprite" parent="AnimatableBody2D" index="0"]
|
||||
offset_left = -20.0
|
||||
offset_right = 20.0
|
||||
texture = ExtResource("2_iy32g")
|
||||
region_rect = Rect2(0, 0, 24, 8)
|
||||
patch_margin_left = 8
|
||||
patch_margin_right = 8
|
||||
|
||||
[node name="ResourceSetter" parent="AnimatableBody2D/Sprite" index="0"]
|
||||
resource_json = ExtResource("3_50hv7")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="AnimatableBody2D/Sprite" index="1"]
|
||||
position = Vector2(16, 0)
|
||||
texture = ExtResource("2_iy32g")
|
||||
centered = false
|
||||
hframes = 2
|
||||
region_enabled = true
|
||||
region_rect = Rect2(24, 0, 16, 8)
|
||||
script = ExtResource("4_0jnxm")
|
||||
metadata/_custom_type_script = "uid://364rywt44hy6"
|
||||
|
||||
[node name="Collision" parent="AnimatableBody2D" index="1"]
|
||||
visible = true
|
||||
|
||||
[node name="AnimationPauser" type="Node" parent="." index="4" node_paths=PackedStringArray("animation_player") groups=["BooBlocks"]]
|
||||
script = ExtResource("3_iy32g")
|
||||
animation_player = NodePath("../AnimationPlayer")
|
||||
paused = true
|
||||
metadata/_custom_type_script = "uid://cb0spbe0l8mof"
|
||||
|
||||
[connection signal="just_paused" from="AnimationPauser" to="AnimatableBody2D/Sprite/Sprite2D" method="set_frame" binds= [0]]
|
||||
[connection signal="resumed" from="AnimationPauser" to="AnimatableBody2D/Sprite/Sprite2D" method="set_frame" binds= [1]]
|
||||
Reference in New Issue
Block a user