karl-zylinski / odin-raylib-hot-reload-game-template

An Odin + Raylib game template with Hot Reloading pre-setup
MIT License
150 stars 18 forks source link

Sub-Folder Project Structure: source-code into "/src" and builds into "/build" #8

Closed alfredbaudisch closed 4 months ago

alfredbaudisch commented 4 months ago

This PR introduces a set of changes for better file and project structuring:

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 :)

image

karl-zylinski commented 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.

alfredbaudisch commented 4 months ago

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

karl-zylinski commented 4 months ago

@alfredbaudisch Okie! Thanks. I added a list at the bottom of the readme with your fork in it. Thank you!

alfredbaudisch commented 4 months ago

@karl-zylinski awesome!