没什么,只不过换到pycharm罢了(
This commit is contained in:
parent
0caaec102d
commit
bb3cbb59c4
@ -5,10 +5,10 @@ mail: 3695888@qq.com
|
|||||||
# import folders
|
# import folders
|
||||||
#
|
#
|
||||||
|
|
||||||
import client
|
|
||||||
import configs
|
|
||||||
import delivery
|
|
||||||
# import in this folder
|
# import in this folder
|
||||||
import main
|
import main
|
||||||
import server
|
|
||||||
import tools
|
import tools
|
||||||
|
import client
|
||||||
|
import server
|
||||||
|
import configs
|
||||||
|
import delivery
|
||||||
|
@ -5,7 +5,7 @@ mail: 3695888@qq.com
|
|||||||
|
|
||||||
import multiprocessing as mp
|
import multiprocessing as mp
|
||||||
|
|
||||||
import libs
|
import bin
|
||||||
import pyglet
|
import pyglet
|
||||||
import pyglet.app
|
import pyglet.app
|
||||||
from pyglet.resource import image
|
from pyglet.resource import image
|
||||||
@ -21,12 +21,12 @@ class RenderThread(mp.Process, pyglet.window.Window):
|
|||||||
# value
|
# value
|
||||||
self.process_id = 'Render'
|
self.process_id = 'Render'
|
||||||
self.process_name = 'render process'
|
self.process_name = 'render process'
|
||||||
# share memery
|
# share memory
|
||||||
self.dev_list = dev_list
|
self.dev_list = dev_list
|
||||||
self.dev_dic = dev_dic
|
self.dev_dic = dev_dic
|
||||||
# dic
|
# dic
|
||||||
self.parts = {} # this ship parts
|
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.b_g_e = {} # stand for back ground element
|
||||||
self.planet_system = {} # hole planet system
|
self.planet_system = {} # hole planet system
|
||||||
# list
|
# list
|
||||||
@ -42,18 +42,18 @@ class RenderThread(mp.Process, pyglet.window.Window):
|
|||||||
# 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=libs.tools.mbool(self.window_c['fullscreen']),
|
fullscreen=bin.tools.mbool(self.window_c['full_screen']),
|
||||||
caption=str(self.window_c['caption']),
|
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):
|
def on_draw(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def on_mouse_motion(self):
|
def on_mouse_motion(self, x, y, dx, dy):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def on_key_press(self):
|
def on_key_press(self, symbol, modifiers):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def on_key_release(self):
|
def on_key_release(self, symbol, modifiers):
|
||||||
pass
|
pass
|
||||||
|
@ -5,7 +5,10 @@ mail: 3695888@qq.com
|
|||||||
|
|
||||||
from multiprocessing import Manager as share
|
from multiprocessing import Manager as share
|
||||||
|
|
||||||
import libs
|
import bin
|
||||||
|
|
||||||
|
import server
|
||||||
|
import client
|
||||||
|
|
||||||
|
|
||||||
class Game():
|
class Game():
|
||||||
@ -13,8 +16,8 @@ class Game():
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.dics = share().dict()
|
self.dics = share().dict()
|
||||||
self.lists = share().list()
|
self.lists = share().list()
|
||||||
self.client = libs.libs.client()
|
self.client = client.RenderThread(self.lists, self.dics)
|
||||||
self.server = libs.libs.server()
|
self.server = server.server(self.lists, self.dics)
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
pass
|
pass
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"width": "int",
|
"width": "int",
|
||||||
"height": "int",
|
"height": "int",
|
||||||
"fullscreen": "`1/0`",
|
"full_screen": "`1/0`",
|
||||||
"caption": "xxx",
|
"caption": "xxx",
|
||||||
"resizable":"1/0",
|
"resizable": "1/0",
|
||||||
"visible": "1/0",
|
"visible": "1/0",
|
||||||
"style": "xxx(in list)"
|
"style": "xxx(in list)"
|
||||||
}
|
}
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"width": "1024",
|
"width": "1024",
|
||||||
"height": "768",
|
"height": "768",
|
||||||
"fullscreen": "0",
|
"full_screen": "0",
|
||||||
"caption": "Simple Rocket 0.1",
|
"caption": "Simple Rocket 0.1",
|
||||||
"resizable":"1",
|
"resizable": "1",
|
||||||
"visible": "1",
|
"visible": "1",
|
||||||
"style": "None"
|
"style": "None"
|
||||||
}
|
}
|
@ -1,8 +1,9 @@
|
|||||||
|
|
||||||
import multiprocessing as mp
|
import multiprocessing as mp
|
||||||
import os
|
|
||||||
import random
|
|
||||||
import time
|
|
||||||
from multiprocessing.context import Process
|
from multiprocessing.context import Process
|
||||||
|
import os
|
||||||
|
import time
|
||||||
|
import random
|
||||||
|
|
||||||
|
|
||||||
class Main(mp.Process):
|
class Main(mp.Process):
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import os
|
|
||||||
import random
|
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
import random
|
||||||
|
|
||||||
|
|
||||||
class Aclass(threading.Thread):
|
class Aclass(threading.Thread):
|
||||||
|
Loading…
Reference in New Issue
Block a user