Closed alfredbaudisch closed 4 months ago
Hi, thank for all the work! I see how this can improve quality of life when working on a project. But I think the simplicity of the current folder structure, where I have only added folders if they are absolutely necessary, is better for getting a quick overview. But that might just be personal preference again.
However, perhaps I can link to your repo in the readme? I was thinking of making a 'spinoff' section in the readme, with projects that are based on this. Perhaps some games, but also just variations of the structure. Let me know if you want to be features on such a list.
Let me know if you want to be features on such a list.
Yes, that's very fine for me :) In this case, I'll keep my main branch synced with yours, so if possible, please link to my build-subfolders
branch (which is the branch for this PR too): https://github.com/alfredbaudisch/odin-raylib-hot-reload-game-template/tree/build-subfolders
@alfredbaudisch Okie! Thanks. I added a list at the bottom of the readme with your fork in it. Thank you!
@karl-zylinski awesome!
This PR introduces a set of changes for better file and project structuring:
/src
./src/game
./src/main_*
./res
folder for resources (moved sample shader to there)./build/*
:/build/dev/
main_hot_reload.odin
in order to correctly use the/build/dev
folder for thegame_*
dlls./build/release
and/build/debug
/build
and/build/*
folders.build_copy_resources.bat
in order to copy resources to the/build/*
folder if needed (for deployment, for example)./build/*
.WARNING: I only adjusted the Windows .bat files and did not adjust the .sh files as I don't have a way to test for Linux and OS X. But it should be easy.
NOTE: I know this is mostly a matter of personal preference, as all the source files AND compiled files in the root folder all mixed up was driving me nuts, and personally I'll keep using this proposed project structure from this PR. I tried to follow the common/universal style of having a "src" and "res" folders.
Anyway, I opened the PR to make this new project structure aware and available for you or anyone else who wish to use it. Of course, feel free to refuse the PR if you prefer your current structure with everything in the root :)