What is better | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

What is better

What is better for game dev, java/c#

12th Dec 2021, 8:27 AM
Mikicrep
Mikicrep - avatar
17 Answers
+ 6
Which programming language is "better" than the other is largely subjective and depends on various aspects: * what you want to program * how much experience you have with a language * which game engines or libraries are available * individual preferences So it isn't really a Java vs. C# thing. Basically, one can create games in any language. If you don't want to go for Unity or Unreal or Cry, there are a lot of other game engines like Godot, Armory... If you don't want to use game engines, you can use modules/ libraries (in Python pygame for simple 2D games, in JS three.js for instance). If you don't want to use libraries, you could try plain js with canvas. And as UnrealPythonist pointed out, a memory leak is most likely not a problem of a game engine in general and can usually be fixed.
12th Dec 2021, 11:36 AM
Lisa
Lisa - avatar
+ 5
C# - Unity
13th Dec 2021, 4:26 PM
SecDet
SecDet - avatar
+ 3
C# is a C++, but in C# more functions.
14th Dec 2021, 7:45 AM
Максим Вишняков
+ 3
C#
14th Dec 2021, 8:26 AM
bhavi patel
bhavi patel - avatar
+ 3
I think c#
24th Dec 2021, 7:29 PM
ℭ𝔬𝔡𝔢 𝔅𝔯𝔢𝔞𝔨𝔢𝔯
ℭ𝔬𝔡𝔢 𝔅𝔯𝔢𝔞𝔨𝔢𝔯 - avatar
+ 2
If you want to be game developer, C# will be super good thing, because this programming language is using on Unity Engine (and maybe on CryEngine). Also, C# has C-like syntax, good OOP realization, safe coding etc. I can't remember game engines on Java. In that programming language you will need only to write code, no engines, that is so hard. +Java has been widely using on indie Android games and Minecraft. So if you are beginner and you want to create good game with super 2D or 3D graphics, I advise you to get C# with Unity.
12th Dec 2021, 8:56 AM
UnrealPythonist
UnrealPythonist - avatar
+ 2
Mikicrep even old versions of Unity? (and about memory leak: you need learn to fix it, and I hope this article help you with it: https://michaelscodingspot.com/ways-to-cause-memory-leaks-in-dotnet/ )
12th Dec 2021, 9:28 AM
UnrealPythonist
UnrealPythonist - avatar
+ 2
I think you need use c# to create game, because you can do game in Unity and other engines. In Unity you can do 2d and 3d games.
14th Dec 2021, 6:15 AM
Максим Вишняков
+ 1
"but i dont want Game engine, i want to use custom one, i hate unity and that engines... Also is memory leak a thing there?" Mikicrep shelf-off engines aren't prone to memory leak most of the time. you obviously aren't gonna waste your time making one when you're gonna different types of games. but I wouldn't recommend using unity for a complete begineer as it has a ton of features which can overwhelming if you don't have a prior experience. use CopperCube first, when you grow out of it, switch to unity or godot.
12th Dec 2021, 1:08 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 1
Java is still pretty ubiquitous in web development and will make understanding Java script, and therefore Node.js, trivial. C#, and dotNet development, is breaking into web development and wide verity of other areas with azure cloud services. I would say pick one that you like and become proficient with it. Transitioning from one object oriented programming language to another will be pretty easy. Development is about solving problems so, limiting yourself to just one language is like a construction worker who can only use a hammer.
12th Dec 2021, 8:58 PM
Kail Galestorm
Kail Galestorm - avatar
+ 1
C# is better for game development.
13th Dec 2021, 8:12 AM
Abdun Nur Porag
Abdun Nur Porag - avatar
+ 1
C++ and Java both are very important you should slowly Learn both but one by one as if you know both you will be accepted as professional for job also
14th Dec 2021, 7:43 AM
Kavya Mandlecha
0
UnrealPythonist but i dont want Game engine, i want to use custom one, i hate unity and that engines... Also is memory leak a thing there?
12th Dec 2021, 9:02 AM
Mikicrep
Mikicrep - avatar
0
+unity doesnt work on my pc
12th Dec 2021, 9:02 AM
Mikicrep
Mikicrep - avatar
0
Lisa Truthfully, I'm agree
12th Dec 2021, 11:39 AM
UnrealPythonist
UnrealPythonist - avatar
0
UnrealPythonist every version doesnt work
12th Dec 2021, 12:08 PM
Mikicrep
Mikicrep - avatar
0
Depende en que entorno quieras trabajar
13th Dec 2021, 3:54 PM
JOSE DANIEL MEJIA LORA
JOSE DANIEL MEJIA LORA - avatar