This commit is contained in:
沈瑗杰 2021-02-20 00:17:50 +08:00
parent eaa153dbc5
commit 9c714688f3
7 changed files with 59 additions and 7 deletions

View File

@ -22,13 +22,15 @@ None. Not even one!
- `Python 3.8.7` - `Python 3.8.7`
`Windows10 x64` `Windows10 x64`
`Pyglet 1.5.14` `Pyglet 1.5.15`
`Json5 0.9.5` `Json5 0.9.5`
`pillow 8.1.0`
## Required python modules ## Required python modules
- pyglet
- json5 - json5
- pyglet
- pillow
## About License ## About License

View File

@ -49,7 +49,7 @@ def cut_and_save(config, save_path):
pic_.save(save_name) pic_.save(save_name)
def All_in_one_cut(xml, pic, path): def All_in_one_cut(xml, path):
json_name = xml[:-4] + '.json5' json_name = xml[:-4] + '.json5'
rewrite_config(xml, json_name) rewrite_config(xml, json_name)
cut_and_save(json_name, path) cut_and_save(json_name, path)

View File

@ -22,14 +22,15 @@ For an English version of readme, please move [here](https://github.com/shenjack
- `Python 3.8.7` - `Python 3.8.7`
`Windows10 x64` `Windows10 x64`
`Pyglet 1.5.14` `Pyglet 1.5.15`
`Json5 0.9.5` `Json5 0.9.5`
`pillow 8.1.0`
### 需要的Python模块 ### 需要的Python模块
- pyglet
- json5 - json5
- pyglet
- pillow
## 关于分享协议 ## 关于分享协议

BIN
page1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 966 KiB

BIN
page2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 960 KiB

49
superman.py Normal file
View File

@ -0,0 +1,49 @@
from decimal import Decimal as De
tick_time, velocity, height = De('0'), De('0'), De('0')
m = De('4610025')
gravity = De('9.798')
R = De('637100')
n = De('0.5943466')
H = De('70000')
F = De('208201000')
TPS = 20
MSPT = 1 / TPS
while True: # 主tick循环
# 基础加速度运算
add_speed = (F / m) - ((gravity * (R ** 2)) / ((R * tick_time * height) ** 2))
# 出大气层判定
if height < 70000: # 没出大气 加速度需要减去大气阻力
add_speed -= (n * (velocity ** 2) * (10 * (-6 * height) / H)) / m
height += MSPT * velocity # 高度 加 速度除以TPStick per second每tick加速
velocity += MSPT * add_speed # 速度 加 加速度除以TPS
if tick_time < 192: # 一些我也不知道是什么意思的tick判定
m -= (MSPT * F) / 3399.2 # 3399.2是个啥?
elif tick_time < 240:
m -= 129 * MSPT # ??? 129?
else:
m -= 4 * MSPT # 4?
# tick 加时间
tick_time += MSPT
if tick_time < 48: # 如果时间没到48秒
continue
elif tick_time == 48: # 如果时间到了48秒
m = 1243700
F = 44189600
elif tick_time == 96:
m = 193125
F = 8498000
elif tick_time == 144:
m = 40875
F = 1699600
elif tick_time == 192:
m = 10225
F = 446145
elif tick_time == 240:
m = 2308
F = 21245
elif tick_time >= 567:
tick_time += ((12308300 - height) / velocity)
break
print('t: ' + tick_time)

View File

@ -28,7 +28,7 @@ class Main(mp.Process):
print('B 拿到了') print('B 拿到了')
self.dev.bget = False self.dev.bget = False
self.dev.aget = True self.dev.aget = True
self.ttt = self.dev.a self.ttt = self.dev.add_speed
self.dev.using = False self.dev.using = False
print('结束调用a') print('结束调用a')
break break