What does "data-driven" mean? #5941
-
Asking this out of curiosity as someone who has no knowledge of game development. I looked at the documentation which says this:
And the homepage says:
I still don't understand it. Maybe a comparison with a non-data-driven system will help. Also I am not implying that the documentation should be improved or anything. Just asking out of curiosity as mentioned earlier. I hope that is okay. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This isn't related to Bevy, but this resource on making a roguelike using You should read Section 5 of that book, especially the second part titled "Data-Driven Design: Raw Files". It shows examples of data-driven design logic. |
Beta Was this translation helpful? Give feedback.
-
Data-driven essentially means, to my understanding, that the behavior of a program is mostly controlled by data (like assets, scenes), instead of being hardcoded. Bevy is not fully data driven, since e.g. systems can only be defined with Rust code. But for the most part it can be considered to be data driven. See also bevyengine/bevy-website#81 |
Beta Was this translation helpful? Give feedback.
This isn't related to Bevy, but this resource on making a roguelike using
specs
(an older ECS library) shows how making data-driven design makes your code easier to mod and edit, and decouples game logic from game data.You should read Section 5 of that book, especially the second part titled "Data-Driven Design: Raw Files". It shows examples of data-driven design logic.