Files
game/README.md
T
2026-02-13 09:16:13 +08:00

51 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 纸片化学社区版:游戏本体
## 项目介绍
纸片化学社区版Paper Chemis Community是由 Tiger 开发的一款纸片化学游戏。该游戏使用纸片化学玩法,并带来了更高的自由度。
本项目为纸片化学社区版的游戏本体。除非你使用了自定义的数据格式,否则你不应该更改游戏本体。
## 项目结构
```text
game/
- project.godot
- icon.svg
- assets/
- fonts/
- AlibabaPuHuiTi-3-65-Medium.ttf # 阿里巴巴普惠体
- pics/
- scenes
- main_menu.tscn
- game.tscn
- settings.tscn
- scripts/
- autoload/
- GameManager.gd # 游戏管理
- DownloadManager.gd # 下载管理
- MultiGame.gd # 多人游戏功能
- SceneManager.gd # 场景管理
- main_menu/
- main_menu.gd
- join_game_ui.gd
- create_game_ui.gd
- game/
- game.gd
- settings/
- settings.gd
```
## 如何运行
请先运行数据后端,在游戏设置中输入后端 URL包含端口号和 `http://``https://` 前缀,然后创建游戏或加入游戏开始游玩。
## 最佳实践
本项目目前正在使用 Godot 4.6 进行开发。开发用语言为 GDScript。
你的开发应当遵循 Godot 引擎提供的[最佳实践](https://docs.godotengine.org/zh-cn/4.5/tutorials/best_practices/)及[GDScript 编写风格指南](https://docs.godotengine.org/zh-cn/4.5/tutorials/scripting/gdscript/gdscript_styleguide.html)。但下面提到的除外:
`autoload` 目录下的单例脚本使用大驼峰式命名,其余脚本均应使用小蛇形式命令。所有节点均应使用大驼峰式命名。