diff --git a/Difficult_Rocket.py b/Difficult_Rocket.py index 16a3e3a..8bac558 100644 --- a/Difficult_Rocket.py +++ b/Difficult_Rocket.py @@ -27,7 +27,7 @@ print("os.getcwd() = ", os.getcwd()) if __name__ == '__main__': from bin import main - + os.chdir(sys.path[0]) # TODO 没做完.ing print(hi) game = main.Game() game.start() \ No newline at end of file diff --git a/bin/client.py b/bin/client.py index f6032fe..69b8f53 100644 --- a/bin/client.py +++ b/bin/client.py @@ -7,7 +7,6 @@ import multiprocessing as mp import os import sys import time - sys.path.append('./bin/libs/') sys.path.append('./') import pyglet diff --git a/bin/tools.py b/bin/tools.py index 7b6785a..21f08fe 100644 --- a/bin/tools.py +++ b/bin/tools.py @@ -250,7 +250,8 @@ def config(file_name, stack=None): # // TODO 加上.config的读取+解析 return xml_load elif (f_type == 'config') or (f_type == 'conf'): cp = configparser.ConfigParser() # cp -> config parser - cf = cp.read(file_name) # cf -> config file + cp.read(file_name) # config parser -> reader + def get_At(name, in_xml, need_type=str): diff --git a/configs/sys_value/window.json5 b/configs/sys_value/window.json5 index 4ad65d3..58da0a6 100644 --- a/configs/sys_value/window.json5 +++ b/configs/sys_value/window.json5 @@ -13,7 +13,7 @@ 'visible': 'true', // bool 'style': 'None', - 'fps': 30, + 'fps': 120, 'views': [ 'space', 'map', diff --git a/tests/test_config_file.py b/tests/test_config_file.py index 70a467c..6eb0a12 100644 --- a/tests/test_config_file.py +++ b/tests/test_config_file.py @@ -12,5 +12,4 @@ for c in configs.sections(): conf = configparser.ConfigParser() conf.read('test_config.config') -print(type(conf)) -print(conf[:]) \ No newline at end of file +print(type(conf)) \ No newline at end of file