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

Python超人-宇宙模拟器

上级 19492412
...@@ -892,6 +892,11 @@ def camera_move_control(camera_move_infos, cond_cb, value_conv=None, smooth=None ...@@ -892,6 +892,11 @@ def camera_move_control(camera_move_infos, cond_cb, value_conv=None, smooth=None
camera.position = p camera.position = p
e = next_info.get("exit", None)
if e:
print("自动退出...")
exit(0)
if __name__ == '__main__': if __name__ == '__main__':
# from bodies import Sun, Earth # from bodies import Sun, Earth
......
...@@ -219,7 +219,8 @@ class HalleyCometSim(HalleyCometSimBase): ...@@ -219,7 +219,8 @@ class HalleyCometSim(HalleyCometSimBase):
(2048, {"f": 3}), (2048, {"f": 3}),
(2062, {"y": -3}), (2062, {"y": -3}),
(2063, {"y": -10, "z": 2}), (2063, {"y": -10, "z": 2}),
(20172, {}), (2081, {}),
(2082, {"exit": True})
] ]
camera_move_control(camera_move_infos, camera_move_control(camera_move_infos,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册