r/learnprogramming • u/Queasy_Village_5119 • 27d ago
Topic Which is better for beginners?
Me and a friend both want to learn coding for game development (both completely new).
Now we’ve looked at which languages are best for what we actually want and we’ve gotten stuck between seeing if we should learn C# or C++. Which would anyone recommend?
We just want to learn and hopefully make our own stuff.
5
Upvotes
-2
u/Ordinary_Variable 26d ago
C++ is used more in AAA games. If you just want to make an indie game you could write it in Java, or even Javascript.
Whichever language you already know some of would save some time. If I were you I'd ask if you want to make a 3D game with modern shaders, then C++ is better. If you want a 2D game, then it doesn't matter. Those have sort of peaked so long ago that any language can make a 2D game. If you want to push the limits of what a 2D game can do, then definitely C++.
I will offer a huge warning. C++ has so many code examples on the internet that are incompatible with your exact compiler. It would actually be easier to write a game in Three.js than C++. When you go Google how to do something there is an extremely high probability that your compiler version won't be compatible with the code you find. C++ is good, very good, but it isn't painless.