mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-21 23:18:11 +00:00
Refactored Small Crouching and Big Crouching
- Added new variables to `CharacterInfo.json` - Made it so `BlockCollision` area position is attached to top of `SmallCollision` and `BigCollision`
This commit is contained in:
@@ -470,10 +470,6 @@ func _physics_process(_delta: float) -> void:
|
||||
print(Global.level_editor.entity_tiles)
|
||||
"
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_fqdtv"]
|
||||
resource_local_to_scene = true
|
||||
size = Vector2(4, 4.5)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_d7xah"]
|
||||
resource_local_to_scene = true
|
||||
size = Vector2(4, 6.75)
|
||||
@@ -1048,19 +1044,12 @@ mode = 1
|
||||
resource_json = ExtResource("10_xy8gq")
|
||||
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
||||
|
||||
[node name="SmallCrouchCollision" type="CollisionPolygon2D" parent="." groups=["SmallCollisions"]]
|
||||
visible = false
|
||||
polygon = PackedVector2Array(4, -2, 4, -8, 1, -11, -1, -11, -4, -8, -4, -2, -2, 0, 2, 0)
|
||||
one_way_collision = true
|
||||
script = ExtResource("35_nbkfn")
|
||||
|
||||
[node name="SmallCollision" type="CollisionPolygon2D" parent="." groups=["SmallCollisions"]]
|
||||
polygon = PackedVector2Array(4, -2, 4, -8, 1, -14, -1, -14, -4, -8, -4, -2, -2, 0, 2, 0)
|
||||
one_way_collision = true
|
||||
script = ExtResource("35_nbkfn")
|
||||
|
||||
[node name="BigCollision" type="CollisionPolygon2D" parent="." groups=["BigCollisions"]]
|
||||
visible = false
|
||||
polygon = PackedVector2Array(-4, -2, -2, 0, 2, 0, 4, -2, 4, -23, 1, -28, -1, -28, -4, -23)
|
||||
one_way_collision = true
|
||||
script = ExtResource("35_nbkfn")
|
||||
@@ -1106,32 +1095,22 @@ hit_from_inside = true
|
||||
collision_layer = 0
|
||||
collision_mask = 4
|
||||
|
||||
[node name="SmallCrouchShape" type="CollisionShape2D" parent="BlockCollision" node_paths=PackedStringArray("link") groups=["SmallCollisions"]]
|
||||
visible = false
|
||||
position = Vector2(0, -12.75)
|
||||
shape = SubResource("RectangleShape2D_fqdtv")
|
||||
debug_color = Color(1, 0, 0, 0.419608)
|
||||
script = ExtResource("21_jl70t")
|
||||
offset = Vector2(0, 10.5)
|
||||
link = NodePath("../../SmallCrouchCollision")
|
||||
|
||||
[node name="SmallShape" type="CollisionShape2D" parent="BlockCollision" node_paths=PackedStringArray("link") groups=["SmallCollisions"]]
|
||||
visible = false
|
||||
position = Vector2(0, -16.875)
|
||||
position = Vector2(0, -3.375)
|
||||
shape = SubResource("RectangleShape2D_d7xah")
|
||||
debug_color = Color(1, 0, 0, 0.419608)
|
||||
script = ExtResource("21_jl70t")
|
||||
offset = Vector2(0, 13.5)
|
||||
link = NodePath("../../SmallCollision")
|
||||
metadata/scalable = false
|
||||
|
||||
[node name="BigShape" type="CollisionShape2D" parent="BlockCollision" node_paths=PackedStringArray("link") groups=["BigCollisions"]]
|
||||
position = Vector2(0, -32)
|
||||
position = Vector2(0, -6)
|
||||
shape = SubResource("RectangleShape2D_34tqy")
|
||||
disabled = true
|
||||
debug_color = Color(1, 0, 0, 0.419608)
|
||||
script = ExtResource("21_jl70t")
|
||||
offset = Vector2(0, 26)
|
||||
link = NodePath("../../BigCollision")
|
||||
metadata/scalable = false
|
||||
|
||||
[node name="TimerWarn" type="AudioStreamPlayer" parent="."]
|
||||
process_mode = 3
|
||||
|
Reference in New Issue
Block a user