I've heard that while C++ is great for heavy 3D games, people recommend using C# for 2D games. I'm currently learning C++ and I'm wondering if I should switch to C# or stick with C++. Is C++ a viable option for developing 2D platformer games?
3 Answers
From a high-level perspective, you can use almost any language for game development. C++ does have a steeper learning curve compared to C#, which is more forgiving and handles a lot of the underlying complexities for you. It really comes down to what you're more comfortable with!
You can make 2D games with virtually any programming language, including C++. People often say to use C# in Unity for 2D because it's easier and more user-friendly for beginners. If you're already comfortable with C++, look into game engines that let you use C++ for 2D.
Of course, you can create 2D platformers using C++. Just remember, if you go with a pre-made engine like Unreal or Unity, they're typically optimized for C# or other scripting languages, so just be aware of that context.
Related Questions
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically
[Centos] Delete All Files And Folders That Contain a String