How to make the game playable from desktop?

Hi there,

I was wondering how to export or package the games created up to now as an exe. on the desktop, just so i can see my progress etc. and also return to them in the future, in case i reinstall windows and lose the raylib library. Is this possible, or do we need to open Visual Studio Code to play the games? I was hoping i could upload the games to itch.io as a place to store my progress in an easy to access place as I have done with projects i have made in the Unreal Engine. I found it easy to export in UE, but havent a clue how to run these games without VSC.

Hi GenkiB,

Everytime you build your project, it creates or overwrites a .exe file in the root folder of your project (you don’t seem them in VSCode cause the template’s settings filters it out). Just grab the exe through file explorer and your sprites/textures and copy them to any place you desire.

If packaging for itch, make sure the files are in a zip file and that the file structure is the same as your project. (your exe and asset folders should be in the root of any folder they are placed in).

1 Like

Thank you Tuomo, i was wondering this the whole way through the tutorial. I understand it now with your explanation.

Does this mean we dont need VS Code installed on the system to run the exe? only for the development and coding of it? I was wondering how it knows to find the raylib library if it wasnt installed.

You don’t need VSCode or Raylib to be installed. When your code is compiled and an exe is created, all the necessary code libraries are bundled into the exe.

2 Likes

Thank you!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms