This commit is contained in:
沈瑗杰 2020-12-26 00:44:35 +08:00
parent 5104a0607c
commit 2119eb1a8e
3 changed files with 7 additions and 3 deletions

View File

@ -10,6 +10,9 @@
}
},
"basic_number": {
"name" : ["float", "int", ["unit"], ["unit"], "name = float × 10^int × unit(s) ÷ unit(s)"]
"name": ["float", "int", ["unit"], ["unit"], "name = float × 10^int × unit(s) ÷ unit(s)"]
},
"basic_force" : {
"name": ["x", "y", "x&y format:basic_number/unit1:[m]/unit2:[]"]
}
}

View File

@ -2,7 +2,8 @@
"Game_threads": {
"orbit_demo": {
"ship_info": {
"mass" : "basic_config:basic_number"
"mass": "basic_config:basic_number",
"force": "basic_config:basic_force"
}
}
}

View File

@ -15,7 +15,7 @@ class Orbit_demo(threading.Thread):
# father class __init__()
threading.Thread.__init__(self)
# dic
self.ship_info = {"mass": [1, 5, ["kg"], []],}
self.ship_info = {"mass": [1, 5, ["kg"], []], "force": []}
self.planet_system = {"Solar System": {"planets": {"smearth": {"description": "", "gravity": 9.81, "radius": 63710000, "map_color": [103, 157, 255]}}}}
self.main_ship_parts = {}
self.this_planet_info = {}