- Home /
Other
2D games; Javascript or C#?
Hello, So I've been wanting to make a 2D game for a while and I'm now working on the story, art, etc. I've been looking into which language is better for a 2D game and it seems that everyone is using C#. Now I'm not that good with C#, so I want to know if it's possible to make one with (mostly) Javascript.
Thank you
Either is fine but if you are starting from scratch then C# is the better language to learn. $$anonymous$$ixing the two can be problematic at times and most of the useful things you find on the Asset store are in C#, so they are far easier to modify and interact with if your use C# throughout your whole project. I have made a full game only using js though so ultimately the choice is yours.
It's not really about which is better, it's about which one you are more comfortable coding with. It just happens that most people choose C#, but the choice is yours.
I know js (Unityscript) far better than C#, but I'm switching over, not because I feel more comfortable with C# but because it is ultimately a better language to use.
Answer by Jeff-Kesselman · Nov 15, 2014 at 12:22 AM
Javascript, like any scripting language, is easy and convenient for fairly small projects.
For projects of any serious size or complexity however, you need the organizational power of a real programming language such as c#.
Just about every full Unity game project I know of that started out in javascript, eventually had to move to C# to complete.
(Btw, its technically not Javascript, its Unityscript. Javascript and Unityscript are two different distinct dialects of ECMAscript. Unityscript files by convention end in .js which confuses things somewhat.)