From ef216ec3db069c137f84873963317d62418b8d68 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:07:42 +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, 17 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index af41521..1809c04 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 6dd1017..67f2be2 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ None. Not even one! - - `Develop platform 1 - Windows 10` - - `Python 3.8.9` + - `Python 3.8.7` - `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](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 +- pyglet : GUI +- @小卡儿 : 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 3137b24..832465a 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,12 +245,10 @@ 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)) - pass + self.logger.debug('按键移动 %s %s %s %s' % (x, y, dx, dy)) 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)) - pass + self.logger.debug('按键拖拽 %s %s %s %s %s %s' %(x, y, dx, dy, buttons, modifiers)) def on_mouse_press(self, x, y, button, modifiers): if button == mouse.LEFT: diff --git a/bin/main.py b/bin/main.py index 275632d..5679b98 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] <= 7: + elif self.on_python_v_info[1] <= 8: 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 b8b193e..6bcc814 100644 --- a/configs/sys_value/window.json5 +++ b/configs/sys_value/window.json5 @@ -13,7 +13,7 @@ 'visible': 'true', // bool 'style': 'None', - 'fps': 30, + 'fps': 60, 'views': [ 'space', 'map', diff --git a/docs/README-cn.md b/docs/README-cn.md index 5bee4cc..ffd0c2e 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.9` + - `Python 3.8.7` - `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](http://pyglet.org) : 图形界面 -- [@ruoxiao-you](https://github.com/ruoxiao-you): 翻译lang +- pyglet : 图形界面 +- @小卡儿 : 翻译lang - [@Rayawa](https://github.com/Rayawa) : 文档矫正 - [@Billchyi](https://github.com/Billchyi) : 文档矫正