many thanks and some test update

“支持”了macOS
更新了一些README
This commit is contained in:
沈瑗杰 2021-03-20 13:52:07 +08:00
parent f8fa90f55b
commit c5e7367cd7
6 changed files with 59 additions and 11 deletions

View File

@ -2,7 +2,7 @@
### Version
0.2 (developing and have no DEMO)
0.2.1 (developing and have no DEMO)
中文README请移步 [这里](https://github.com/shenjackyuanjie/Difficult-Rocket/blob/main/docs/README-cn.md)
@ -18,13 +18,20 @@ None. Not even one!
- server client separate (just like minecraft)
## Environment (been tested)
## Environment (been tested / develop on)
- `Python 3.8.7`
- `Develop platform 1 - Windows 10`
`Python 3.8.7`
`Windows10 x64`
`Pyglet 1.5.15`
`Json5 0.9.5`
`pillow 8.1.0`
- `Develop platform 2 - macOS Big Sur`
`Python 3.8.7`
`macOS Big Sur 11.2.1`
`Pyglet 1.5.15`
`Json5 0.9.5`
`pillow 8.1.2`
## Required python modules
@ -32,6 +39,13 @@ None. Not even one!
- pyglet
- pillow
## thanks to
- pyglet : GUI
- @小卡儿 : transfer chinese to English
- @Rayawa : check mistake in README
- @Billchyi : check mistake in REAMDE
## About License
#### https://creativecommons.org/licenses/by-nc-sa/4.0/

View File

@ -75,7 +75,7 @@ class window(pyglet.window.Window):
self.dev_list = dev_list
self.dev_dic = dev_dic
# value
self.FPS = 60
self.FPS = int(tools.config('sys_value/window.json5')['fps'])
self.SPF = 1.0 / self.FPS
self.view = 'space'
self.net_mode = net_mode
@ -200,7 +200,7 @@ class window(pyglet.window.Window):
back = 0
while back < self.width:
self.textures['runtime']['toolbar_light'].blit(x=back, y=0)
back += self.textures['runtime']['toolbar_light'].width
back += self.textures['runtime']['toolbar_light'].width - 1
self.textures['runtime']['to_menu'].x = 20
self.textures['runtime']['to_menu'].y = tool_y
self.textures['runtime']['add_part'].x = 100

View File

@ -2,7 +2,7 @@
## 版本
0.2 (开发.ing 没有DEMO(除非你能管一个乌漆嘛黑的页面+五个东西叫DEMO))
0.2.1 (开发.ing 没有DEMO(除非你能管一个乌漆嘛黑的页面+五个按键叫DEMO))
For an English version of readme, please move [here](https://github.com/shenjackyuanjie/Difficult-Rocket).
@ -18,20 +18,34 @@ For an English version of readme, please move [here](https://github.com/shenjack
- 服务端客户端分离就像minecraft一样
## 环境需求 (测试过的)
## 环境需求 (测试过的/开发平台
- `Python 3.8.7`
- `开发平台1 Windows 10`
`Python 3.8.7`
`Windows10 x64`
`Pyglet 1.5.15`
`Json5 0.9.5`
`pillow 8.1.0`
- `开发平台2 macOS Big Sur`
`Python 3.8.7`
`macOS Big Sur 11.2.1`
`Pyglet 1.5.15`
`Json5 0.9.5`
`pillow 8.1.2`
### 需要的Python模块
## 需要的Python模块
- json5
- pyglet
- pillow
## 感谢
- pyglet : 图形界面
- @小卡儿 : 翻译lang
- @Rayawa : README矫正
- @Billchyi : README矫正
## 关于分享协议
#### https://creativecommons.org/licenses/by-nc-sa/4.0/

0
logs/logs_here.txt Normal file
View File

View File

@ -6,7 +6,7 @@
'caption': 'Simple Rocket {version}',
// {version} -> version of SR
'caption_option': {
'{version}': '0.2'
'{version}': '0.2.1'
},
'resizable': 'true',
// bool

View File

@ -9,7 +9,27 @@ import turtle
import random
t = turtle
size = t.screensize()
screen = t.Screen()
def print_poi(x, y):
print(x, y)
this_t = turtle.clone()
this_t.hideturtle()
this_t.speed = 0
this_t.penup()
this_t.goto(x, size[1])
this_t.pendown()
this_t.goto(x, -size[1])
t.speed = 0
t.hideturtle()
screen.onclick(print_poi)
t.onclick(print_poi)
t.goto(10,10)
t.goto(20,100)
input()
t.done()