更新日志可见 [这里](.docs/update_logs.md)

update logs can see at [here](./docs/update_logs)
This commit is contained in:
瑗杰 沈 2021-04-10 17:01:57 +08:00
parent 4d037980a0
commit 68de26ad91
6 changed files with 19 additions and 17 deletions

2
.gitignore vendored
View File

@ -7,7 +7,7 @@ DR.code-workspace
.idea/ .idea/
# log file # log file
*.log .log
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/

View File

@ -24,7 +24,7 @@ None. Not even one!
- -
- `Develop platform 1 - Windows 10` - `Develop platform 1 - Windows 10`
- `Python 3.8.7` - `Python 3.8.9`
- `Windows10 x64` - `Windows10 x64`
- `Pyglet 1.5.15` - `Pyglet 1.5.15`
- `Json5 0.9.5` - `Json5 0.9.5`
@ -43,12 +43,12 @@ None. Not even one!
- pyglet (pre install path:`./bin/libs/pyglet`) - pyglet (pre install path:`./bin/libs/pyglet`)
- pillow - pillow
## thanks to ## Thanks to
- pyglet : GUI - [pyglet](http://pyglet.org) GUI
- @小卡儿 : transfer chinese to English - [@ruoxiao-you](https://github.com/ruoxiao-you) transfer chinese to English
- [@Rayawa](https://github.com/Rayawa) : check mistake in docs - [@Rayawa](https://github.com/Rayawa) check mistake in docs
- [@Billchyi](https://github.com/Billchyi) : check mistake in docs - [@Billchyi](https://github.com/Billchyi) check mistake in docs
## About License ## About License

View File

@ -5,14 +5,14 @@ mail: 3695888@qq.com
import os import os
import sys import sys
import time
import multiprocessing as mp
sys.path.append('./bin/libs/') sys.path.append('./bin/libs/')
sys.path.append('./') sys.path.append('./')
import time
import pyglet import pyglet
from pyglet.window import key from pyglet.window import key
from pyglet.window import mouse from pyglet.window import mouse
import multiprocessing as mp
try: try:
from bin import tools from bin import tools
@ -77,7 +77,7 @@ class window(pyglet.window.Window):
self.dev_list = dev_list self.dev_list = dev_list
self.dev_dic = dev_dic self.dev_dic = dev_dic
# value # 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.SPF = 1.0 / self.FPS
self.view = 'space' self.view = 'space'
self.net_mode = net_mode self.net_mode = net_mode
@ -245,10 +245,12 @@ class window(pyglet.window.Window):
""" """
def on_mouse_motion(self, x, y, dx, dy): 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): 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): def on_mouse_press(self, x, y, button, modifiers):
if button == mouse.LEFT: if button == mouse.LEFT:

View File

@ -84,7 +84,7 @@ class Game:
if self.on_python_v_info[0] == 2: if self.on_python_v_info[0] == 2:
self.main_logger.critical('%s' % self.lang['version.need3+']) self.main_logger.critical('%s' % self.lang['version.need3+'])
raise Exception('%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+']) warning = configs.name_handler(self.lang['version.best3.8+'])
self.main_logger.warning(warning) self.main_logger.warning(warning)

View File

@ -13,7 +13,7 @@
'visible': 'true', 'visible': 'true',
// bool // bool
'style': 'None', 'style': 'None',
'fps': 60, 'fps': 30,
'views': [ 'views': [
'space', 'space',
'map', 'map',

View File

@ -24,7 +24,7 @@ For an English version of readme, please move [here](https://github.com/shenjack
- -
- `开发平台1 Windows 10` - `开发平台1 Windows 10`
- `Python 3.8.7` - `Python 3.8.9`
- `Windows10 x64` - `Windows10 x64`
- `Pyglet 1.5.15` - `Pyglet 1.5.15`
- `Json5 0.9.5` - `Json5 0.9.5`
@ -45,8 +45,8 @@ For an English version of readme, please move [here](https://github.com/shenjack
## 感谢 ## 感谢
- pyglet : 图形界面 - [pyglet](http://pyglet.org) : 图形界面
- @小卡儿 : 翻译lang - [@ruoxiao-you](https://github.com/ruoxiao-you): 翻译lang
- [@Rayawa](https://github.com/Rayawa) : 文档矫正 - [@Rayawa](https://github.com/Rayawa) : 文档矫正
- [@Billchyi](https://github.com/Billchyi) : 文档矫正 - [@Billchyi](https://github.com/Billchyi) : 文档矫正