更新日志可见 [这里](.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/
# log file
*.log
.log
# Byte-compiled / optimized / DLL files
__pycache__/

View File

@ -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

View File

@ -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:

View File

@ -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)

View File

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

View File

@ -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) : 文档矫正