diff --git a/libs/main.py b/libs/main.py index 7210834..772841e 100644 --- a/libs/main.py +++ b/libs/main.py @@ -3,8 +3,9 @@ writen by shenjackyuanjie mail: 3695888@qq.com """ -import pyglet import libs +import pyglet +import threading from pyglet.app import run from pyglet.window import Window @@ -23,9 +24,10 @@ class Game: def __init__(self): # value # dic - self.parts = {} # now ship parts + self.parts = {} # this ship parts self.o_parts = {} # stand for opther parts self.b_g_e = {} # stand for back ground element + self.planet_system = {} # hole planet system # list def start_game(self): @@ -34,13 +36,17 @@ class Game: def setup(self): # dic - self.window_c = libs.loads.config(".\\configs\\window.json") - self.tc = libs.loads.config(".\\configs\\basic_config", "textures") + self.window_c = libs.loads.config(".\\configs\\window.json") # stand for window config + self.planet_c = libs.loads.config(".\\configs\\planet.json") # stand for planet config + self.textures_c = libs.loads.config(".\\configs\\basic_config", "textures") # stand for textures config # image - self.b_g = image("") + self.b_g = image("back_ground_space.png") # window self.window = Window(width=int(self.window_c['width']), height=int(self.window_c['height']), fullscreen=mbool(self.window_c['fullscreen']), caption=str(self.window_c['caption']), visible=mbool(self.window_c['visible'])) + + def on_draw(self): + pass