没什么,只不过换到pycharm罢了(

This commit is contained in:
沈瑗杰 2021-01-24 22:00:31 +08:00
parent 0caaec102d
commit bb3cbb59c4
7 changed files with 39 additions and 34 deletions

View File

@ -5,10 +5,10 @@ mail: 3695888@qq.com
# import folders
#
import client
import configs
import delivery
# import in this folder
import main
import server
import tools
import client
import server
import configs
import delivery

View File

@ -5,7 +5,7 @@ mail: 3695888@qq.com
import multiprocessing as mp
import libs
import bin
import pyglet
import pyglet.app
from pyglet.resource import image
@ -21,12 +21,12 @@ class RenderThread(mp.Process, pyglet.window.Window):
# value
self.process_id = 'Render'
self.process_name = 'render process'
# share memery
# share memory
self.dev_list = dev_list
self.dev_dic = dev_dic
# dic
self.parts = {} # this ship parts
self.o_parts = {} # stand for opther parts
self.o_parts = {} # stand for other parts
self.b_g_e = {} # stand for back ground element
self.planet_system = {} # hole planet system
# list
@ -42,18 +42,18 @@ class RenderThread(mp.Process, pyglet.window.Window):
# window
self.window = Window(width=int(self.window_c['width']),
height=int(self.window_c['height']),
fullscreen=libs.tools.mbool(self.window_c['fullscreen']),
fullscreen=bin.tools.mbool(self.window_c['full_screen']),
caption=str(self.window_c['caption']),
visible=libs.tools.mbool(self.window_c['visible']))
visible=bin.tools.mbool(self.window_c['visible']))
def on_draw(self):
pass
def on_mouse_motion(self):
def on_mouse_motion(self, x, y, dx, dy):
pass
def on_key_press(self):
def on_key_press(self, symbol, modifiers):
pass
def on_key_release(self):
def on_key_release(self, symbol, modifiers):
pass

View File

@ -5,7 +5,10 @@ mail: 3695888@qq.com
from multiprocessing import Manager as share
import libs
import bin
import server
import client
class Game():
@ -13,8 +16,8 @@ class Game():
def __init__(self):
self.dics = share().dict()
self.lists = share().list()
self.client = libs.libs.client()
self.server = libs.libs.server()
self.client = client.RenderThread(self.lists, self.dics)
self.server = server.server(self.lists, self.dics)
def setup(self):
pass

View File

@ -1,9 +1,9 @@
{
"width": "int",
"height": "int",
"fullscreen": "`1/0`",
"caption": "xxx",
"resizable":"1/0",
"visible": "1/0",
"style": "xxx(in list)"
"width": "int",
"height": "int",
"full_screen": "`1/0`",
"caption": "xxx",
"resizable": "1/0",
"visible": "1/0",
"style": "xxx(in list)"
}

View File

@ -1,9 +1,9 @@
{
"width": "1024",
"height": "768",
"fullscreen": "0",
"caption": "Simple Rocket 0.1",
"resizable":"1",
"visible": "1",
"style": "None"
"width": "1024",
"height": "768",
"full_screen": "0",
"caption": "Simple Rocket 0.1",
"resizable": "1",
"visible": "1",
"style": "None"
}

View File

@ -1,8 +1,9 @@
import multiprocessing as mp
import os
import random
import time
from multiprocessing.context import Process
import os
import time
import random
class Main(mp.Process):

View File

@ -1,7 +1,8 @@
import os
import random
import threading
import time
import os
import sys
import random
class Aclass(threading.Thread):