some changes

This commit is contained in:
沈瑗杰 2020-12-21 18:46:20 +08:00
parent 042f0290fc
commit 8723d70dd8
4 changed files with 23 additions and 7 deletions

View File

@ -6,6 +6,18 @@ mail: 3695888@qq.com
import libs
import threading
from threading import Thread
class Orbit_demo(threading.Thread):
def __init__(self, threadID, delivery_class):
pass
# father class __init__()
threading.Thread.__init__(self)
# dic
self.ship_info = {}
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 = {}
self.back_ground_element = {}
self.back_ground_image = ""

View File

@ -7,6 +7,7 @@ mail: 3695888@qq.com
class Delivery:
def __init__(self):
self.using = False
self.rended = False
self.ship_info = {}
self.planet_system = {}
self.main_ship_parts = {}

View File

@ -7,11 +7,8 @@ import libs
import pyglet
import threading
from pyglet.app import run
from pyglet.window import Window
from pyglet.resource import image
class Game():
def __init__(self):
pass

View File

@ -7,13 +7,19 @@ import libs
import pyglet
import threading
from threading import Thread
from pyglet.app import run
from pyglet.window import Window
from pyglet.resource import image
class RenderThread(threading.Thread, pyglet.window.Window):
def __init__(self, threadID, delivery_class):
# father class __init__()
Window.__init__(self)
threading.Thread.__init__(self)
# value
# dic
self.parts = {} # this ship parts
@ -39,9 +45,9 @@ class RenderThread(threading.Thread, pyglet.window.Window):
# window
self.window = Window(width=int(self.window_c['width']),
height=int(self.window_c['height']),
fullscreen=mbool(self.window_c['fullscreen']),
fullscreen=libs.tools.mbool(self.window_c['fullscreen']),
caption=str(self.window_c['caption']),
visible=mbool(self.window_c['visible']))
visible=libs.tools.mbool(self.window_c['visible']))
def on_draw(self):
pass