提交 889aa577 编写于 作者: 三月三net's avatar 三月三net

Python超人-宇宙模拟器

上级 17102adb
......@@ -232,7 +232,7 @@ init.body_arrived = body_arrived
# 使用 ursina 查看的运行效果
# 常用快捷键: P:运行和暂停 O:重新开始 I:显示天体轨迹
# position = 左-右+、上+下-、前+后-
ursina_run(bodies, 50,
ursina_run(bodies, 10,
position=init.camera_position,
# show_trail=init.show_trail,
show_timer=True,
......
......@@ -271,7 +271,17 @@ def make_3d_video():
print("开始录屏")
clear_frame_temp_files()
while True:
if imageNum % 400 == 0:
press_pause_key()
create_frame_temp_files(completed_index, l_frames, r_frames)
r_frames.clear()
l_frames.clear()
r_frames = {}
l_frames = {}
press_pause_key()
img = sim_window_screen_shot()
if img is None:
print("\n模拟器窗口已关闭,退出录屏")
break
......@@ -285,15 +295,6 @@ def make_3d_video():
print('X', end='')
continue
if imageNum % 100 == 0:
press_pause_key()
create_frame_temp_files(index + index_base, l_frames, r_frames)
r_frames.clear()
l_frames.clear()
r_frames = {}
l_frames = {}
press_pause_key()
if index < last_index:
index_base += (last_index + 1)
# press_pause_key()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册