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
|
||||
"""
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user