2024-05-30 00:49:20 +08:00
|
|
|
|
import ResponsiveIframe from './ResponsiveIframe'
|
2024-05-30 00:38:39 +08:00
|
|
|
|
|
2023-12-16 23:40:38 +08:00
|
|
|
|
# Difficult Rocket
|
|
|
|
|
|
2024-05-30 00:38:39 +08:00
|
|
|
|
![DEMO](/demo.png)
|
|
|
|
|
|
|
|
|
|
{/* 932/1254=0.7432216906 */}
|
|
|
|
|
<ResponsiveIframe src="/dr0910-demo.mp4" ratio={0.7432216906} width="100%"></ResponsiveIframe>
|
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
中文 | [English](./docs/README-en.md)
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
|
|
|
|
- [GitHub](https://github.com/shenjackyuanjie/Difficult-Rocket)
|
2023-12-31 15:46:16 +08:00
|
|
|
|
- [Gitee](https://gitee.com/shenjackyuanjie/Difficult-Rocket)
|
|
|
|
|
- [Discord](https://discord.gg/kWzw2JrG6M)
|
|
|
|
|
- [Kook](https://kook.top/sRPjFG)
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
2024-05-30 00:38:39 +08:00
|
|
|
|
> 注意:本仓库未来只会发布`DR SDK`的更新。`DR game` 的更新会在[这里](https://github.com/shenjackyuanjie/DR-game)发布。
|
2023-12-16 23:40:38 +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)
|
|
|
|
|
|
|
|
|
|
## 版本
|
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
[关于版本号的说明](./docs/src/version.md)
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
2024-05-26 13:51:38 +08:00
|
|
|
|
[![release version](https://img.shields.io/badge/Release-0.9.1.0-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
|
|
|
|
[![pre version](https://img.shields.io/badge/Pre_Release-0.9.1.0-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
|
|
|
|
[![devlo version](https://img.shields.io/badge/Devloping-0.9.2-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
|
|
|
|
[![language badge](https://stats.deeptrain.net/repo/shenjackyuanjie/Difficult-Rocket?theme=dark)](https://stats.deeptrain.net/repo/shenjackyuanjie/Difficult-Rocket?theme=dark)
|
|
|
|
|
|
|
|
|
|
[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-12-31 15:46:16 +08:00
|
|
|
|
## 介绍
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
这是一个用Python制作的类Simple Rocket游戏(简称:火箭模拟器)。相对于原版SR,它更加轻量。
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
[计划特性列表](docs/src/plan_features/README.md)
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
|
|
|
|
[YouTrack](https://difficult-rocket.youtrack.cloud/projects/8dafd498-59c0-4ce7-9900-d9292e9ed1f0)
|
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
[更新日志](docs/src/change_log/readme.md)
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
## 运行
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
### 1. Clone
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
|
|
|
|
```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
|
|
|
|
|
```
|
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
### 2. 安装依赖
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
|
|
|
|
```bash title="install.sh"
|
2023-12-31 15:46:16 +08:00
|
|
|
|
python gen_require.py 0
|
2023-12-16 23:40:38 +08:00
|
|
|
|
python -m pip install -r requirements.txt
|
|
|
|
|
git submodule update --init --recursive
|
|
|
|
|
cd libs
|
2023-12-31 15:46:16 +08:00
|
|
|
|
python -m pip install ./lib_not_dr
|
|
|
|
|
python -m pip install ./pyglet
|
2023-12-16 23:40:38 +08:00
|
|
|
|
```
|
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
### 3. 运行
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
|
|
|
|
```bash title="run.sh"
|
|
|
|
|
python DR.py
|
|
|
|
|
```
|
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
## 环境需求
|
|
|
|
|
|
2024-05-26 13:51:38 +08:00
|
|
|
|
> 开发环境使用的Python版本为`3.8.18`,但`3.8+`同样可用。
|
|
|
|
|
>
|
2024-05-26 21:18:30 +08:00
|
|
|
|
> 在 `3.8` EOL 之后会使用 `3.11` 作为开发环境。
|
2024-05-26 13:51:38 +08:00
|
|
|
|
>
|
2024-05-30 00:38:39 +08:00
|
|
|
|
> 毕竟现在使用 3.8 开发是因为他官方支持 Windows 7, 而 3.9+ 不支持。
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
|
|
|
|
- `开发平台 1 - Windows 10 x64 22H2`
|
2024-05-26 13:51:38 +08:00
|
|
|
|
- Python `3.8.18+`
|
|
|
|
|
- `Python 3.8.18+ (heads/3.8:7f59c4c1d4, Aug 26 2023, 00:20:02) [MSC v.1900 64 bit (AMD64)] on win32`
|
|
|
|
|
- `AMD R5 5800X`
|
2023-12-31 15:46:16 +08:00
|
|
|
|
- `AMD RX 580 8G`
|
|
|
|
|
|
|
|
|
|
## 需要的Python模块
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
> python gen_require.py [-h] {0,1,2}
|
|
|
|
|
> run / build / compile
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
- `pyglet` (已经内置 V2.x 路径:`./libs/pyglet`)
|
2023-12-16 23:40:38 +08:00
|
|
|
|
- `xmltodict` (已经内置 V0.12.0 路径:`./libs/xmltodict`)
|
|
|
|
|
- `pyperclip` (已经内置 V1.8.2 路径: `./libs/pyperclip`)
|
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
## 鸣谢
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
|
|
|
|
- 开源项目
|
|
|
|
|
- [pyglet](https://github.com/pyglet/pyglet) : GUI 和画面渲染
|
2024-05-26 13:51:38 +08:00
|
|
|
|
- tomls
|
|
|
|
|
- `tomlkit`
|
|
|
|
|
- `tomli`
|
|
|
|
|
- `rtoml`
|
2023-12-16 23:40:38 +08:00
|
|
|
|
- `xmltodict`: xml 与 dict 转换器
|
|
|
|
|
- `pyperclip`: 剪贴板!
|
|
|
|
|
- [rapier2d](https://rapier.rs/) : 物理模拟引擎
|
|
|
|
|
- [pyo3](https://pyo3.rs/main): Rust Python 扩展
|
|
|
|
|
|
2024-05-26 13:51:38 +08:00
|
|
|
|
- Jundroo
|
|
|
|
|
- 感谢为我们编写了 SR 这么一个 ~~魔法~~ 好玩的游戏
|
|
|
|
|
|
2023-12-16 23:40:38 +08:00
|
|
|
|
- 主要贡献者
|
2024-05-26 13:51:38 +08:00
|
|
|
|
- [@shenjackyuanjie](https://github.com/shenjackyuanjie) : 主开发
|
|
|
|
|
- [@sssssssboom](https://github.com/ssssssssboom) : DR game 开发
|
|
|
|
|
- [@InfyniteHeap](https://github.com/InfyniteHeap) : DR rs 开发
|
2023-12-16 23:40:38 +08:00
|
|
|
|
- [@Rayawa](https://github.com/Rayawa) : 文档矫正 & 翻译部分 lang
|
|
|
|
|
- [@rouxiao-you](https://github.com/ruoxiao-you) : 翻译 lang
|
|
|
|
|
- [@Billchyi](https://github.com/Billchyi) : 文档矫正
|
|
|
|
|
- [@MSDNicrosoft](https://github.com/MSDNicrosoft) : 优化代码
|
|
|
|
|
|
|
|
|
|
## 相关链接
|
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
[官方文档](https://dr.shenjack.top)
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
## 许可
|
2023-12-16 23:40:38 +08:00
|
|
|
|
|
2023-12-31 15:46:16 +08:00
|
|
|
|
[MPL-2.0](LICENSE)
|