3 ms·
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
by Kwpolska 4y 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?
- jsheard 4y ago> 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
- technerder 4y agoI believe this is only true for the "Bedrock" version of the game, the "Java" edition is still written in Java.
- oriolid 4y agoAs 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.
- Kwpolska 4y agoAs 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#.