2020 12 13
NEVER FORGET What Japanese do to our people
This commit is contained in:
parent
7c7fb146f9
commit
0fe5d53705
16
libs/main.py
16
libs/main.py
@ -3,8 +3,9 @@ writen by shenjackyuanjie
|
|||||||
mail: 3695888@qq.com
|
mail: 3695888@qq.com
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import pyglet
|
|
||||||
import libs
|
import libs
|
||||||
|
import pyglet
|
||||||
|
import threading
|
||||||
|
|
||||||
from pyglet.app import run
|
from pyglet.app import run
|
||||||
from pyglet.window import Window
|
from pyglet.window import Window
|
||||||
@ -23,9 +24,10 @@ class Game:
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
# value
|
# value
|
||||||
# dic
|
# dic
|
||||||
self.parts = {} # now ship parts
|
self.parts = {} # this ship parts
|
||||||
self.o_parts = {} # stand for opther parts
|
self.o_parts = {} # stand for opther parts
|
||||||
self.b_g_e = {} # stand for back ground element
|
self.b_g_e = {} # stand for back ground element
|
||||||
|
self.planet_system = {} # hole planet system
|
||||||
# list
|
# list
|
||||||
|
|
||||||
def start_game(self):
|
def start_game(self):
|
||||||
@ -34,13 +36,17 @@ class Game:
|
|||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
# dic
|
# dic
|
||||||
self.window_c = libs.loads.config(".\\configs\\window.json")
|
self.window_c = libs.loads.config(".\\configs\\window.json") # stand for window config
|
||||||
self.tc = libs.loads.config(".\\configs\\basic_config", "textures")
|
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
|
# image
|
||||||
self.b_g = image("")
|
self.b_g = image("back_ground_space.png")
|
||||||
# window
|
# window
|
||||||
self.window = Window(width=int(self.window_c['width']),
|
self.window = Window(width=int(self.window_c['width']),
|
||||||
height=int(self.window_c['height']),
|
height=int(self.window_c['height']),
|
||||||
fullscreen=mbool(self.window_c['fullscreen']),
|
fullscreen=mbool(self.window_c['fullscreen']),
|
||||||
caption=str(self.window_c['caption']),
|
caption=str(self.window_c['caption']),
|
||||||
visible=mbool(self.window_c['visible']))
|
visible=mbool(self.window_c['visible']))
|
||||||
|
|
||||||
|
def on_draw(self):
|
||||||
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user