diff --git a/code-validation/src/lib.rs b/code-validation/src/lib.rs index 243e831dfa..9c1c363410 100644 --- a/code-validation/src/lib.rs +++ b/code-validation/src/lib.rs @@ -121,8 +121,8 @@ mod learn { #[doc = include_str!("../../content/learn/book/getting-started/_index.md")] mod getting_started { - #[doc = include_str!("../../content/learn/book/getting-started/app-appbuilder-world.md")] - mod app_appbuilder_world {} + #[doc = include_str!("../../content/learn/book/getting-started/apps-worlds.md")] + mod apps_worlds {} #[doc = include_str!("../../content/learn/book/getting-started/bevy-community.md")] mod bevy_community {} #[doc = include_str!("../../content/learn/book/getting-started/installation.md")] diff --git a/content/learn/book/getting-started/app-appbuilder-world.md b/content/learn/book/getting-started/app-appbuilder-world.md deleted file mode 100644 index a58bb4f787..0000000000 --- a/content/learn/book/getting-started/app-appbuilder-world.md +++ /dev/null @@ -1,6 +0,0 @@ -+++ -title = "App, Appbuilder, and World" -[extra] -weight = 3 -status = 'hidden' -+++ diff --git a/content/learn/book/getting-started/apps-worlds.md b/content/learn/book/getting-started/apps-worlds.md new file mode 100644 index 0000000000..f15c1d8fa0 --- /dev/null +++ b/content/learn/book/getting-started/apps-worlds.md @@ -0,0 +1,34 @@ ++++ +title = "Apps and Worlds" +[extra] +weight = 3 +status = 'hidden' ++++ + +Your entire game is stored inside a Bevy [`App`], which is responsible for running the main game loop and storing the main [`World`]. +The [`World`] stores all of the App's state — [Entities], [Components], [Resources], and [Systems]. + +[`App`]: https://docs.rs/bevy/latest/bevy/app/struct.App.html +[`World`]: https://docs.rs/bevy/latest/bevy/ecs/world/struct.World.html +[Entities]: /learn/book/ecs/entities-components/ +[Components]: /learn/book/ecs/entities-components/#working-with-components +[Resources]: /learn/book/ecs/resources/ +[Systems]: /learn/book/ecs/systems-queries/ + +## Apps + +{% todo() %} + +* explain what the app does +* example `main()` function + +{% end %} + +## Worlds + +{% todo() %} + +* explain what the world does +* vaguely explain how the world actually stores entities and components? maybe too early for that + +{% end %}