Hacker News new | ask | show | jobs
by Kwpolska 1192 days ago
You can write games in C++ (Unreal Engine), C# (Unity and Godot), Java (LWJGL, as seen in Minecraft), Python (using PyGame), JavaScript (DOM/canvas or something fancier). Nobody is using PyGame for anything serious, and Minecraft is probably the only serious Java game, but you can still play around with those.

C++ is popular in the game industry, because it compiles to native code and can be fast. Rust can also do both of these things, and it’s also memory-safe and saner in general, so why not try writing games with it and improve the game stability and developer experience?

2 comments

> and Minecraft is probably the only serious Java game

...and even Minecraft was ultimately re-written in C++ to bring it to mobile and consoles

I believe this is only true for the "Bedrock" version of the game, the "Java" edition is still written in Java.
As far as I know, Unity uses C# as scripting language and does the heavy lifting in C++. And the usual way for making mobile builds for Unity games is converting everything to C++ with IL2CPP and then compiling that to native binary.
As far as I know, web browsers use JavaScript as a scripting language and do the heavy lifting in C++.

Your average Unity game developer does not do anything in C++. The engine itself is implemented in C++, but the game logic written by game developers is in C#.