mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
Renamed CrouchShape
to SmallCrouchShape
Easier to search for on VSC
This commit is contained in:
@@ -1043,7 +1043,7 @@ mode = 1
|
|||||||
resource_json = ExtResource("10_xy8gq")
|
resource_json = ExtResource("10_xy8gq")
|
||||||
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
||||||
|
|
||||||
[node name="CrouchCollision" type="CollisionPolygon2D" parent="." groups=["SmallCollisions"]]
|
[node name="SmallCrouchCollision" type="CollisionPolygon2D" parent="." groups=["SmallCollisions"]]
|
||||||
visible = false
|
visible = false
|
||||||
polygon = PackedVector2Array(4, -2, 4, -8, 1, -11, -1, -11, -4, -8, -4, -2, -2, 0, 2, 0)
|
polygon = PackedVector2Array(4, -2, 4, -8, 1, -11, -1, -11, -4, -8, -4, -2, -2, 0, 2, 0)
|
||||||
one_way_collision = true
|
one_way_collision = true
|
||||||
@@ -1100,14 +1100,14 @@ hit_from_inside = true
|
|||||||
collision_layer = 0
|
collision_layer = 0
|
||||||
collision_mask = 4
|
collision_mask = 4
|
||||||
|
|
||||||
[node name="CrouchShape" type="CollisionShape2D" parent="BlockCollision" node_paths=PackedStringArray("link") groups=["SmallCollisions"]]
|
[node name="SmallCrouchShape" type="CollisionShape2D" parent="BlockCollision" node_paths=PackedStringArray("link") groups=["SmallCollisions"]]
|
||||||
visible = false
|
visible = false
|
||||||
position = Vector2(0, -12.75)
|
position = Vector2(0, -12.75)
|
||||||
shape = SubResource("RectangleShape2D_fqdtv")
|
shape = SubResource("RectangleShape2D_fqdtv")
|
||||||
debug_color = Color(1, 0, 0, 0.419608)
|
debug_color = Color(1, 0, 0, 0.419608)
|
||||||
script = ExtResource("21_jl70t")
|
script = ExtResource("21_jl70t")
|
||||||
offset = Vector2(0, 10.5)
|
offset = Vector2(0, 10.5)
|
||||||
link = NodePath("../../CrouchCollision")
|
link = NodePath("../../SmallCrouchCollision")
|
||||||
|
|
||||||
[node name="SmallShape" type="CollisionShape2D" parent="BlockCollision" node_paths=PackedStringArray("link") groups=["SmallCollisions"]]
|
[node name="SmallShape" type="CollisionShape2D" parent="BlockCollision" node_paths=PackedStringArray("link") groups=["SmallCollisions"]]
|
||||||
visible = false
|
visible = false
|
||||||
|
@@ -440,7 +440,7 @@ func handle_power_up_states(delta) -> void:
|
|||||||
var big_crouch := power_state.hitbox_size == "Big" and crouching
|
var big_crouch := power_state.hitbox_size == "Big" and crouching
|
||||||
for i in get_tree().get_nodes_in_group("SmallCollisions"):
|
for i in get_tree().get_nodes_in_group("SmallCollisions"):
|
||||||
if i.owner == self:
|
if i.owner == self:
|
||||||
if i.name.begins_with("Crouch"):
|
if i.name.begins_with("SmallCrouch"):
|
||||||
i.set_deferred("disabled", power_state.hitbox_size == "Small" and !crouching)
|
i.set_deferred("disabled", power_state.hitbox_size == "Small" and !crouching)
|
||||||
else:
|
else:
|
||||||
i.set_deferred("disabled", small_crouch or power_state.hitbox_size == "Big" and !crouching)
|
i.set_deferred("disabled", small_crouch or power_state.hitbox_size == "Big" and !crouching)
|
||||||
|
Reference in New Issue
Block a user