feat: Best practices section

Abierto
#594 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Documentación
Claridad
Bastante claro
Estado de actividad
Activo

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
PowerShell
Estrellas
39
Forks
79
Merge medio
8 d 20 h
PR fusionados (30 d)
5

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de stride3d/stride-docs

Todos los issues de stride3d/stride-docs

Issues similares

Más issues de Documentation

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.