From 68de26ad91da6283f93d74d34cd5accf0a757714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=91=97=E6=9D=B0=20=E6=B2=88?= <3695888@qq.com> Date: Sat, 10 Apr 2021 17:01:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97=E5=8F=AF?= =?UTF-8?q?=E8=A7=81=20[=E8=BF=99=E9=87=8C](.docs/update=5Flogs.md)=20upda?= =?UTF-8?q?te=20logs=20can=20see=20at=20[here](./docs/update=5Flogs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- README.md | 12 ++++++------ bin/client.py | 12 +++++++----- bin/main.py | 2 +- configs/sys_value/window.json5 | 2 +- docs/README-cn.md | 6 +++--- 6 files changed, 19 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 1809c04..af41521 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,7 @@ DR.code-workspace .idea/ # log file -*.log +.log # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/README.md b/README.md index 67f2be2..6dd1017 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ None. Not even one! - - `Develop platform 1 - Windows 10` - - `Python 3.8.7` + - `Python 3.8.9` - `Windows10 x64` - `Pyglet 1.5.15` - `Json5 0.9.5` @@ -43,12 +43,12 @@ None. Not even one! - pyglet (pre install path:`./bin/libs/pyglet`) - pillow -## thanks to +## Thanks to -- pyglet : GUI -- @小卡儿 : transfer chinese to English -- [@Rayawa](https://github.com/Rayawa) : check mistake in docs -- [@Billchyi](https://github.com/Billchyi) : check mistake in docs +- [pyglet](http://pyglet.org) GUI +- [@ruoxiao-you](https://github.com/ruoxiao-you) transfer chinese to English +- [@Rayawa](https://github.com/Rayawa) check mistake in docs +- [@Billchyi](https://github.com/Billchyi) check mistake in docs ## About License diff --git a/bin/client.py b/bin/client.py index 832465a..3137b24 100644 --- a/bin/client.py +++ b/bin/client.py @@ -5,14 +5,14 @@ mail: 3695888@qq.com import os import sys +import time +import multiprocessing as mp sys.path.append('./bin/libs/') sys.path.append('./') -import time import pyglet from pyglet.window import key from pyglet.window import mouse -import multiprocessing as mp try: from bin import tools @@ -77,7 +77,7 @@ class window(pyglet.window.Window): self.dev_list = dev_list self.dev_dic = dev_dic # value - self.FPS = int(tools.config('configs/sys_value/window.json5')['fps']) + self.FPS = int(tools.config('configs/sys_value/window.json5', 'fps')) self.SPF = 1.0 / self.FPS self.view = 'space' self.net_mode = net_mode @@ -245,10 +245,12 @@ class window(pyglet.window.Window): """ def on_mouse_motion(self, x, y, dx, dy): - self.logger.debug('按键移动 %s %s %s %s' % (x, y, dx, dy)) + # self.logger.debug('按键移动 %s %s %s %s' % (x, y, dx, dy)) + pass def on_mouse_drag(self, x, y, dx, dy, buttons, modifiers): - self.logger.debug('按键拖拽 %s %s %s %s %s %s' %(x, y, dx, dy, buttons, modifiers)) + # self.logger.debug('按键拖拽 %s %s %s %s %s %s' %(x, y, dx, dy, buttons, modifiers)) + pass def on_mouse_press(self, x, y, button, modifiers): if button == mouse.LEFT: diff --git a/bin/main.py b/bin/main.py index 5679b98..275632d 100644 --- a/bin/main.py +++ b/bin/main.py @@ -84,7 +84,7 @@ class Game: if self.on_python_v_info[0] == 2: self.main_logger.critical('%s' % self.lang['version.need3+']) raise Exception('%s' % self.lang['version.need3+']) - elif self.on_python_v_info[1] <= 8: + elif self.on_python_v_info[1] <= 7: warning = configs.name_handler(self.lang['version.best3.8+']) self.main_logger.warning(warning) diff --git a/configs/sys_value/window.json5 b/configs/sys_value/window.json5 index 6bcc814..b8b193e 100644 --- a/configs/sys_value/window.json5 +++ b/configs/sys_value/window.json5 @@ -13,7 +13,7 @@ 'visible': 'true', // bool 'style': 'None', - 'fps': 60, + 'fps': 30, 'views': [ 'space', 'map', diff --git a/docs/README-cn.md b/docs/README-cn.md index ffd0c2e..5bee4cc 100644 --- a/docs/README-cn.md +++ b/docs/README-cn.md @@ -24,7 +24,7 @@ For an English version of readme, please move [here](https://github.com/shenjack - - `开发平台1 Windows 10` - - `Python 3.8.7` + - `Python 3.8.9` - `Windows10 x64` - `Pyglet 1.5.15` - `Json5 0.9.5` @@ -45,8 +45,8 @@ For an English version of readme, please move [here](https://github.com/shenjack ## 感谢 -- pyglet : 图形界面 -- @小卡儿 : 翻译lang +- [pyglet](http://pyglet.org) : 图形界面 +- [@ruoxiao-you](https://github.com/ruoxiao-you): 翻译lang - [@Rayawa](https://github.com/Rayawa) : 文档矫正 - [@Billchyi](https://github.com/Billchyi) : 文档矫正