added docs section and tweaks to chest spawning

This commit is contained in:
Derek
2025-04-09 22:54:18 -05:00
parent ce08df66e6
commit e39bd221b0
36 changed files with 83599 additions and 36 deletions

View File

@@ -18,7 +18,8 @@ func spawn_chests():
while number_chests > 0:
var chest_loc = chest_spawners.pick_random()
var instance_chest = CHEST_1.instantiate()
get_tree().current_scene.add_child(instance_chest)
add_child(instance_chest)
instance_chest.global_basis = chest_loc.global_basis
instance_chest.global_position = chest_loc.global_position + chest_loc.random_box_pos()
print("CHEST SPAWNED AT : ",instance_chest.global_position)
number_chests -= 1