| 1 |
The data-source/ directory contains the sources for respective files |
| 2 |
in the data/ directory. |
| 3 |
|
| 4 |
Place here files that you don't want to distribute |
| 5 |
with the regular binary game release, |
| 6 |
and you don't access these files in your application at runtime. |
| 7 |
|
| 8 |
In other words, these files are only useful for developing the game assets. |
| 9 |
Examples of files to put here: |
| 10 |
|
| 11 |
- Blender .blend files (and the textures in source formats) |
| 12 |
- Spine .spine files (with the images/ subdirectory, used by Spine to define each element) |
| 13 |
- GIMP .xcf files |
| 14 |
- Photoshop .psd files |
| 15 |
- Audacity project files |
| 16 |
|
| 17 |
These assets are exported to data/ in a format readable by the game. |
| 18 |
Examples of files to put in data/ : |
| 19 |
|
| 20 |
- 3D and 2D models exported to .gltf or .x3d, along with final textures |
| 21 |
- Spine animations exported to .json, along with atlas files |
| 22 |
- Final images in .png, .jpg and other formats supported by Castle Game Engine |
| 23 |
- Final sound files in .wav, .ogg formats |
| 24 |
|
| 25 |
Castle Game Engine doesn't treat the `data-source` directory in any special way. |
| 26 |
It is not packaged by the [build tool](https://castle-engine.io/build_tool) |
| 27 |
command `castle-engine package`, as it only packages the special `data` directory |
| 28 |
by default. |
| 29 |
|
| 30 |
There is an alternative method to avoid packing your "source data files": |
| 31 |
you could place them in `data/` but avoid packing using the `<exclude>` mechanism |
| 32 |
in [CastleEngineManifest.xml](https://castle-engine.io/project_manifest). |