> 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
Re:Rust – Are We Game Yet?
by technerder on Thursday March 16, 2023 @01:37PM
(#35185306)
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#.
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?