# Overview
Manually creating entities and components is tedious. Usually you want your entities to be created from your data. For a data-driven approach, you can use an EntityFactory. This way you can define blueprints for entities and load data from your levels automatically.
This guide shows one approach of doing this. The code should be flexible enough to allow you to adjust it to your project. If not, feel free to take a look at the source-code on GitHub and either create a ticket or create your own implementation.
Follow these steps to get a data-driven approach:
- Create components and respective factories to initialize said components
- Adding some extra types (EntityConfig and Context)
- Define blueprints (for example in .json format)
- Set up an EntityFactory
- Use the EntityFactory to create new entities
# About the Folder Structure
The folder structure shown in this guide is just an example and you should adapt it as you see fit. You can find the source-code of this guide in the GitHub repository.