added missing infinite spoawning cheep cheeps to LL underwater levels

This commit is contained in:
JHDev2006
2025-10-18 13:07:02 +01:00
parent ac41fbf121
commit e45e7bfce3
14 changed files with 632 additions and 336 deletions

View File

@@ -39,6 +39,6 @@ func spawn_entity() -> void:
if y_pos == 0:
node.global_position.y = get_tree().get_first_node_in_group("Players").global_position.y + randi_range(-4, 4)
else:
node.global_position.y = randf_range(-56, -120)
node.global_position.x = get_viewport().get_camera_2d().get_screen_center_position().x + ((get_viewport().get_visible_rect().size.x / 2) + 4)
node.global_position.y = randf_range(0, -152)
node.global_position.x = get_viewport().get_camera_2d().get_screen_center_position().x + ((get_viewport().get_visible_rect().size.x / 2) + 8)
add_sibling(node)