Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey man! I am a beginner in c++ game development using raylib and I was wondering how you compiled everything into an executable without dependencies like music and texture files! I was hoping you could tell me how you did it or point me to a better tutorial. Awesome game, had fun playing it and really impressed by the efficient code :)

Thank you :)

As the game is open-source, you can check the code for yourself exactly how it's done, but in short, I used cmrc together with CMake, but there are other alternatives, like incbin. You can for example check the resources.cmake file for how the files are embedded, and also the various files in the src/asset folder for how the actual files are loaded in the game itself.