My game is pretty much just a game-builder, where you create your own levels, scripts, graphics, music etc. and the game just loads them from a file you tell it. But how would I make it so the user could generate an exe that would just load the game files and act like a standalone game but actually be made with the game-builder thing? I'm using C++.
1 Answer
\$\begingroup\$
\$\endgroup\$
A straightforward approach could be to produce a folder which contains always the same executable, copied, and different files next to it. The executable would look for data files relative to itself.
.../MyNewThing/
MyNewThing.exe <-- renamed but identical
resources/ <-- files with known names or name-patterns
MyNewThing.data <-- alternatively
So, it's not a single self-contained file, but should be quite clear that you need to copy the whole folder.