Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
d80b30c24c
@ -20,6 +20,15 @@ import traceback
|
|||||||
from typing import List, Union
|
from typing import List, Union
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
||||||
|
# third function
|
||||||
|
import tomlkit
|
||||||
|
import pyglet
|
||||||
|
# from pyglet import gl
|
||||||
|
from pyglet.gl import *
|
||||||
|
# from pyglet.libs.win32 import _user32
|
||||||
|
from pyglet.window import Window
|
||||||
|
from pyglet.window import key, mouse
|
||||||
|
|
||||||
# Difficult_Rocket function
|
# Difficult_Rocket function
|
||||||
from Difficult_Rocket import Options, DR_runtime
|
from Difficult_Rocket import Options, DR_runtime
|
||||||
from Difficult_Rocket.command import line, tree
|
from Difficult_Rocket.command import line, tree
|
||||||
@ -32,14 +41,6 @@ from Difficult_Rocket.client.fps.fps_log import FpsLogger
|
|||||||
from Difficult_Rocket.client.guis.widgets import InputBox
|
from Difficult_Rocket.client.guis.widgets import InputBox
|
||||||
from Difficult_Rocket.exception.command import CommandError
|
from Difficult_Rocket.exception.command import CommandError
|
||||||
|
|
||||||
import tomlkit
|
|
||||||
import pyglet
|
|
||||||
# from pyglet import gl
|
|
||||||
from pyglet.gl import *
|
|
||||||
# from pyglet.libs.win32 import _user32
|
|
||||||
from pyglet.window import Window
|
|
||||||
from pyglet.window import key, mouse
|
|
||||||
|
|
||||||
|
|
||||||
class Client:
|
class Client:
|
||||||
def __init__(self, net_mode='local'):
|
def __init__(self, net_mode='local'):
|
||||||
|
12
Difficult_Rocket/client/render/sr1_ship.py
Normal file
12
Difficult_Rocket/client/render/sr1_ship.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# -------------------------------
|
||||||
|
# Difficult Rocket
|
||||||
|
# Copyright © 2021-2022 by shenjackyuanjie 3695888@qq.com
|
||||||
|
# All rights reserved
|
||||||
|
# -------------------------------
|
||||||
|
|
||||||
|
# third party package
|
||||||
|
from defusedxml.ElementTree import parse
|
||||||
|
|
||||||
|
# Difficult Rocket
|
||||||
|
from Difficult_Rocket.client.screen import BaseScreen
|
||||||
|
|
@ -22,7 +22,7 @@ if __name__ == '__main__': # been start will not run this
|
|||||||
sys.path.append('/bin/libs')
|
sys.path.append('/bin/libs')
|
||||||
sys.path.append('/bin')
|
sys.path.append('/bin')
|
||||||
|
|
||||||
from Difficult_Rocket import client, server, DR_option
|
from Difficult_Rocket import client, DR_option
|
||||||
from Difficult_Rocket.utils import tools
|
from Difficult_Rocket.utils import tools
|
||||||
from Difficult_Rocket.utils.translate import tr
|
from Difficult_Rocket.utils.translate import tr
|
||||||
|
|
||||||
@ -56,7 +56,6 @@ class Game:
|
|||||||
|
|
||||||
def setup(self) -> None:
|
def setup(self) -> None:
|
||||||
self.client = client.Client(net_mode='local')
|
self.client = client.Client(net_mode='local')
|
||||||
self.server = server.Server(net_mode='local')
|
|
||||||
|
|
||||||
def python_version_check(self) -> None: # best 3.8+ and write at 3.8.10
|
def python_version_check(self) -> None: # best 3.8+ and write at 3.8.10
|
||||||
self.logger.info('{} {}'.format(tr['main']['version.now_on'], self.on_python_v))
|
self.logger.info('{} {}'.format(tr['main']['version.now_on'], self.on_python_v))
|
||||||
@ -69,7 +68,6 @@ class Game:
|
|||||||
|
|
||||||
# @new_thread('main')
|
# @new_thread('main')
|
||||||
def _start(self):
|
def _start(self):
|
||||||
self.server.run()
|
|
||||||
threaded = False
|
threaded = False
|
||||||
if threaded:
|
if threaded:
|
||||||
try:
|
try:
|
||||||
|
@ -18,8 +18,9 @@ setuptools = "^65.5.0"
|
|||||||
viztracer = "^0.15.4"
|
viztracer = "^0.15.4"
|
||||||
vizplugins = "^0.1.2"
|
vizplugins = "^0.1.2"
|
||||||
Cython = "^0.29.32"
|
Cython = "^0.29.32"
|
||||||
|
defusedxml = "*"
|
||||||
|
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core"]
|
requires = ["setuptools"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
@ -2,7 +2,7 @@ psutil
|
|||||||
pillow
|
pillow
|
||||||
objprint
|
objprint
|
||||||
# selenium
|
# selenium
|
||||||
|
defusedxml
|
||||||
tomlkit
|
tomlkit
|
||||||
pymunk
|
pymunk
|
||||||
rtoml
|
rtoml
|
||||||
|
Loading…
Reference in New Issue
Block a user