2023-07-22 18:24:47 +08:00
|
|
|
<div style="text-align: center;">
|
|
|
|
|
2021-09-02 22:47:10 +08:00
|
|
|
# Difficult Rocket
|
2021-11-06 19:07:32 +08:00
|
|
|
|
2023-02-23 23:48:49 +08:00
|
|
|
中文 | [English](./docs/README-en.md)
|
2022-02-07 22:54:15 +08:00
|
|
|
|
2022-06-05 23:13:02 +08:00
|
|
|
- [GitHub](https://github.com/shenjackyuanjie/Difficult-Rocket)
|
2022-06-06 12:30:57 +08:00
|
|
|
- [gitee](https://gitee.com/shenjackyuanjie/Difficult-Rocket)
|
2022-10-11 21:53:27 +08:00
|
|
|
- [discord](https://discord.gg/kWzw2JrG6M)
|
2023-01-01 17:58:26 +08:00
|
|
|
- [kook](https://kook.top/sRPjFG)
|
2021-09-02 22:47:10 +08:00
|
|
|
|
2023-05-16 21:06:17 +08:00
|
|
|
## 请注意 这个仓库未来只会发布 `DR SDK` 的更新 `DR game` 的更新会在 [这里](https://github.com/shenjackyuanjie/DR-game) 发布
|
|
|
|
|
2023-08-12 20:20:18 +08:00
|
|
|
![demo](docs/src/demo.png)
|
|
|
|
|
2023-12-16 22:24:44 +08:00
|
|
|
[![996.icu](https://img.shields.io/badge/996.icu-996.icu-red.svg)](https://996.icu)
|
|
|
|
[![semver](https://img.shields.io/badge/SemVer-2.0.0-blue.svg)](https://Semver.org/)
|
|
|
|
[![python-3.8.10](https://img.shields.io/badge/编写于_Python_版本-3.8.10-blue.svg)](https://Python.org)
|
|
|
|
[![pyglet-2.x](https://img.shields.io/badge/编写于_Pyglet_版本-2.x-blue.svg)](https://pyglet.org)
|
|
|
|
[![support python 3.8~12](https://img.shields.io/badge/Python-_3.8_~_3.12_-blue.svg)](https://Python.org)
|
2020-11-28 15:17:44 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
## 版本
|
2021-01-27 18:51:53 +08:00
|
|
|
|
2023-02-25 12:08:12 +08:00
|
|
|
[关于版本号的说明](./docs/src/version.md)
|
|
|
|
|
2023-10-13 23:12:35 +08:00
|
|
|
[![release version](https://img.shields.io/badge/Release-0.8.7.2-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
|
|
|
[![pre version](https://img.shields.io/badge/Pre_Release-0.8.7.2-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
|
|
|
[![devlo version](https://img.shields.io/badge/Devloping-0.9.0-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
2020-12-05 14:57:43 +08:00
|
|
|
|
2023-03-01 23:07:10 +08:00
|
|
|
[![language badge](https://stats.deeptrain.net/repo/shenjackyuanjie/Difficult-Rocket?theme=dark)](https://stats.deeptrain.net/repo/shenjackyuanjie/Difficult-Rocket?theme=dark)
|
|
|
|
|
2023-06-25 15:49:34 +08:00
|
|
|
[DR sdk 最新 Action 构建](https://nightly.link/shenjackyuanjie/Difficult-Rocket/workflows/nuitka/main)
|
|
|
|
|
|
|
|
[DR rs 最新 Action 构建](https://nightly.link/shenjackyuanjie/Difficult-Rocket/workflows/dr_rs/main)
|
|
|
|
|
2023-01-02 15:38:54 +08:00
|
|
|
## English README please look [here](./docs/README-en.md)
|
2020-11-28 21:23:35 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
> 这是一个用Python制作的类Simple Rocket游戏(简称:火箭模拟器)
|
2020-11-28 15:17:44 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
## 优势
|
2020-11-28 20:36:43 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
> 相对于原版SR比较“轻量化”
|
2020-11-28 20:36:43 +08:00
|
|
|
|
2023-02-23 23:48:49 +08:00
|
|
|
## [计划特性列表](docs/src/plan_features/README.md)
|
2021-01-21 17:16:49 +08:00
|
|
|
|
2023-03-01 16:45:42 +08:00
|
|
|
[YouTrack](https://difficult-rocket.youtrack.cloud/projects/8dafd498-59c0-4ce7-9900-d9292e9ed1f0)
|
2022-05-01 09:03:11 +08:00
|
|
|
|
2023-05-16 21:55:39 +08:00
|
|
|
## [更新日志](docs/src/change_log/readme.md)
|
2021-01-21 17:16:49 +08:00
|
|
|
|
2023-11-19 00:13:36 +08:00
|
|
|
## 运行方式
|
|
|
|
|
|
|
|
### clone
|
|
|
|
|
|
|
|
```bash title="clone.sh"
|
|
|
|
mkdir DR
|
|
|
|
cd DR
|
|
|
|
git clone https://github.com/shenjackyuanjie/Difficult-Rocket.git
|
|
|
|
# 或者
|
|
|
|
git clone https://gitee.com/shenjackyuanjie/Difficult-Rocket.git
|
|
|
|
# 又或者
|
|
|
|
git clone git@github.com:shenjackyuanjie/Difficult-Rocket.git
|
|
|
|
```
|
|
|
|
|
|
|
|
### 安装依赖
|
|
|
|
|
|
|
|
```bash title="install.sh"
|
2023-12-21 14:48:12 +08:00
|
|
|
python -m pip install -r requirement.txt
|
2023-11-19 00:13:36 +08:00
|
|
|
git submodule update --init --recursive
|
2023-12-23 00:06:35 +08:00
|
|
|
cd libs
|
|
|
|
python -m pip install ./lib_not_dr
|
|
|
|
python -m pip install ./pyglet
|
2023-11-19 00:13:36 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
### 运行
|
|
|
|
|
|
|
|
```bash title="run.sh"
|
|
|
|
python DR.py
|
|
|
|
```
|
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
## 环境需求 (测试过的 / 开发平台)
|
2020-11-28 21:16:43 +08:00
|
|
|
|
2023-01-01 20:36:55 +08:00
|
|
|
- `开发平台 1 - Windows 10 x64 22H2`
|
2023-06-30 23:50:49 +08:00
|
|
|
- Python `3.8.10` / `3.10.11`
|
2023-08-27 01:52:45 +08:00
|
|
|
- pillow `10.0.0`
|
2023-04-20 19:54:53 +08:00
|
|
|
- psutil `5.9.5`
|
|
|
|
- rtoml `0.9.0`
|
2023-08-27 01:52:45 +08:00
|
|
|
- tomlkit `0.12.1`
|
2023-04-20 19:54:53 +08:00
|
|
|
- defusedxml `0.7.1`
|
|
|
|
- objprint `0.2.2`
|
|
|
|
- viztracer `0.15.6`
|
|
|
|
- vizplugins `0.1.3`
|
2023-08-27 01:52:45 +08:00
|
|
|
- nuitka `1.7.10`
|
2023-04-20 19:54:53 +08:00
|
|
|
- ordered-set `4.1.0`
|
2023-08-27 01:52:45 +08:00
|
|
|
- imageio `2.31.2`
|
|
|
|
- wheel `0.41.2`
|
|
|
|
- setuptools `68.1.2`
|
|
|
|
- setuptools-rust `1.7.0`
|
2023-06-09 16:23:32 +08:00
|
|
|
- `AMD R5 5600X`
|
|
|
|
- `AMD RX 550 4G`
|
2023-04-20 19:54:53 +08:00
|
|
|
|
|
|
|
## 需要的 Python 模块
|
|
|
|
|
2023-06-26 10:46:43 +08:00
|
|
|
- `pyglet` (已经内置 V2.0.8 路径:`./libs/pyglet`)
|
2022-06-08 21:07:47 +08:00
|
|
|
- `xmltodict` (已经内置 V0.12.0 路径:`./libs/xmltodict`)
|
|
|
|
- `pyperclip` (已经内置 V1.8.2 路径: `./libs/pyperclip`)
|
2023-04-20 19:54:53 +08:00
|
|
|
|
|
|
|
```text
|
|
|
|
# this requirement is for
|
|
|
|
# DR basic running from source
|
|
|
|
# DR build (by nuitka)
|
|
|
|
# DR contributing
|
|
|
|
|
|
|
|
# for images
|
2023-06-26 10:46:43 +08:00
|
|
|
# not for pypy >= 3.10
|
2023-07-23 02:25:24 +08:00
|
|
|
pillow >= 10.0.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython"
|
2023-04-20 19:54:53 +08:00
|
|
|
|
|
|
|
# for sys info
|
|
|
|
psutil >= 5.9.5
|
|
|
|
|
|
|
|
# for files
|
|
|
|
rtoml >= 0.9.0
|
2023-06-26 10:46:43 +08:00
|
|
|
tomlkit >= 0.11.8
|
2023-04-20 19:54:53 +08:00
|
|
|
defusedxml >= 0.7.1
|
|
|
|
|
|
|
|
# for debug
|
|
|
|
objprint >= 0.2.2
|
2023-06-26 10:46:43 +08:00
|
|
|
viztracer >= 0.15.6; platform_python_implementation != "PyPy"
|
|
|
|
vizplugins >= 0.1.3; platform_python_implementation != "PyPy"
|
2023-04-20 19:54:53 +08:00
|
|
|
|
|
|
|
# for compile
|
2023-07-16 02:13:03 +08:00
|
|
|
nuitka >= 1.7.5
|
2023-04-20 19:54:53 +08:00
|
|
|
ordered-set >= 4.1.0
|
2023-06-26 10:46:43 +08:00
|
|
|
imageio >= 2.31.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython"
|
2023-04-20 19:54:53 +08:00
|
|
|
wheel >= 0.40.0
|
2023-06-26 10:46:43 +08:00
|
|
|
setuptools >= 67.8.0
|
|
|
|
setuptools-rust >= 1.6.0
|
2023-06-30 23:50:49 +08:00
|
|
|
|
2023-04-20 19:54:53 +08:00
|
|
|
```
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
## 感谢
|
2021-03-20 13:52:07 +08:00
|
|
|
|
2023-02-17 22:15:24 +08:00
|
|
|
- 开源项目
|
|
|
|
- [pyglet](https://github.com/pyglet/pyglet) : GUI 和画面渲染
|
|
|
|
- `tomlkit` / `rtoml` : toml 解析器
|
|
|
|
- `xmltodict`: xml 与 dict 转换器
|
|
|
|
- `pyperclip`: 剪贴板!
|
2023-06-26 10:46:43 +08:00
|
|
|
- [rapier2d](https://rapier.rs/) : 物理模拟引擎
|
|
|
|
- [pyo3](https://pyo3.rs/main): Rust Python 扩展
|
2023-02-17 22:15:24 +08:00
|
|
|
|
|
|
|
- 主要贡献者
|
|
|
|
- [@Rayawa](https://github.com/Rayawa) : 文档矫正 & 翻译部分 lang
|
|
|
|
- [@rouxiao-you](https://github.com/ruoxiao-you) : 翻译 lang
|
|
|
|
- [@Billchyi](https://github.com/Billchyi) : 文档矫正
|
2023-02-26 08:46:04 +08:00
|
|
|
- [@MSDNicrosoft](https://github.com/MSDNicrosoft) : 优化代码
|
2021-03-20 13:52:07 +08:00
|
|
|
|
2023-07-22 18:24:47 +08:00
|
|
|
</div>
|
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
## 相关链接
|
2021-08-13 12:25:29 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
## 关于分享协议
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2021-01-24 09:48:08 +08:00
|
|
|
#### https://creativecommons.org/licenses/by-nc-sa/4.0/
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
#### 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
这是一份普通人可以理解的许可协议概要 (但不是替代) 。 免责声明.
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
您可以自由地:
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
共享 — 在任何媒介以任何形式复制、发行本作品
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
演绎 — 修改、转换或以本作品为基础进行创作
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
只要你遵守许可协议条款,许可人就无法收回你的这些权利。
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
惟须遵守下列条件:
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
署名 — 您必须给出地当的署名,提供指向本许可协议的链接,同时标明是否(对原始作品)作了修改。您可以用任何合理的方式来署名,但是不得以任何方式暗示许可人为您或您的使用背书。
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
非商业性使用 — 您不得将本作品用于商业目的。
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
相同方式共享 — 如果您再混合、转换或者基于本作品进行创作,您必须基于与原先许可协议地同的许可协议 分发您贡献的作品。
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
没有附加限制 — 您不得适用法律术语或者 技术措施 从而限制其他人做许可协议允许的事情。
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
声明:
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
您不必因为公共领域的作品要素而遵守许可协议,或者您的使用被可适用的 例外或限制所允许。
|
2020-12-11 21:23:49 +08:00
|
|
|
|
2022-06-08 21:07:47 +08:00
|
|
|
不提供担保。许可协议可能不会给与您意图使用的所必须的所有许可。例如,其他权利比如形象权、隐私权或人格权可能限制您如何使用作品。
|