From 0fe5d5370500302d24bab602cc6aa962d4e325e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E7=91=97=E6=9D=B0?= <3695888@qq.com> Date: Sun, 13 Dec 2020 00:35:07 +0800 Subject: [PATCH] 2020 12 13 NEVER FORGET What Japanese do to our people --- libs/main.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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