This commit is contained in:
JoeMama
2025-10-12 15:10:57 +01:00

View File

@@ -70,6 +70,7 @@ func bridge_piece_fall(node: Node2D) -> void:
const BRIDGE_DESTRUCTION_PARTICLE = preload("uid://cwfjdgsyh35h6") const BRIDGE_DESTRUCTION_PARTICLE = preload("uid://cwfjdgsyh35h6")
func bridge_piece_break(node: Node2D) -> void: func bridge_piece_break(node: Node2D) -> void:
if Settings.file.visuals.extra_particles == 1:
var particle = BRIDGE_DESTRUCTION_PARTICLE.instantiate() var particle = BRIDGE_DESTRUCTION_PARTICLE.instantiate()
particle.global_position = node.global_position particle.global_position = node.global_position
particle.process_mode = Node.PROCESS_MODE_ALWAYS particle.process_mode = Node.PROCESS_MODE_ALWAYS