well time to MAKE THREAD!
This commit is contained in:
parent
0fe5d53705
commit
82ce83ea73
12
libs/Game_threads/__init__.py
Normal file
12
libs/Game_threads/__init__.py
Normal file
@ -0,0 +1,12 @@
|
||||
"""
|
||||
writen by shenjackyuanjie
|
||||
mail: 3695888@qq.com
|
||||
"""
|
||||
# import folders
|
||||
import libs.Game_threads
|
||||
|
||||
# import in this forder
|
||||
import libs.main
|
||||
import libs.loads
|
||||
import libs.setup
|
||||
import libs.render
|
11
libs/Game_threads/orbit_demo.py
Normal file
11
libs/Game_threads/orbit_demo.py
Normal file
@ -0,0 +1,11 @@
|
||||
"""
|
||||
writen by shenjackyuanjie
|
||||
mail: 3695888@qq.com
|
||||
"""
|
||||
|
||||
import libs
|
||||
import threading
|
||||
|
||||
class Orbit_demo(threading.Thread):
|
||||
def __init__(self):
|
||||
pass
|
@ -5,6 +5,3 @@ mail: 3695888@qq.com
|
||||
# import folders
|
||||
|
||||
# import in this forder
|
||||
import libs.main
|
||||
import libs.loads
|
||||
import libs.setup
|
||||
|
17
libs/main.py
17
libs/main.py
@ -20,8 +20,14 @@ def mbool(thing): # stand for my bool
|
||||
else:
|
||||
raise ValueError("Need a 'like bool' not anything else")
|
||||
|
||||
class Game:
|
||||
|
||||
class Game():
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
|
||||
class RenderThread(threading.Thread):
|
||||
def __init__(self,):
|
||||
# value
|
||||
# dic
|
||||
self.parts = {} # this ship parts
|
||||
@ -36,9 +42,12 @@ class Game:
|
||||
|
||||
def setup(self):
|
||||
# dic
|
||||
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
|
||||
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("back_ground_space.png")
|
||||
# window
|
||||
|
15
libs/render.py
Normal file
15
libs/render.py
Normal file
@ -0,0 +1,15 @@
|
||||
"""
|
||||
writen by shenjackyuanjie
|
||||
mail: 3695888@qq.com
|
||||
"""
|
||||
|
||||
import pyglet
|
||||
import threading
|
||||
|
||||
from pyglet.app import run
|
||||
from pyglet.window import Window
|
||||
from pyglet.resource import image
|
||||
|
||||
class RenderThread(threading.Thread):
|
||||
def __init__(self):
|
||||
pass
|
Loading…
Reference in New Issue
Block a user