feat: Best practices section

オープン
#594 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
領域
documentation

調査の方向性

Start from the old best practices page linked in the issue (doc.stride3d.net/4.3/en/manual/scripts/best-practice.html) and the Godot best practices section it is modelled on. The payload does not name the source files for the docs, so locate the existing scripting and manual pages in the repository first. Done means the proposed pages (component workflow, ECS, scene structure, content management, project structure, custom assets) exist with content the maintainers have agreed on, and the scope is confirmed in the thread before writing.

索引モデルが issue の本文から書いたものです。

説明

content manual

Description

Transform the old best practices page into a separate section, similarly to how this is done in Godot's docs. This section would contain best practices for writing code as well as generally working with the engine (structuring scenes, managing assets, etc.)

Page ideas:

  • Component-based workflow - describes how to work with components (not ECS) and scripts (don't write everything in one script, separate common tasks into independent components where applicable, prefer assigning in Property Grid as opposed to Entity.Get)
  • ECS workflow - best practices for writing code using ECS
  • Scene structure - best practices for strucuring scenes (persistent entities go into the main scene, new scenes are loaded as sub-scenes instead of replacing root, try to separate complex scenes into smaller sections).
  • Content management - how to work with content in scripts (use generated asset class or UrlReference over hardcoded string paths, assign asset references over marking assets as root and loading in-code, make sure to unload manually loaded assets)
  • Project structure - how to structure the code in the project (create a project package for every target platform, don't put gameplay code and assets in platform packages, keep references in a separate folder from assets, keep the same structure in resources folder as in assets, don't use resources outside of the project folder).
  • Custom assets - when or when not to use custom assets
主要言語
PowerShell
スター
39
フォーク
79
平均マージ
8日 20時間
マージ済み PR(30日)
5

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

stride3d/stride-docs のほかの issue

stride3d/stride-docs の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。