Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

How to put code onto Itch

A topic by 382 Studios created Apr 13, 2023 Views: 708 Replies: 9
Viewing posts 1 to 4
(+1)

I would like to know how to put my c++ code, we are making an ascii roguelike that is all c++, into itch as either an exe downloadable or a browser based compiled version. TY in advance!

ps my code is made with OnlineGDB

You must compile the program yourself, and upload the binaries. Itch cannot do that for you.

I’m guessing you’re on Windows. Consider installing MinGW. I’ve found it pretty good for C and C++ programming on Windows. Others might also recommend Visual Studio, but I prefer something not so bloated and Microsoft-y.

(+1)

are there any online compilers?

Unlikely. If there were they’d almost surely work only barely, if at all.

Deleted 313 days ago
(1 edit) (+1)

If somebody asks this question, chances are 90% that they’re on Windows. The other 10% is Chromebook.

Deleted 313 days ago
(1 edit) (+1)

I did not say nor imply that it’s impossible.

Either way, your “technically yes” answer means just as much as my no – it’s useless to someone with his knowledge. The amount you put out would overwhelm him to the point of simply giving up.

I too could’ve made an essay on how to setup a VPS and (insert 50 obscure programming terms), “technically”, but I found it would’ve made me the ass instead.

Deleted 313 days ago
Moderator(+2)

Making threats is against our terms of service. You started it. In a discussion about compilers. Please reconsider.

Moderator

It’s possible to use the CI/CD system of websites like Github, to generate your builds online.

On Github, this is free for open-source projects, and relatively low cost for closed source projects. It’s a method that can be used to potentially distribute your C++ game.

(2 edits) (+1)

https://visualstudio.microsoft.com/free-developer-offers/

I will recommend visual studio this time, I used to work with GCC in mingw the past, it's is indeed good and the most complete toolset (my game in itch was developed using mingw).

However, if you are working on windows nowadays I strongly recommend you switch to Visual studio for performance reasons, it's waay more optimized (specially if you use the latest C++20 feature set) and more importantly the debugger is infinitely more powerful, you can go back instructions, runtime recompile and more... 

(+1)

If you’re using Linux or Mac OS setting up a C++ compiler is very easy. Pretty much all Linux distros have both GCC and Clang on their repositories for you to install with a simple command. On Mac OS you can type “clang” in a terminal and it will prompt you to install development tools, which will include the Clang compiler and some other tools.

Windows kind of sucks for development, but it is possible with a bit more difficulty. GCC and Clang tend to be kind of hard to set up - I have used Msys in the past and it has worked alright. Microsoft’s development tools are fine as long as you don’t care about using Microsoft’s shitware (I’m assuming you don’t if you’re using Windows xD). MSVC is their compiler and it tends to be pretty good for most purposes, all things considered. It’s faster than GCC in my experience, but the optimiser is a bit worse sometimes so it can produce slower code - not really anything you need to worry about though given you’re probably not going to be making programs complex enough where such minor differences will matter. You can install MSVC with Visual Studio which is a giant, hard to use, complex IDE that is full of bugs and hangs all the time. You can use it if you want to but you can also just compile from the command line with the cl command once it’s installed.

Deleted 121 days ago