From d487458428ae3c13e3967edbf1cd00cb6445f21c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E7=91=97=E6=9D=B0?= <3695888@qq.com> Date: Mon, 21 Dec 2020 21:05:53 +0800 Subject: [PATCH] awa --- configs/basic_config.json | 3 +++ docs/configes sample/basic_config.json | 3 +++ libs/Game_threads/orbit_demo.py | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/configs/basic_config.json b/configs/basic_config.json index 307d0dc..f3fe533 100644 --- a/configs/basic_config.json +++ b/configs/basic_config.json @@ -10,5 +10,8 @@ "soild": "soild_engine_flame.png", "ion": "ion_engine_flame.png" } + }, + "basic_number": { + "G" : ["6.67", "-11", ["N", "m", "m"], ["kg", "kg"]] } } \ No newline at end of file diff --git a/docs/configes sample/basic_config.json b/docs/configes sample/basic_config.json index 28c7f6f..cb781d3 100644 --- a/docs/configes sample/basic_config.json +++ b/docs/configes sample/basic_config.json @@ -8,5 +8,8 @@ "flame": { "xxx": "xxx.png" } + }, + "basic_number": { + "name" : ["float", "int", ["unit"], ["unit"], "name = float × 10^int × unit(s) ÷ unit(s)"] } } \ No newline at end of file diff --git a/libs/Game_threads/orbit_demo.py b/libs/Game_threads/orbit_demo.py index e44ef21..89a54d6 100644 --- a/libs/Game_threads/orbit_demo.py +++ b/libs/Game_threads/orbit_demo.py @@ -21,3 +21,9 @@ class Orbit_demo(threading.Thread): self.this_planet_info = {} self.back_ground_element = {} self.back_ground_image = "" + + def main(self): + print("ha ?") + + def orbit_math(self): + mass = self.ship_info["mass"]