更新日志可见 [这里](.docs/update_logs.md)
update logs can see at [here](./docs/update_logs)
This commit is contained in:
parent
68de26ad91
commit
ef216ec3db
2
.gitignore
vendored
2
.gitignore
vendored
@ -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__/
|
||||||
|
12
README.md
12
README.md
@ -24,7 +24,7 @@ None. Not even one!
|
|||||||
|
|
||||||
-
|
-
|
||||||
- `Develop platform 1 - Windows 10`
|
- `Develop platform 1 - Windows 10`
|
||||||
- `Python 3.8.9`
|
- `Python 3.8.7`
|
||||||
- `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](http://pyglet.org) GUI
|
- pyglet : GUI
|
||||||
- [@ruoxiao-you](https://github.com/ruoxiao-you) transfer chinese to English
|
- @小卡儿 : 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
|
||||||
|
|
||||||
|
@ -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,12 +245,10 @@ 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:
|
||||||
|
@ -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] <= 7:
|
elif self.on_python_v_info[1] <= 8:
|
||||||
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)
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
'visible': 'true',
|
'visible': 'true',
|
||||||
// bool
|
// bool
|
||||||
'style': 'None',
|
'style': 'None',
|
||||||
'fps': 30,
|
'fps': 60,
|
||||||
'views': [
|
'views': [
|
||||||
'space',
|
'space',
|
||||||
'map',
|
'map',
|
||||||
|
@ -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.9`
|
- `Python 3.8.7`
|
||||||
- `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](http://pyglet.org) : 图形界面
|
- pyglet : 图形界面
|
||||||
- [@ruoxiao-you](https://github.com/ruoxiao-you): 翻译lang
|
- @小卡儿 : 翻译lang
|
||||||
- [@Rayawa](https://github.com/Rayawa) : 文档矫正
|
- [@Rayawa](https://github.com/Rayawa) : 文档矫正
|
||||||
- [@Billchyi](https://github.com/Billchyi) : 文档矫正
|
- [@Billchyi](https://github.com/Billchyi) : 文档矫正
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user