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?
5 Answers
Yes, definitely! C++ is the standard language for game development. You can create 2D games using C++ and SDL2. Just make sure you're choosing the right engine that supports C++ for 2D development, and you'll be golden.
Absolutely, you can use C++ for 2D games! It's a powerful language that can handle all sorts of game development including 2D platforms.
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
How To: Running Codex CLI on Windows with Azure OpenAI
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