I do have a question. How do you get the exe files? I have tried to get them as a released exe but when I run it on my virtual machine, it gives errors. Could you please let me know how you did it?
I have gotten errors when I run the exe file when it is not in the same directory as the ddl files. Since your game comes as just an exe, I was wondering how to do this as well.
That totally depends on the libraries you use to develop your game.
For example, if you use SDL2, you need to ship SDL2.dll with your game for the players.
If you release the game to Steam, you need steam_api64.dll.
And the list goes on...
For this small game, I used no dynamic libraries at all (no dlls), so I could just distribute the .exe!
But for bigger games, it is inevitable. If you open some of your favorite games' directories, you will most certainly see tons of dll's there.
So the best you can do is to create a .zip file with all the dependencies (which will probably also include assets such as .pngs, .wavs, etc) and distribute the .zip for players.
In itch, you can use the 'butler' build tool to send the folder directly, just like with Steam's Content Builder tool, but the idea is the same: pack all the necessary files in a .zip for players.
I really appreciate what you've done. What you did was hard work for sure. I just finished tutorial #1 and moving on to #2. Thank you very much for your tutorials.
Windows API has always been very complex for me and I've tried working with it for many years. I still do not understand how it works. So I am actually worried that, even though I'm following along, I will not be able to work with the code on my own. I also want to spend my time working on the game and not always debugging the winapi code.
Anyway, I'm gonna try to get through the rest of the series and hopefully I can grasp the basics.
← Return to game tutorial
Comments
Log in with itch.io to leave a comment.
I really appreciate your work 😊.
I am really glad you liked it! :D
Thank you so much! This really helped me a lot!
I do have a question. How do you get the exe files? I have tried to get them as a released exe but when I run it on my virtual machine, it gives errors. Could you please let me know how you did it?
Hi Sypder!
When you build the project, there should be a "Release" or "Debug" folder inside the project folder (depending if you built it debug or release).
The .exe file inside this folder should be all your need to distribute your game!
Did the error occur when you tried opening this specific file? If so, what error appeared?
Thank you so much for your response!
I have gotten errors when I run the exe file when it is not in the same directory as the ddl files. Since your game comes as just an exe, I was wondering how to do this as well.
That totally depends on the libraries you use to develop your game.
For example, if you use SDL2, you need to ship SDL2.dll with your game for the players.
If you release the game to Steam, you need steam_api64.dll.
And the list goes on...
For this small game, I used no dynamic libraries at all (no dlls), so I could just distribute the .exe!
But for bigger games, it is inevitable. If you open some of your favorite games' directories, you will most certainly see tons of dll's there.
So the best you can do is to create a .zip file with all the dependencies (which will probably also include assets such as .pngs, .wavs, etc) and distribute the .zip for players.
In itch, you can use the 'butler' build tool to send the folder directly, just like with Steam's Content Builder tool, but the idea is the same: pack all the necessary files in a .zip for players.
:)
Thank you so much! That helps a lot! Thank you so much for helping me!
I really appreciate what you've done. What you did was hard work for sure. I just finished tutorial #1 and moving on to #2. Thank you very much for your tutorials.
Windows API has always been very complex for me and I've tried working with it for many years. I still do not understand how it works. So I am actually worried that, even though I'm following along, I will not be able to work with the code on my own. I also want to spend my time working on the game and not always debugging the winapi code.
Anyway, I'm gonna try to get through the rest of the series and hopefully I can grasp the basics.
Excellent tutorial! You're a saviour for me when it comes to c++ game development!
Thanks so much for your kind comment, Noel! :D