You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't particularly care whether there's a top-level plugin, a plugin exported by a lib.rs or if everything is added in main as shown here. That's besides the point.
Any of these plugins can (and probably will) have sub-plugins. I usually have about one plugin per file, which works out pretty well when using this terse plugin-function-syntax above. Please see the conversation here for a writeup I did about why I prefer to organize games this way.
This stuff is certainly opinionated, but I think we have to recognize the following things:
The template will be organized somehow
Users will generate a lot of nested modules while coding a game
Users will implicitly accept the organization presented in the template as a good starting point and try to follow it
The organization used for the empty template, which will only contain a few modules, will be stretched to serve users that have dozens upon dozens of modules
This means that we should take care to make the organization presented here conductive to development.
The text was updated successfully, but these errors were encountered:
janhohenheim
changed the title
Show how users can organize their code into plugins #62
Show how users can organize their code into plugins
Jul 4, 2024
Migrated from bevyengine/bevy_github_ci_template#62
This might be a major bikeshed.
Over the years, I've experimented with many styles of organizing Bevy games, and I've landed at the following convention:
I don't particularly care whether there's a top-level plugin, a plugin exported by a
lib.rs
or if everything is added inmain
as shown here. That's besides the point.Any of these plugins can (and probably will) have sub-plugins. I usually have about one plugin per file, which works out pretty well when using this terse plugin-function-syntax above. Please see the conversation here for a writeup I did about why I prefer to organize games this way.
This is the style used in Foxtrot, parts of Blenvy, and the unofficial best practices
This stuff is certainly opinionated, but I think we have to recognize the following things:
This means that we should take care to make the organization presented here conductive to development.
The text was updated successfully, but these errors were encountered: