extends SceneTree func _initialize() -> void: call_deferred("run") func run() -> void: create_timer(35).timeout.connect(func(): quit(2)) var arena := DustArena.new() root.add_child(arena) var camera := Camera3D.new() root.add_child(camera) camera.current = true camera.fov = 88 for shot: Array in [["overview", Vector3(30, 65, 55), Vector3(0, 0, -10)], ["spawn", Vector3(-15, 9.7, 47), Vector3(-15, 5, 25)], ["mid", Vector3(0, 3.35, -28), Vector3(-1, 5, 0)], ["long", Vector3(42, 6.7, -30), Vector3(43, 5, 0)]]: camera.position = shot[1] camera.look_at(shot[2]) await create_timer(0.8).timeout await RenderingServer.frame_post_draw root.get_texture().get_image().save_png("res://logs/dust-" + shot[0] + ".png") print("RENDER ", shot[0]) arena.free() camera.free() quit()