feat: Best practices section

Đang mở
#594 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
documentation

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
PowerShell
Star
39
Fork
79
Merge trung bình
8 ngày 20 giờ
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của stride3d/stride-docs

Tất cả issue của stride3d/stride-docs

Issue tương tự

Thêm issue về Documentation

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.