Added HiddedColorPlatform

This commit is contained in:
2026-06-21 19:29:27 +03:00
parent a1601c9266
commit 569cde340b
12 changed files with 147 additions and 22 deletions
+5
View File
@@ -4,6 +4,7 @@ extends CharacterBody2D
signal dead
signal interacted
signal color_switched(new_color: CollisionSwitcher.ObjectColor)
const PICKUP_OFFSET = 16.0
@@ -149,3 +150,7 @@ func _rearrange_pickups() -> void:
func _on_switch_buffer_timer_timeout() -> void:
_is_switching_needed = false
func _on_collision_switched(new_color: CollisionSwitcher.ObjectColor) -> void:
color_switched.emit(new_color)
+1
View File
@@ -270,4 +270,5 @@ fall_state = NodePath("../FallState")
fall_left_state = NodePath("../FallLeftState")
fall_right_state = NodePath("../FallRightState")
[connection signal="switched" from="CollisionSwitcher" to="." method="_on_collision_switched"]
[connection signal="timeout" from="SwitchBufferTimer" to="." method="_on_switch_buffer_timer_timeout"]